• Home
  • Raw
  • Download

Lines Matching refs:imm32

598         (result, carry, overflow) = AddWithCarry(SP, imm32, '0');  in EmulateADDRdSPImm()
619 uint32_t imm32; in EmulateADDRdSPImm() local
623 imm32 = Bits32(opcode, 7, 0) << 2; // imm32 = ZeroExtend(imm8:'00', 32) in EmulateADDRdSPImm()
627 imm32 = ARMExpandImm(opcode); // imm32 = ARMExpandImm(imm12) in EmulateADDRdSPImm()
632 addr_t sp_offset = imm32; in EmulateADDRdSPImm()
808 result = imm32; in EmulateMOVRdImm()
824 uint32_t imm32; // the immediate value to be written to Rd in EmulateMOVRdImm() local
833 imm32 = Bits32(opcode, 7, 0); // imm32 = ZeroExtend(imm8, 32) in EmulateMOVRdImm()
841 imm32 = ThumbExpandImm_C(opcode, APSR_C, carry); in EmulateMOVRdImm()
856 imm32 = (imm4 << 12) | (i << 11) | (imm3 << 8) | imm8; in EmulateMOVRdImm()
868 imm32 = ARMExpandImm_C (opcode, APSR_C, carry); in EmulateMOVRdImm()
883 imm32 = (imm4 << 12) | imm12; in EmulateMOVRdImm()
894 uint32_t result = imm32; in EmulateMOVRdImm()
1048 result = NOT(imm32); in EmulateMVNImm()
1064 uint32_t imm32; // the output after ThumbExpandImm_C or ARMExpandImm_C in EmulateMVNImm() local
1071 imm32 = ThumbExpandImm_C(opcode, APSR_C, carry); in EmulateMVNImm()
1076 imm32 = ARMExpandImm_C(opcode, APSR_C, carry); in EmulateMVNImm()
1085 uint32_t result = ~imm32; in EmulateMVNImm()
1190 address = if add then (base + imm32) else (base - imm32); in EmulateLDRRtPCRelative()
1219 uint32_t imm32; // immediate offset from the PC in EmulateLDRRtPCRelative() local
1227 imm32 = Bits32(opcode, 7, 0) << 2; // imm32 = ZeroExtend(imm8:'00', 32); in EmulateLDRRtPCRelative()
1232 imm32 = Bits32(opcode, 11, 0) << 2; // imm32 = ZeroExtend(imm12, 32); in EmulateLDRRtPCRelative()
1243 address = base + imm32; in EmulateLDRRtPCRelative()
1245 address = base - imm32; in EmulateLDRRtPCRelative()
1285 (result, carry, overflow) = AddWithCarry(SP, imm32, '0'); in EmulateADDSPImm()
1305 uint32_t imm32; // the immediate operand in EmulateADDSPImm() local
1313 imm32 = (Bits32 (opcode, 7, 0) << 2); in EmulateADDSPImm()
1320 imm32 = ThumbImm7Scaled(opcode); // imm32 = ZeroExtend(imm7:'00', 32) in EmulateADDSPImm()
1327 addr_t sp_offset = imm32; in EmulateADDSPImm()
1436 targetAddress = Align(PC,4) + imm32; in EmulateBLXImmediate()
1438 targetAddress = PC + imm32; in EmulateBLXImmediate()
1455 int32_t imm32; // PC-relative offset in EmulateBLXImmediate() local
1468 imm32 = llvm::SignExtend32<25>(imm25); in EmulateBLXImmediate()
1469 target = pc + imm32; in EmulateBLXImmediate()
1470 context.SetISAAndImmediateSigned (eModeThumb, 4 + imm32); in EmulateBLXImmediate()
1486 imm32 = llvm::SignExtend32<25>(imm25); in EmulateBLXImmediate()
1487 target = Align(pc, 4) + imm32; in EmulateBLXImmediate()
1488 context.SetISAAndImmediateSigned (eModeARM, 4 + imm32); in EmulateBLXImmediate()
1495 imm32 = llvm::SignExtend32<26>(Bits32(opcode, 23, 0) << 2); in EmulateBLXImmediate()
1496 target = Align(pc, 4) + imm32; in EmulateBLXImmediate()
1497 context.SetISAAndImmediateSigned (eModeARM, 8 + imm32); in EmulateBLXImmediate()
1501imm32 = llvm::SignExtend32<26>(Bits32(opcode, 23, 0) << 2 | Bits32(opcode, 24, 24) << 1); in EmulateBLXImmediate()
1502 target = pc + imm32; in EmulateBLXImmediate()
1503 context.SetISAAndImmediateSigned (eModeThumb, 8 + imm32); in EmulateBLXImmediate()
1695 (result, carry, overflow) = AddWithCarry(SP, NOT(imm32), '1'); in EmulateSUBR7IPImm()
1714 uint32_t imm32; in EmulateSUBR7IPImm() local
1717 imm32 = ARMExpandImm(opcode); // imm32 = ARMExpandImm(imm12) in EmulateSUBR7IPImm()
1722 addr_t ip_offset = imm32; in EmulateSUBR7IPImm()
1747 (result, carry, overflow) = AddWithCarry(SP, NOT(imm32), '1'); in EmulateSUBIPSPImm()
1766 uint32_t imm32; in EmulateSUBIPSPImm() local
1769 imm32 = ARMExpandImm(opcode); // imm32 = ARMExpandImm(imm12) in EmulateSUBIPSPImm()
1774 addr_t sp_offset = imm32; in EmulateSUBIPSPImm()
1801 (result, carry, overflow) = AddWithCarry(SP, NOT(imm32), '1'); in EmulateSUBSPImm()
1823 uint32_t imm32; in EmulateSUBSPImm() local
1828 imm32 = ThumbImm7Scaled(opcode); // imm32 = ZeroExtend(imm7:'00', 32) in EmulateSUBSPImm()
1833 imm32 = ThumbExpandImm(opcode); // imm32 = ThumbExpandImm(i:imm3:imm8) in EmulateSUBSPImm()
1842 imm32 = ThumbImm12(opcode); // imm32 = ZeroExtend(i:imm3:imm8, 32) in EmulateSUBSPImm()
1849 imm32 = ARMExpandImm(opcode); // imm32 = ARMExpandImm(imm12) in EmulateSUBSPImm()
1858 AddWithCarryResult res = AddWithCarry(sp, ~imm32, 1); in EmulateSUBSPImm()
1863 …uint64_t imm64 = imm32; // Need to expand it to 64 bits before attempting to negate it, or the wr… in EmulateSUBSPImm()
1889 offset_addr = if add then (R[n] + imm32) else (R[n] - imm32); in EmulateSTRRtSP()
1992 address = SP - imm32; in EmulateVPUSH()
1993 SP = SP - imm32; in EmulateVPUSH()
2016 uint32_t imm32; // stack offset in EmulateVPUSH() local
2023 imm32 = Bits32(opcode, 7, 0) * addr_byte_size; in EmulateVPUSH()
2034 imm32 = Bits32(opcode, 7, 0) * addr_byte_size; in EmulateVPUSH()
2045 addr_t sp_offset = imm32; in EmulateVPUSH()
2090 SP = SP + imm32; in EmulateVPOP()
2112 uint32_t imm32; // stack offset in EmulateVPOP() local
2119 imm32 = Bits32(opcode, 7, 0) * addr_byte_size; in EmulateVPOP()
2130 imm32 = Bits32(opcode, 7, 0) * addr_byte_size; in EmulateVPOP()
2141 addr_t sp_offset = imm32; in EmulateVPOP()
2196 uint32_t imm32; // the immediate constant in EmulateSVC() local
2201 imm32 = Bits32(opcode, 7, 0); in EmulateSVC()
2206 imm32 = Bits32(opcode, 23, 0); in EmulateSVC()
2215 context.SetISAAndImmediate (mode, imm32); in EmulateSVC()
2252 BranchWritePC(PC + imm32); in EmulateB()
2266 int32_t imm32; // PC-relative offset in EmulateB() local
2270 imm32 = llvm::SignExtend32<9>(Bits32(opcode, 7, 0) << 1); in EmulateB()
2271 target = pc + imm32; in EmulateB()
2272 context.SetISAAndImmediateSigned (eModeThumb, 4 + imm32); in EmulateB()
2275 imm32 = llvm::SignExtend32<12>(Bits32(opcode, 10, 0)); in EmulateB()
2276 target = pc + imm32; in EmulateB()
2277 context.SetISAAndImmediateSigned (eModeThumb, 4 + imm32); in EmulateB()
2288 imm32 = llvm::SignExtend32<21>(imm21); in EmulateB()
2289 target = pc + imm32; in EmulateB()
2290 context.SetISAAndImmediateSigned (eModeThumb, 4 + imm32); in EmulateB()
2303 imm32 = llvm::SignExtend32<25>(imm25); in EmulateB()
2304 target = pc + imm32; in EmulateB()
2305 context.SetISAAndImmediateSigned (eModeThumb, 4 + imm32); in EmulateB()
2309 imm32 = llvm::SignExtend32<26>(Bits32(opcode, 23, 0) << 2); in EmulateB()
2310 target = pc + imm32; in EmulateB()
2311 context.SetISAAndImmediateSigned (eModeARM, 8 + imm32); in EmulateB()
2332 BranchWritePC(PC + imm32); in EmulateCB()
2349 uint32_t imm32; // PC-relative offset to branch forward in EmulateCB() local
2353 imm32 = Bit32(opcode, 9) << 6 | Bits32(opcode, 7, 3) << 1; in EmulateCB()
2355 target = pc + imm32; in EmulateCB()
2356 context.SetISAAndImmediateSigned (eModeThumb, 4 + imm32); in EmulateCB()
2452 (result, carry, overflow) = AddWithCarry(R[n], imm32, '0'); in EmulateADDImmThumb()
2468 uint32_t imm32; in EmulateADDImmThumb() local
2479 imm32 = Bits32 (opcode, 8,6); in EmulateADDImmThumb()
2488 imm32 = Bits32 (opcode, 7, 0); in EmulateADDImmThumb()
2499 imm32 = ThumbExpandImm_C (opcode, APSR_C, carry_out); in EmulateADDImmThumb()
2518 imm32 = (i << 11) | (imm3 << 8) | imm8; in EmulateADDImmThumb()
2535 AddWithCarryResult res = AddWithCarry (Rn, imm32, 0); in EmulateADDImmThumb()
2542 context.SetRegisterPlusOffset (reg_n, imm32); in EmulateADDImmThumb()
2566 (result, carry, overflow) = AddWithCarry(R[n], imm32, '0'); in EmulateADDImmARM()
2583 uint32_t imm32; // the immediate value to be added to the value obtained from Rn in EmulateADDImmARM() local
2591 imm32 = ARMExpandImm(opcode); // imm32 = ARMExpandImm(imm12) in EmulateADDImmARM()
2602 AddWithCarryResult res = AddWithCarry(val1, imm32, 0); in EmulateADDImmARM()
2608 context.SetRegisterPlusOffset (dwarf_reg, imm32); in EmulateADDImmARM()
2716 (result, carry, overflow) = AddWithCarry(R[n], imm32, '0'); in EmulateCMNImm()
2726 uint32_t imm32; // the immediate value to be compared with in EmulateCMNImm() local
2730 imm32 = ThumbExpandImm(opcode); // imm32 = ThumbExpandImm(i:imm3:imm8) in EmulateCMNImm()
2736 imm32 = ARMExpandImm(opcode); // imm32 = ARMExpandImm(imm12) in EmulateCMNImm()
2746 AddWithCarryResult res = AddWithCarry(reg_val, imm32, 0); in EmulateCMNImm()
2836 (result, carry, overflow) = AddWithCarry(R[n], NOT(imm32), '1'); in EmulateCMPImm()
2846 uint32_t imm32; // the immediate value to be compared with in EmulateCMPImm() local
2850 imm32 = Bits32(opcode, 7, 0); in EmulateCMPImm()
2854 imm32 = ThumbExpandImm(opcode); // imm32 = ThumbExpandImm(i:imm3:imm8) in EmulateCMPImm()
2860 imm32 = ARMExpandImm(opcode); // imm32 = ARMExpandImm(imm12) in EmulateCMPImm()
2870 AddWithCarryResult res = AddWithCarry(reg_val, ~imm32, 1); in EmulateCMPImm()
3861 offset_addr = if add then (R[n] + imm32) else (R[n] - imm32); in EmulateLDRRtRnImm()
3879 uint32_t imm32; // the immediate offset used to form the address in EmulateLDRRtRnImm() local
3888 imm32 = Bits32(opcode, 10, 6) << 2; // imm32 = ZeroExtend(imm5:'00', 32); in EmulateLDRRtRnImm()
3900 imm32 = Bits32 (opcode, 7, 0) << 2; in EmulateLDRRtRnImm()
3914 imm32 = Bits32 (opcode, 11, 0); in EmulateLDRRtRnImm()
3938 imm32 = Bits32 (opcode, 7, 0); in EmulateLDRRtRnImm()
3958 offset_addr = base + imm32; in EmulateLDRRtRnImm()
3960 offset_addr = base - imm32; in EmulateLDRRtRnImm()
4571 offset_addr = if add then (R[n] + imm32) else (R[n] - imm32); in EmulateSTRThumb()
4588 uint32_t imm32; in EmulateSTRThumb() local
4599 imm32 = Bits32 (opcode, 10, 6) << 2; in EmulateSTRThumb()
4611 imm32 = Bits32 (opcode, 7, 0) << 2; in EmulateSTRThumb()
4627 imm32 = Bits32 (opcode, 11, 0); in EmulateSTRThumb()
4650 imm32 = Bits32 (opcode, 7, 0); in EmulateSTRThumb()
4675 offset_addr = base_address + imm32; in EmulateSTRThumb()
4677 offset_addr = base_address - imm32; in EmulateSTRThumb()
4921 offset_addr = if add then (R[n] + imm32) else (R[n] - imm32); in EmulateSTRBThumb()
4934 uint32_t imm32; in EmulateSTRBThumb() local
4945 imm32 = Bits32 (opcode, 10, 6); in EmulateSTRBThumb()
4961 imm32 = Bits32 (opcode, 11, 0); in EmulateSTRBThumb()
4982 imm32 = Bits32 (opcode, 7, 0); in EmulateSTRBThumb()
5006 offset_addr = base_address + imm32; in EmulateSTRBThumb()
5008 offset_addr = base_address - imm32; in EmulateSTRBThumb()
5239 (result, carry, overflow) = AddWithCarry(R[n], imm32, APSR.C); in EmulateADCImm()
5256 uint32_t imm32; // the immediate value to be added to the value obtained from Rn in EmulateADCImm() local
5264 imm32 = ThumbExpandImm(opcode); // imm32 = ThumbExpandImm(i:imm3:imm8) in EmulateADCImm()
5272 imm32 = ARMExpandImm(opcode); // imm32 = ARMExpandImm(imm12) in EmulateADCImm()
5286 AddWithCarryResult res = AddWithCarry(val1, imm32, APSR_C); in EmulateADCImm()
5395 result = if add then (Align(PC,4) + imm32) else (Align(PC,4) - imm32); in EmulateADR()
5407 uint32_t imm32; // the immediate value to be added/subtracted to/from the PC in EmulateADR() local
5413 imm32 = ThumbImm8Scaled(opcode); // imm32 = ZeroExtend(imm8:'00', 32) in EmulateADR()
5419 imm32 = ThumbImm12(opcode); // imm32 = ZeroExtend(i:imm3:imm8, 32) in EmulateADR()
5427 imm32 = ARMExpandImm(opcode); // imm32 = ARMExpandImm(imm12) in EmulateADR()
5439 uint32_t result = (add ? Align(pc, 4) + imm32 : Align(pc, 4) - imm32); in EmulateADR()
5460 result = R[n] AND imm32; in EmulateANDImm()
5477 uint32_t imm32; // the immediate value to be ANDed to the value obtained from Rn in EmulateANDImm() local
5486imm32 = ThumbExpandImm_C(opcode, APSR_C, carry); // (imm32, carry) = ThumbExpandImm(i:imm3:imm8, A… in EmulateANDImm()
5497imm32 = ARMExpandImm_C(opcode, APSR_C, carry); // (imm32, carry) = ARMExpandImm(imm12, APSR.C) in EmulateANDImm()
5511 uint32_t result = val1 & imm32; in EmulateANDImm()
5625 result = R[n] AND NOT(imm32); in EmulateBICImm()
5642 …uint32_t imm32; // the immediate value to be bitwise inverted and ANDed to the value obtained from… in EmulateBICImm() local
5651imm32 = ThumbExpandImm_C(opcode, APSR_C, carry); // (imm32, carry) = ThumbExpandImm(i:imm3:imm8, A… in EmulateBICImm()
5659imm32 = ARMExpandImm_C(opcode, APSR_C, carry); // (imm32, carry) = ARMExpandImm(imm12, APSR.C) in EmulateBICImm()
5674 uint32_t result = val1 & ~imm32; in EmulateBICImm()
5784 offset_addr = if add then (R[n] + imm32) else (R[n] - imm32); in EmulateLDRImmediateARM()
5804 uint32_t imm32; in EmulateLDRImmediateARM() local
5818 imm32 = Bits32 (opcode, 11, 0); in EmulateLDRImmediateARM()
5843 offset_addr = base_address + imm32; in EmulateLDRImmediateARM()
5845 offset_addr = base_address - imm32; in EmulateLDRImmediateARM()
6135 offset_addr = if add then (R[n] + imm32) else (R[n] - imm32); in EmulateLDRBImmediate()
6147 uint32_t imm32; in EmulateLDRBImmediate() local
6159 imm32 = Bits32 (opcode, 10, 6); in EmulateLDRBImmediate()
6174 imm32 = Bits32 (opcode, 11, 0); in EmulateLDRBImmediate()
6198 imm32 = Bits32 (opcode, 7, 0); in EmulateLDRBImmediate()
6224 offset_addr = Rn + imm32; in EmulateLDRBImmediate()
6226 offset_addr = Rn - imm32; in EmulateLDRBImmediate()
6272 address = if add then (base + imm32) else (base - imm32); in EmulateLDRBLiteral()
6281 uint32_t imm32; in EmulateLDRBLiteral() local
6289 imm32 = Bits32 (opcode, 11, 0); in EmulateLDRBLiteral()
6301 imm32 = Bits32 (opcode, 11, 0); in EmulateLDRBLiteral()
6323 address = base + imm32; in EmulateLDRBLiteral()
6325 address = base - imm32; in EmulateLDRBLiteral()
6508 offset_addr = if add then (R[n] + imm32) else (R[n] - imm32); in EmulateLDRHImmediate()
6525 uint32_t imm32; in EmulateLDRHImmediate() local
6537 imm32 = Bits32 (opcode, 10, 6) << 1; in EmulateLDRHImmediate()
6552 imm32 = Bits32 (opcode, 11, 0); in EmulateLDRHImmediate()
6575 imm32 = Bits32 (opcode, 7, 0); in EmulateLDRHImmediate()
6600 offset_addr = Rn + imm32; in EmulateLDRHImmediate()
6602 offset_addr = Rn - imm32; in EmulateLDRHImmediate()
6658 address = if add then (base + imm32) else (base - imm32); in EmulateLDRHLiteral()
6671 uint32_t imm32; in EmulateLDRHLiteral() local
6681 imm32 = Bits32 (opcode, 11, 0); in EmulateLDRHLiteral()
6697 imm32 = (imm4H << 4) | imm4L; in EmulateLDRHLiteral()
6720 address = base + imm32; in EmulateLDRHLiteral()
6722 address = base - imm32; in EmulateLDRHLiteral()
6940 offset_addr = if add then (R[n] + imm32) else (R[n] - imm32); in EmulateLDRSBImmediate()
6952 uint32_t imm32; in EmulateLDRSBImmediate() local
6966 imm32 = Bits32 (opcode, 11, 0); in EmulateLDRSBImmediate()
6990 imm32 = Bits32 (opcode, 7, 0); in EmulateLDRSBImmediate()
7015 imm32 = (imm4H << 4) | imm4L; in EmulateLDRSBImmediate()
7042 offset_addr = Rn + imm32; in EmulateLDRSBImmediate()
7044 offset_addr = Rn - imm32; in EmulateLDRSBImmediate()
7090 address = if add then (base + imm32) else (base - imm32); in EmulateLDRSBLiteral()
7099 uint32_t imm32; in EmulateLDRSBLiteral() local
7109 imm32 = Bits32 (opcode, 11, 0); in EmulateLDRSBLiteral()
7124 imm32 = (imm4H << 4) | imm4L; in EmulateLDRSBLiteral()
7147 address = base + imm32; in EmulateLDRSBLiteral()
7149 address = base - imm32; in EmulateLDRSBLiteral()
7337 offset_addr = if add then (R[n] + imm32) else (R[n] - imm32); in EmulateLDRSHImmediate()
7353 uint32_t imm32; in EmulateLDRSHImmediate() local
7367 imm32 = Bits32 (opcode, 11, 0); in EmulateLDRSHImmediate()
7391 imm32 = Bits32 (opcode, 7, 0); in EmulateLDRSHImmediate()
7413 imm32 = (imm4H << 4) | imm4L; in EmulateLDRSHImmediate()
7438 offset_addr = Rn + imm32; in EmulateLDRSHImmediate()
7440 offset_addr = Rn - imm32; in EmulateLDRSHImmediate()
7498 address = if add then (base + imm32) else (base - imm32); in EmulateLDRSHLiteral()
7511 uint32_t imm32; in EmulateLDRSHLiteral() local
7521 imm32 = Bits32 (opcode, 11, 0); in EmulateLDRSHLiteral()
7536 imm32 = (imm4H << 4) | imm4L; in EmulateLDRSHLiteral()
7559 address = base + imm32; in EmulateLDRSHLiteral()
7561 address = base - imm32; in EmulateLDRSHLiteral()
7569 context.SetRegisterPlusOffset (base_reg, imm32); in EmulateLDRSHLiteral()
8259 result = R[n] EOR imm32; in EmulateEORImm()
8276 uint32_t imm32; // the immediate value to be ORed to the value obtained from Rn in EmulateEORImm() local
8285imm32 = ThumbExpandImm_C(opcode, APSR_C, carry); // (imm32, carry) = ThumbExpandImm(i:imm3:imm8, A… in EmulateEORImm()
8296imm32 = ARMExpandImm_C(opcode, APSR_C, carry); // (imm32, carry) = ARMExpandImm(imm12, APSR.C) in EmulateEORImm()
8311 uint32_t result = val1 ^ imm32; in EmulateEORImm()
8426 result = R[n] OR imm32; in EmulateORRImm()
8443 uint32_t imm32; // the immediate value to be ORed to the value obtained from Rn in EmulateORRImm() local
8452imm32 = ThumbExpandImm_C(opcode, APSR_C, carry); // (imm32, carry) = ThumbExpandImm(i:imm3:imm8, A… in EmulateORRImm()
8463imm32 = ARMExpandImm_C(opcode, APSR_C, carry); // (imm32, carry) = ARMExpandImm(imm12, APSR.C) in EmulateORRImm()
8477 uint32_t result = val1 | imm32; in EmulateORRImm()
8590 (result, carry, overflow) = AddWithCarry(NOT(R[n]), imm32, '1'); in EmulateRSBImm()
8607 uint32_t imm32; // the immediate value to be added to the value obtained from Rn in EmulateRSBImm() local
8613 imm32 = 0; in EmulateRSBImm()
8619 imm32 = ThumbExpandImm(opcode); // imm32 = ThumbExpandImm(i:imm3:imm8) in EmulateRSBImm()
8627 imm32 = ARMExpandImm(opcode); // imm32 = ARMExpandImm(imm12) in EmulateRSBImm()
8641 AddWithCarryResult res = AddWithCarry(~reg_val, imm32, 1); in EmulateRSBImm()
8742 (result, carry, overflow) = AddWithCarry(NOT(R[n]), imm32, APSR.C); in EmulateRSCImm()
8759 uint32_t imm32; // the immediate value to be added to the value obtained from Rn in EmulateRSCImm() local
8765 imm32 = ARMExpandImm(opcode); // imm32 = ARMExpandImm(imm12) in EmulateRSCImm()
8779 AddWithCarryResult res = AddWithCarry(~reg_val, imm32, APSR_C); in EmulateRSCImm()
8871 (result, carry, overflow) = AddWithCarry(R[n], NOT(imm32), APSR.C); in EmulateSBCImm()
8888 uint32_t imm32; // the immediate value to be added to the value obtained from Rn in EmulateSBCImm() local
8894 imm32 = ThumbExpandImm(opcode); // imm32 = ThumbExpandImm(i:imm3:imm8) in EmulateSBCImm()
8902 imm32 = ARMExpandImm(opcode); // imm32 = ARMExpandImm(imm12) in EmulateSBCImm()
8916 AddWithCarryResult res = AddWithCarry(reg_val, ~imm32, APSR_C); in EmulateSBCImm()
9023 (result, carry, overflow) = AddWithCarry(R[n], NOT(imm32), '1'); in EmulateSUBImmThumb()
9037 uint32_t imm32; // the immediate value to be subtracted from the value obtained from Rn in EmulateSUBImmThumb() local
9043 imm32 = Bits32(opcode, 8, 6); // imm32 = ZeroExtend(imm3, 32) in EmulateSUBImmThumb()
9048 imm32 = Bits32(opcode, 7, 0); // imm32 = ZeroExtend(imm8, 32) in EmulateSUBImmThumb()
9054 imm32 = ThumbExpandImm(opcode); // imm32 = ThumbExpandImm(i:imm3:imm8) in EmulateSUBImmThumb()
9072 imm32 = ThumbImm12(opcode); // imm32 = ZeroExtend(i:imm3:imm8, 32) in EmulateSUBImmThumb()
9093 AddWithCarryResult res = AddWithCarry(reg_val, ~imm32, 1); in EmulateSUBImmThumb()
9114 (result, carry, overflow) = AddWithCarry(R[n], NOT(imm32), '1'); in EmulateSUBImmARM()
9131 uint32_t imm32; // the immediate value to be subtracted from the value obtained from Rn in EmulateSUBImmARM() local
9137 imm32 = ARMExpandImm(opcode); // imm32 = ARMExpandImm(imm12) in EmulateSUBImmARM()
9159 AddWithCarryResult res = AddWithCarry(reg_val, ~imm32, 1); in EmulateSUBImmARM()
9180 result = R[n] EOR imm32; in EmulateTEQImm()
9192 uint32_t imm32; // the immediate value to be ANDed to the value obtained from Rn in EmulateTEQImm() local
9198imm32 = ThumbExpandImm_C (opcode, APSR_C, carry); // (imm32, carry) = ThumbExpandImm(i:imm3:imm8, … in EmulateTEQImm()
9204imm32 = ARMExpandImm_C (opcode, APSR_C, carry); // (imm32, carry) = ARMExpandImm(imm12, APSR.C) in EmulateTEQImm()
9215 uint32_t result = val1 ^ imm32; in EmulateTEQImm()
9305 result = R[n] AND imm32; in EmulateTSTImm()
9317 uint32_t imm32; // the immediate value to be ANDed to the value obtained from Rn in EmulateTSTImm() local
9323imm32 = ThumbExpandImm_C(opcode, APSR_C, carry); // (imm32, carry) = ThumbExpandImm(i:imm3:imm8, A… in EmulateTSTImm()
9329imm32 = ARMExpandImm_C(opcode, APSR_C, carry); // (imm32, carry) = ARMExpandImm(imm12, APSR.C) in EmulateTSTImm()
9340 uint32_t result = val1 & imm32; in EmulateTSTImm()
9757 address = R[n] + imm32; in EmulateSTREX()
9772 uint32_t imm32; in EmulateSTREX() local
9782 imm32 = Bits32 (opcode, 7, 0) << 2; in EmulateSTREX()
9799 imm32 = 0; in EmulateSTREX()
9820 addr_t address = Rn + imm32; in EmulateSTREX()
9828 context.SetRegisterToRegisterPlusOffset (data_reg, base_reg, imm32); in EmulateSTREX()
9864 offset_addr = if add then (R[n] + imm32) else (R[n] - imm32); in EmulateSTRBImmARM()
9876 uint32_t imm32; in EmulateSTRBImmARM() local
9888 imm32 = Bits32 (opcode, 11, 0); in EmulateSTRBImmARM()
9916 offset_addr = Rn + imm32; in EmulateSTRBImmARM()
9918 offset_addr = Rn - imm32; in EmulateSTRBImmARM()
9960 offset_addr = if add then (R[n] + imm32) else (R[n] - imm32); in EmulateSTRImmARM()
9972 uint32_t imm32; in EmulateSTRImmARM() local
9987 imm32 = Bits32 (opcode, 11, 0); in EmulateSTRImmARM()
10011 offset_addr = Rn + imm32; in EmulateSTRImmARM()
10013 offset_addr = Rn - imm32; in EmulateSTRImmARM()
10072 offset_addr = if add then (R[n] + imm32) else (R[n] - imm32); in EmulateLDRDImmediate()
10086 uint32_t imm32; in EmulateLDRDImmediate() local
10100 imm32 = Bits32 (opcode, 7, 0) << 2; in EmulateLDRDImmediate()
10126 imm32 = (Bits32 (opcode, 11, 8) << 4) | Bits32 (opcode, 3, 0); in EmulateLDRDImmediate()
10158 offset_addr = Rn + imm32; in EmulateLDRDImmediate()
10160 offset_addr = Rn - imm32; in EmulateLDRDImmediate()
10344 offset_addr = if add then (R[n] + imm32) else (R[n] - imm32); in EmulateSTRDImm()
10358 uint32_t imm32; in EmulateSTRDImm() local
10371 imm32 = Bits32 (opcode, 7, 0) << 2; in EmulateSTRDImm()
10397 imm32 = (Bits32 (opcode, 11, 8) << 4) | Bits32 (opcode, 3, 0); in EmulateSTRDImm()
10432 offset_addr = Rn + imm32; in EmulateSTRDImm()
10434 offset_addr = Rn - imm32; in EmulateSTRDImm()
10628 address = if add then R[n] else R[n]-imm32; in EmulateVLDM()
10629 if wback then R[n] = if add then R[n]+imm32 else R[n]-imm32; in EmulateVLDM()
10648 uint32_t imm32; in EmulateVLDM() local
10671 imm32 = Bits32 (opcode, 7, 0) << 2; in EmulateVLDM()
10704 imm32 = Bits32 (opcode, 7, 0) << 2; in EmulateVLDM()
10732 address = Rn - imm32; in EmulateVLDM()
10741 value = Rn + imm32; in EmulateVLDM()
10743 value = Rn - imm32; in EmulateVLDM()
10819 address = if add then R[n] else R[n]-imm32; in EmulateVSTM()
10820 if wback then R[n] = if add then R[n]+imm32 else R[n]-imm32; in EmulateVSTM()
10840 uint32_t imm32; in EmulateVSTM() local
10863 imm32 = Bits32 (opcode, 7, 0) << 2; in EmulateVSTM()
10896 imm32 = Bits32 (opcode, 7, 0) << 2; in EmulateVSTM()
10925 address = Rn - imm32; in EmulateVSTM()
10933 value = Rn + imm32; in EmulateVSTM()
10935 value = Rn - imm32; in EmulateVSTM()
11017 address = if add then (base + imm32) else (base - imm32); in EmulateVLDR()
11032 uint32_t imm32; in EmulateVLDR() local
11043 imm32 = Bits32 (opcode, 7, 0) << 2; in EmulateVLDR()
11056 imm32 = Bits32 (opcode, 7, 0) << 2; in EmulateVLDR()
11084 address = base + imm32; in EmulateVLDR()
11086 address = base - imm32; in EmulateVLDR()
11146 address = if add then (R[n] + imm32) else (R[n] - imm32); in EmulateVSTR()
11161 uint32_t imm32; in EmulateVSTR() local
11172 imm32 = Bits32 (opcode, 7, 0) << 2; in EmulateVSTR()
11189 imm32 = Bits32 (opcode, 7, 0) << 2; in EmulateVSTR()
11215 address = Rn + imm32; in EmulateVSTR()
11217 address = Rn - imm32; in EmulateVSTR()
12080 operand2 = if register_form then Shift(R[m], shift_t, shift_n, APSR.C) else imm32; in EmulateSUBSPcLrEtc()
12104 uint32_t imm32; in EmulateSUBSPcLrEtc() local
12116 imm32 = Bits32 (opcode, 7, 0); in EmulateSUBSPcLrEtc()
12129 imm32 = ARMExpandImm (opcode); in EmulateSUBSPcLrEtc()
12164 operand2 = imm32; in EmulateSUBSPcLrEtc()