/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_ring_buffer.h | 96 static uptr SignExtend(uptr x) { return ((sptr)x) << kSizeBits >> kSizeBits; } in Init() 107 CHECK_EQ(st, SignExtend(st & kNextMask)); in Init() 129 T *Next() const { return (T *)(SignExtend(long_ & kNextMask)); } in StartOfStorage() 94 static uptr SignExtend(uptr x) { return ((sptr)x) << kSizeBits >> kSizeBits; } SignExtend() function
|
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/ |
H A D | Bitfields.h | 113 static constexpr Unsigned SignExtend = Unsigned(Smin << 1U); // 11000000 member 143 UserValue &= ~BP::SignExtend; 149 StorageValue |= BP::SignExtend;
|
/freebsd/contrib/llvm-project/lldb/source/Plugins/Instruction/ARM64/ |
H A D | EmulateInstructionARM64.cpp | 886 if (!vector && is_signed && !data_Rt.SignExtend(datasize)) in EmulateLDPSTP() 904 if (!vector && is_signed && !data_Rt2.SignExtend(datasize)) in EmulateLDPSTP() 1103 bits(64) offset = SignExtend(imm19:'00', 64); in EmulateBcond() 1134 bits(64) offset = SignExtend(imm19:'00', 64); in EmulateCBZ() 1173 bits(64) offset = SignExtend(imm14:'00', 64); in EmulateTBZ()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/MCTargetDesc/ |
H A D | AArch64InstPrinter.cpp | 870 unsigned SignExtend = MI->getOperand(3).getImm(); // encoded in "option<2>". in printRangePrefetchAlias() 873 assert((SignExtend <= 1) && "sign extend should be a single bit!"); in printRangePrefetchAlias() 880 (SignExtend << 5) | (Option0 << 4) | (Shift << 3) | (PRFOp & 0x7); in printRangePrefetchAlias() 1303 void AArch64InstPrinter::printMemExtendImpl(bool SignExtend, bool DoShift, in printMemExtendImpl() 1307 bool IsLSL = !SignExtend && SrcRegKind == 'x'; in printMemExtend() 1311 O << (SignExtend ? 's' : 'u') << "xt" << SrcRegKind; in printMemExtend() 1322 bool SignExtend = MI->getOperand(OpNum).getImm(); in printRegWithShiftExtend() 1324 printMemExtendImpl(SignExtend, DoShift, Width, SrcRegKind, O); in printRegWithShiftExtend() 1327 template <bool SignExtend, int ExtWidth, char SrcRegKind, char Suffix> in printRegWithShiftExtend() 1339 if (SignExtend || DoShif in printPredicateAsCounter() 855 unsigned SignExtend = MI->getOperand(3).getImm(); // encoded in "option<2>". printRangePrefetchAlias() local 1286 printMemExtendImpl(bool SignExtend,bool DoShift,unsigned Width,char SrcRegKind,raw_ostream & O,bool UseMarkup) printMemExtendImpl() argument 1309 bool SignExtend = MI->getOperand(OpNum).getImm(); printMemExtend() local [all...] |
H A D | AArch64MCCodeEmitter.cpp | 385 unsigned SignExtend = MI.getOperand(OpIdx).getImm(); in getTestBranchTargetOpValue() 387 return (SignExtend << 1) | DoShift; in getTestBranchTargetOpValue() 356 unsigned SignExtend = MI.getOperand(OpIdx).getImm(); getMemExtendOpValue() local
|
/freebsd/contrib/llvm-project/lldb/include/lldb/DataFormatters/ |
H A D | FormattersHelpers.h | 148 InferiorSizedWord SignExtend() const { in SignExtend() function
|
/freebsd/contrib/llvm-project/lldb/source/Utility/ |
H A D | RegisterValue.cpp | 435 bool RegisterValue::SignExtend(uint32_t sign_bitpos) { in SignExtend() function in RegisterValue 445 return m_scalar.SignExtend(sign_bitpos); in SignExtend()
|
H A D | Scalar.cpp | 746 bool Scalar::SignExtend(uint32_t sign_bit_pos) { in SignExtend() function in Scalar
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | SimplifyIndVar.cpp | 1353 bool SignExtend = getExtendKind(NarrowDef) == ExtendKind::Sign; in cloneArithmeticIVUser() local 1354 if (!GuessNonIVOperand(SignExtend)) { in cloneArithmeticIVUser() 1355 SignExtend = !SignExtend; in cloneArithmeticIVUser() 1356 if (!GuessNonIVOperand(SignExtend)) in cloneArithmeticIVUser() 1363 SignExtend, NarrowUse); in cloneArithmeticIVUser() 1367 SignExtend, NarrowUse); in cloneArithmeticIVUser()
|
/freebsd/contrib/llvm-project/lldb/include/lldb/Utility/ |
H A D | RegisterValue.h | 244 bool SignExtend(uint32_t sign_bitpos);
|
H A D | Scalar.h | 76 bool SignExtend(uint32_t bit_pos);
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/ |
H A D | AArch64ISelDAGToDAG.cpp | 151 SDValue &SignExtend, SDValue &DoShift) { in SelectAddrModeWRO() argument 152 return SelectAddrModeWRO(N, Width / 8, Base, Offset, SignExtend, DoShift); in SelectAddrModeWRO() 157 SDValue &SignExtend, SDValue &DoShift) { in SelectAddrModeXRO() argument 158 return SelectAddrModeXRO(N, Width / 8, Base, Offset, SignExtend, DoShift); in SelectAddrModeXRO() 467 SDValue &Offset, SDValue &SignExtend, 470 SDValue &Offset, SDValue &SignExtend, 475 SDValue &Offset, SDValue &SignExtend); 1203 SDValue &SignExtend) { in SelectExtendedSHL() argument 1217 SignExtend = CurDAG->getTargetConstant(Ext == AArch64_AM::SXTW, dl, in SelectExtendedSHL() 1221 SignExtend = CurDAG->getTargetConstant(0, dl, MVT::i32); in SelectExtendedSHL() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/ |
H A D | RISCVISelDAGToDAG.cpp | 1542 bool SignExtend = Load->getExtensionType() == ISD::SEXTLOAD; in Select() local 1555 if (Simm12 && SignExtend) in Select() 1557 else if (Simm12 && !SignExtend) in Select() 1559 else if (!Simm12 && SignExtend) in Select() 1565 if (Simm12 && SignExtend) in Select() 1567 else if (Simm12 && !SignExtend) in Select() 1569 else if (!Simm12 && SignExtend) in Select()
|
/freebsd/contrib/llvm-project/lldb/source/Plugins/ABI/SystemZ/ |
H A D | ABISysV_s390x.cpp | 294 scalar.SignExtend(bit_width); in ReadIntegerArgument()
|
/freebsd/contrib/llvm-project/lldb/source/Plugins/ABI/X86/ |
H A D | ABIWindows_x86_64.cpp | 219 scalar.SignExtend(bit_width); in ReadIntegerArgument()
|
H A D | ABISysV_x86_64.cpp | 203 scalar.SignExtend(bit_width); in ReadIntegerArgument()
|
/freebsd/contrib/llvm-project/lldb/source/Plugins/ABI/AArch64/ |
H A D | ABIMacOSX_arm64.cpp | 203 reg_value.SignExtend(bit_width); in GetArgumentValues()
|
H A D | ABISysV_arm64.cpp | 174 reg_value.SignExtend(bit_width); in GetArgumentValues()
|
/freebsd/contrib/llvm-project/lldb/source/Plugins/ABI/PowerPC/ |
H A D | ABISysV_ppc.cpp | 325 scalar.SignExtend(bit_width); in ReadIntegerArgument()
|
H A D | ABISysV_ppc64.cpp | 213 scalar.SignExtend(bit_width); in ReadIntegerArgument()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/AsmParser/ |
H A D | RISCVAsmParser.cpp | 164 void emitPseudoExtend(MCInst &Inst, bool SignExtend, int64_t Width, 3307 void RISCVAsmParser::emitPseudoExtend(MCInst &Inst, bool SignExtend, in emitPseudoExtend() argument 3320 unsigned SecondOpcode = SignExtend ? RISCV::SRAI : RISCV::SRLI; in emitPseudoExtend()
|
/freebsd/contrib/llvm-project/lldb/source/Plugins/ABI/ARM/ |
H A D | ABIMacOSX_arm.cpp | 1498 reg_value.SignExtend(bit_width); in GetArgumentValues()
|
H A D | ABISysV_arm.cpp | 1480 reg_value.SignExtend(bit_width); in GetArgumentValues()
|
/freebsd/contrib/llvm-project/lldb/source/Plugins/Instruction/ARM/ |
H A D | EmulateInstructionARM.cpp | 7492 R[t] = SignExtend(MemU[address,1], 32); in EmulateLDRSBImmediate() 7641 R[t] = SignExtend(MemU[address,1], 32); in EmulateLDRSBLiteral() 7730 R[t] = SignExtend(MemU[address,1], 32); in EmulateLDRSBRegister() 7892 R[t] = SignExtend(data, 32); in EmulateLDRSHImmediate() 8050 R[t] = SignExtend(data, 32); in EmulateLDRSHLiteral() 8153 R[t] = SignExtend(data, 32); in EmulateLDRSHRegister() 8327 R[d] = SignExtend(rotated<7:0>, 32); in EmulateSXTB() 8412 R[d] = SignExtend(rotated<15:0>, 32); in EmulateSXTH()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/GISel/ |
H A D | AArch64InstructionSelector.cpp | 7140 unsigned SignExtend = 0; in selectExtendedSHL() local 7150 SignExtend = isSignExtendShiftType(Ext) ? 1 : 0; in selectExtendedSHL() 7152 if (SignExtend && Ext != AArch64_AM::SXTW) in selectExtendedSHL() 7169 MIB.addImm(SignExtend); in selectExtendedSHL() 7381 unsigned SignExtend = Ext == AArch64_AM::SXTW; in selectAddrModeWRO() local 7387 MIB.addImm(SignExtend); in selectAddrModeWRO()
|