/external/llvm/lib/Target/Mips/Disassembler/ |
D | MipsDisassembler.cpp | 1270 int Offset = SignExtend32<16>(Insn & 0xffff); in DecodeMem() 1292 int Offset = SignExtend32<9>(Insn >> 7); in DecodeMemEVA() 1313 int Offset = SignExtend32<9>(Insn & 0x1ff); in DecodeLoadByte9() 1331 int Offset = SignExtend32<16>(Insn & 0xffff); in DecodeLoadByte15() 1349 int Offset = SignExtend32<16>(Insn & 0xffff); in DecodeCacheOp() 1366 int Offset = SignExtend32<12>(Insn & 0xfff); in DecodeCacheOpMM() 1383 int Offset = SignExtend32<9>(Insn & 0x1ff); in DecodePrefeOpMM() 1400 int Offset = SignExtend32<9>(Insn >> 7); in DecodeCacheeOp_CacheOpR6() 1417 int Offset = SignExtend32<9>(Insn & 0x1ff); in DecodeStoreEvaOpMM() 1435 int Offset = SignExtend32<16>(Insn & 0xffff); in DecodeSyncI() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Mips/Disassembler/ |
D | MipsDisassembler.cpp | 1523 int Offset = SignExtend32<16>(Insn & 0xffff); in DecodeMem() 1545 int Offset = SignExtend32<9>(Insn >> 7); in DecodeMemEVA() 1566 int Offset = SignExtend32<16>(Insn & 0xffff); in DecodeLoadByte15() 1584 int Offset = SignExtend32<16>(Insn & 0xffff); in DecodeCacheOp() 1601 int Offset = SignExtend32<12>(Insn & 0xfff); in DecodeCacheOpMM() 1618 int Offset = SignExtend32<9>(Insn & 0x1ff); in DecodePrefeOpMM() 1635 int Offset = SignExtend32<9>(Insn >> 7); in DecodeCacheeOp_CacheOpR6() 1652 int Offset = SignExtend32<16>(Insn & 0xffff); in DecodeSyncI() 1665 int Offset = SignExtend32<16>(Insn & 0xffff); in DecodeSyncI_MM() 1680 int Immediate = SignExtend32<16>(Insn & 0xffff); in DecodeSynciR6() [all …]
|
/external/capstone/arch/Mips/ |
D | MipsDisassembler.c | 889 int Offset = SignExtend32(Insn & 0xffff, 16); in DecodeMem() 910 int Offset = SignExtend32(Insn & 0xffff, 16); in DecodeCachePref() 926 int Offset = SignExtend32(fieldFromInstruction(Insn, 16, 10), 10); in DecodeMSA128Mem() 973 int Offset = SignExtend32(Insn & 0x0fff, 12); in DecodeMemMMImm12() 993 int Offset = SignExtend32(Insn & 0xffff, 16); in DecodeMemMMImm16() 1010 int Offset = SignExtend32(Insn & 0xffff, 16); in DecodeFMem() 1027 int Offset = SignExtend32(Insn & 0xffff, 16); in DecodeCOP2Mem() 1044 int Offset = SignExtend32(Insn & 0xffff, 16); in DecodeCOP3Mem() 1234 uint64_t TargetAddress = (SignExtend32(Offset, 16) * 4) + Address + 4; in DecodeBranchTarget() 1252 int32_t BranchOffset = SignExtend32(Offset, 21) * 4; in DecodeBranchTarget21() [all …]
|
/external/capstone/arch/Sparc/ |
D | SparcDisassembler.c | 263 simm13 = SignExtend32(fieldFromInstruction_4(insn, 0, 13), 13); in DecodeMem() 366 unsigned tgt = SignExtend32(fieldFromInstruction_4(insn, 0, 13), 13); in DecodeSIMM13() 384 simm13 = SignExtend32(fieldFromInstruction_4(insn, 0, 13), 13); in DecodeJMPL() 419 simm13 = SignExtend32(fieldFromInstruction_4(insn, 0, 13), 13); in DecodeReturn() 451 simm13 = SignExtend32(fieldFromInstruction_4(insn, 0, 13), 13); in DecodeSWAP()
|
D | SparcInstPrinter.c | 202 Imm = SignExtend32(Imm, 30); in printOperand() 220 Imm = SignExtend32(Imm, 19); in printOperand() 231 Imm = SignExtend32(Imm, 22); in printOperand() 260 Imm = SignExtend32(Imm, 16); in printOperand()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Lanai/Disassembler/ |
D | LanaiDisassembler.cpp | 179 Inst.addOperand(MCOperand::createImm(SignExtend32<16>(Offset))); in decodeRiMemoryValue() 203 Inst.addOperand(MCOperand::createImm(SignExtend32<10>(Offset))); in decodeSplsValue() 228 Inst.addOperand(MCOperand::createImm(SignExtend32<16>(Offset))); in decodeShiftImm()
|
/external/llvm/lib/Target/Lanai/Disassembler/ |
D | LanaiDisassembler.cpp | 180 Inst.addOperand(MCOperand::createImm(SignExtend32<16>(Offset))); in decodeRiMemoryValue() 204 Inst.addOperand(MCOperand::createImm(SignExtend32<10>(Offset))); in decodeSplsValue() 229 Inst.addOperand(MCOperand::createImm(SignExtend32<16>(Offset))); in decodeShiftImm()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/ARC/Disassembler/ |
D | ARCDisassembler.cpp | 165 Inst.addOperand(MCOperand::createImm(SignExtend32<9>(S9))); in DecodeMEMrs9() 192 DecodeSymbolicOperandOff(Inst, Address, SignExtend32<B>(InsnS), Decoder); in DecodeBranchTargetS() 203 SignExtend32<B>(maskTrailingOnes<decltype(InsnS)>(B) & InsnS))); in DecodeSignedOperand()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Sparc/Disassembler/ |
D | SparcDisassembler.cpp | 391 simm13 = SignExtend32<13>(fieldFromInstruction(insn, 0, 13)); in DecodeMem() 532 unsigned tgt = SignExtend32<13>(fieldFromInstruction(insn, 0, 13)); in DecodeSIMM13() 546 simm13 = SignExtend32<13>(fieldFromInstruction(insn, 0, 13)); in DecodeJMPL() 579 simm13 = SignExtend32<13>(fieldFromInstruction(insn, 0, 13)); in DecodeReturn() 610 simm13 = SignExtend32<13>(fieldFromInstruction(insn, 0, 13)); in DecodeSWAP()
|
/external/llvm/lib/Target/Sparc/Disassembler/ |
D | SparcDisassembler.cpp | 389 simm13 = SignExtend32<13>(fieldFromInstruction(insn, 0, 13)); in DecodeMem() 530 unsigned tgt = SignExtend32<13>(fieldFromInstruction(insn, 0, 13)); in DecodeSIMM13() 544 simm13 = SignExtend32<13>(fieldFromInstruction(insn, 0, 13)); in DecodeJMPL() 577 simm13 = SignExtend32<13>(fieldFromInstruction(insn, 0, 13)); in DecodeReturn() 608 simm13 = SignExtend32<13>(fieldFromInstruction(insn, 0, 13)); in DecodeSWAP()
|
/external/llvm/lib/ExecutionEngine/RuntimeDyld/ |
D | RuntimeDyldELF.cpp | 1008 if (SignExtend32<32>(Result) != Result) in resolvePPC64Relocation() 1015 if (SignExtend32<26>(delta) != delta) in resolvePPC64Relocation() 1023 if (SignExtend32<32>(delta) != delta) in resolvePPC64Relocation() 1433 int64_t Addend = Value.Addend + SignExtend32<16>(Opcode & 0x0000ffff); in processRelocationRef() 1458 Value.Addend += SignExtend32<18>((Opcode & 0x0000ffff) << 2); in processRelocationRef() 1460 Value.Addend += SignExtend32<21>((Opcode & 0x0007ffff) << 2); in processRelocationRef() 1462 Value.Addend += SignExtend32<23>((Opcode & 0x001fffff) << 2); in processRelocationRef() 1464 Value.Addend += SignExtend32<28>((Opcode & 0x03ffffff) << 2); in processRelocationRef() 1513 if (SignExtend32<26>(delta) == delta) { in processRelocationRef()
|
/external/llvm/lib/Target/PowerPC/InstPrinter/ |
D | PPCInstPrinter.cpp | 273 Value = SignExtend32<5>(Value); in printS5ImmOperand() 351 O << SignExtend32<32>((unsigned)MI->getOperand(OpNo).getImm() << 2); in printAbsBranchOperand()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/PowerPC/InstPrinter/ |
D | PPCInstPrinter.cpp | 314 Value = SignExtend32<5>(Value); in printS5ImmOperand() 394 O << SignExtend32<32>((unsigned)MI->getOperand(OpNo).getImm() << 2); in printAbsBranchOperand()
|
/external/capstone/ |
D | MathExtras.h | 409 static inline int32_t SignExtend32(uint32_t X, unsigned B) { in SignExtend32() function
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/BPF/Disassembler/ |
D | BPFDisassembler.cpp | 134 Inst.addOperand(MCOperand::createImm(SignExtend32<16>(Offset))); in decodeMemoryOpValue()
|
/external/llvm/include/llvm/Support/ |
D | MathExtras.h | 663 template <unsigned B> inline int32_t SignExtend32(uint32_t x) { 669 inline int32_t SignExtend32(uint32_t X, unsigned B) {
|
/external/swiftshader/third_party/llvm-subzero/include/llvm/Support/ |
D | MathExtras.h | 715 template <unsigned B> constexpr inline int32_t SignExtend32(uint32_t X) { 723 inline int32_t SignExtend32(uint32_t X, unsigned B) {
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Support/ |
D | MathExtras.h | 733 template <unsigned B> constexpr inline int32_t SignExtend32(uint32_t X) { 741 inline int32_t SignExtend32(uint32_t X, unsigned B) {
|
/external/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/ |
D | RuntimeDyldMachOARM.h | 48 return SignExtend32<26>(Temp << 2); in decodeAddend()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/ExecutionEngine/RuntimeDyld/ |
D | RuntimeDyldELF.cpp | 1314 int64_t Addend = Value.Addend + SignExtend32<16>(Opcode & 0x0000ffff); in processRelocationRef() 1339 Value.Addend += SignExtend32<18>((Opcode & 0x0000ffff) << 2); in processRelocationRef() 1341 Value.Addend += SignExtend32<21>((Opcode & 0x0007ffff) << 2); in processRelocationRef() 1343 Value.Addend += SignExtend32<23>((Opcode & 0x001fffff) << 2); in processRelocationRef() 1345 Value.Addend += SignExtend32<28>((Opcode & 0x03ffffff) << 2); in processRelocationRef()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/ARM/Disassembler/ |
D | ARMDisassembler.cpp | 2277 int imm32 = SignExtend32<25>(tmp << 1); in DecodeT2BInstruction() 2296 if (!tryAddingSymbolicOperand(Address, Address + SignExtend32<26>(imm) + 8, in DecodeBranchImmInstruction() 2298 Inst.addOperand(MCOperand::createImm(SignExtend32<26>(imm))); in DecodeBranchImmInstruction() 2302 if (!tryAddingSymbolicOperand(Address, Address + SignExtend32<26>(imm) + 8, in DecodeBranchImmInstruction() 2304 Inst.addOperand(MCOperand::createImm(SignExtend32<26>(imm))); in DecodeBranchImmInstruction() 3258 if (!tryAddingSymbolicOperand(Address, Address + SignExtend32<12>(Val<<1) + 4, in DecodeThumbBROperand() 3260 Inst.addOperand(MCOperand::createImm(SignExtend32<12>(Val << 1))); in DecodeThumbBROperand() 3266 if (!tryAddingSymbolicOperand(Address, Address + SignExtend32<21>(Val) + 4, in DecodeT2BROperand() 3268 Inst.addOperand(MCOperand::createImm(SignExtend32<21>(Val))); in DecodeT2BROperand() 3959 int imm32 = SignExtend32<25>(tmp << 1); in DecodeThumbBLXOffset() [all …]
|
/external/llvm/lib/Target/ARM/Disassembler/ |
D | ARMDisassembler.cpp | 2278 int imm32 = SignExtend32<25>(tmp << 1); in DecodeT2BInstruction() 2297 if (!tryAddingSymbolicOperand(Address, Address + SignExtend32<26>(imm) + 8, in DecodeBranchImmInstruction() 2299 Inst.addOperand(MCOperand::createImm(SignExtend32<26>(imm))); in DecodeBranchImmInstruction() 2303 if (!tryAddingSymbolicOperand(Address, Address + SignExtend32<26>(imm) + 8, in DecodeBranchImmInstruction() 2305 Inst.addOperand(MCOperand::createImm(SignExtend32<26>(imm))); in DecodeBranchImmInstruction() 3259 if (!tryAddingSymbolicOperand(Address, Address + SignExtend32<12>(Val<<1) + 4, in DecodeThumbBROperand() 3261 Inst.addOperand(MCOperand::createImm(SignExtend32<12>(Val << 1))); in DecodeThumbBROperand() 3267 if (!tryAddingSymbolicOperand(Address, Address + SignExtend32<21>(Val) + 4, in DecodeT2BROperand() 3269 Inst.addOperand(MCOperand::createImm(SignExtend32<21>(Val))); in DecodeT2BROperand() 3959 int imm32 = SignExtend32<25>(tmp << 1); in DecodeThumbBLXOffset() [all …]
|
/external/capstone/arch/ARM/ |
D | ARMDisassembler.c | 2237 int imm32 = SignExtend32(tmp << 1, 25); in DecodeT2BInstruction() 2254 MCOperand_CreateImm0(Inst, SignExtend32(imm, 26)); in DecodeBranchImmInstruction() 2258 MCOperand_CreateImm0(Inst, SignExtend32(imm, 26)); in DecodeBranchImmInstruction() 3235 MCOperand_CreateImm0(Inst, SignExtend32(Val << 1, 12)); in DecodeThumbBROperand() 3242 MCOperand_CreateImm0(Inst, SignExtend32(Val, 21)); in DecodeT2BROperand() 3897 int imm32 = SignExtend32(tmp << 1, 25); in DecodeThumbBLXOffset() 4007 MCOperand_CreateImm0(Inst, SignExtend32(Val << 1, 9)); in DecodeThumbBCCTargetOperand() 4027 int imm32 = SignExtend32(tmp << 1, 25); in DecodeThumbBLTargetOperand() 4953 MCOperand_CreateImm0(Inst, SignExtend32(Val, 13)); in DecodeT2Adr()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/ |
D | RuntimeDyldMachOARM.h | 73 return SignExtend32<26>(Temp << 2); in decodeAddend()
|
/external/capstone/arch/PowerPC/ |
D | PPCInstPrinter.c | 389 Value = SignExtend32(Value, 5); in printS5ImmOperand()
|