llvm.org GIT mirror llvm / 8117ac5
ARM: fix B decoding git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183914 91177308-0d34-0410-b5e6-96231b3b80d8 Amaury de la Vieuville 7 years ago
2 changed file(s) with 3 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
21032103 unsigned imm10 = fieldFromInstruction(Insn, 16, 10);
21042104 unsigned imm11 = fieldFromInstruction(Insn, 0, 11);
21052105 unsigned tmp = (S << 23) | (I1 << 22) | (I2 << 21) | (imm10 << 11) | imm11;
2106 int imm32 = SignExtend32<24>(tmp << 1);
2106 int imm32 = SignExtend32<25>(tmp << 1);
21072107 if (!tryAddingSymbolicOperand(Address, Address + imm32 + 4,
21082108 true, 4, Inst, Decoder))
21092109 Inst.addOperand(MCOperand::CreateImm(imm32));
169169 0x13 0xf5 0xce 0xa9
170170
171171 # CHECK: b.w #208962
172 # CHECK: b.w #-16777216
172173
173174 0x33 0xf0 0x21 0xb8 # rdar://12585795
175 0x00 0xf4 0x00 0x90
174176
175177 #------------------------------------------------------------------------------
176178 # BFC