Home
last modified time | relevance | path

Searched refs:SignExtend (Results 1 – 25 of 33) sorted by relevance

12

/freebsd-src/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_ring_buffer.h96 static uptr SignExtend(uptr x) { return ((sptr)x) << kSizeBits >> kSizeBits; } in SignExtend() function
107 CHECK_EQ(st, SignExtend(st & kNextMask)); in Init()
129 T *Next() const { return (T *)(SignExtend(long_ & kNextMask)); } in Next()
/freebsd-src/contrib/llvm-project/llvm/include/llvm/ADT/
H A DBitfields.h113 static constexpr Unsigned SignExtend = Unsigned(Smin << 1U); // 11000000 member
143 UserValue &= ~BP::SignExtend;
149 StorageValue |= BP::SignExtend;
/freebsd-src/contrib/llvm-project/lldb/source/Plugins/Instruction/ARM64/
H A DEmulateInstructionARM64.cpp886 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-src/contrib/llvm-project/llvm/lib/Target/AArch64/MCTargetDesc/
H A DAArch64InstPrinter.cpp870 unsigned SignExtend = MI->getOperand(3).getImm(); // encoded in "option<2>". in printRangePrefetchAlias() local
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() argument
1307 bool IsLSL = !SignExtend && SrcRegKind == 'x'; in printMemExtendImpl()
1311 O << (SignExtend ? 's' : 'u') << "xt" << SrcRegKind; in printMemExtendImpl()
1322 bool SignExtend = MI->getOperand(OpNum).getImm(); in printMemExtend() local
1324 printMemExtendImpl(SignExtend, DoShift, Width, SrcRegKind, O); in printMemExtend()
1327 template <bool SignExtend, int ExtWidth, char SrcRegKind, char Suffix>
1339 if (SignExtend || DoShift || SrcRegKind == 'w') { in printRegWithShiftExtend()
[all …]
H A DAArch64MCCodeEmitter.cpp385 unsigned SignExtend = MI.getOperand(OpIdx).getImm(); in getMemExtendOpValue() local
387 return (SignExtend << 1) | DoShift; in getMemExtendOpValue()
H A DAArch64InstPrinter.h94 void printMemExtendImpl(bool SignExtend, bool DoShift, unsigned Width,
/freebsd-src/contrib/llvm-project/lldb/include/lldb/DataFormatters/
H A DFormattersHelpers.h148 InferiorSizedWord SignExtend() const { in SignExtend() function
/freebsd-src/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSimplifyIndVar.cpp1353 bool SignExtend = getExtendKind(NarrowDef) == ExtendKind::Sign; in getExtendKind()
1354 if (!GuessNonIVOperand(SignExtend)) {
1355 SignExtend = !SignExtend; in getSCEVByOpCode()
1356 if (!GuessNonIVOperand(SignExtend)) in getSCEVByOpCode()
1363 SignExtend, NarrowUse); in getSCEVByOpCode()
1367 SignExtend, NarrowUse); in getSCEVByOpCode()
1323 bool SignExtend = getExtendKind(NarrowDef) == ExtendKind::Sign; cloneArithmeticIVUser() local
/freebsd-src/contrib/llvm-project/lldb/source/Utility/
H A DRegisterValue.cpp435 bool RegisterValue::SignExtend(uint32_t sign_bitpos) { in SignExtend() function in RegisterValue
445 return m_scalar.SignExtend(sign_bitpos); in SignExtend()
H A DScalar.cpp746 bool Scalar::SignExtend(uint32_t sign_bit_pos) { in SignExtend() function in Scalar
/freebsd-src/contrib/llvm-project/lldb/include/lldb/Utility/
H A DRegisterValue.h244 bool SignExtend(uint32_t sign_bitpos);
H A DScalar.h76 bool SignExtend(uint32_t bit_pos);
/freebsd-src/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64ISelDAGToDAG.cpp151 SDValue &SignExtend, SDValue &DoShift) {
152 return SelectAddrModeWRO(N, Width / 8, Base, Offset, SignExtend, DoShift); in SelectAddrModeWRO()
157 SDValue &SignExtend, SDValue &DoShift) {
158 return SelectAddrModeXRO(N, Width / 8, Base, Offset, SignExtend, DoShift); in SelectAddrModeXRO()
467 SDValue &Offset, SDValue &SignExtend,
470 SDValue &Offset, SDValue &SignExtend, in SelectCVTFixedPosOperand()
475 SDValue &Offset, SDValue &SignExtend);
1203 SDValue &SignExtend) { in SelectExtendedSHL()
1217 SignExtend = CurDAG->getTargetConstant(Ext == AArch64_AM::SXTW, dl, in SelectAddrModeWRO()
1221 SignExtend in SelectAddrModeWRO()
153 SelectAddrModeWRO(SDValue N,SDValue & Base,SDValue & Offset,SDValue & SignExtend,SDValue & DoShift) SelectAddrModeWRO() argument
159 SelectAddrModeXRO(SDValue N,SDValue & Base,SDValue & Offset,SDValue & SignExtend,SDValue & DoShift) SelectAddrModeXRO() argument
1179 SelectExtendedSHL(SDValue N,unsigned Size,bool WantExtend,SDValue & Offset,SDValue & SignExtend) SelectExtendedSHL() argument
1211 SelectAddrModeWRO(SDValue N,unsigned Size,SDValue & Base,SDValue & Offset,SDValue & SignExtend,SDValue & DoShift) SelectAddrModeWRO() argument
1300 SelectAddrModeXRO(SDValue N,unsigned Size,SDValue & Base,SDValue & Offset,SDValue & SignExtend,SDValue & DoShift) SelectAddrModeXRO() argument
[all...]
/freebsd-src/contrib/llvm-project/lldb/source/Plugins/ABI/SystemZ/
H A DABISysV_s390x.cpp294 scalar.SignExtend(bit_width); in ReadIntegerArgument()
/freebsd-src/contrib/llvm-project/lldb/source/Plugins/ABI/AArch64/
H A DABISysV_arm64.cpp174 reg_value.SignExtend(bit_width); in GetArgumentValues()
H A DABIMacOSX_arm64.cpp203 reg_value.SignExtend(bit_width); in GetArgumentValues()
/freebsd-src/contrib/llvm-project/lldb/source/Plugins/ABI/X86/
H A DABIWindows_x86_64.cpp219 scalar.SignExtend(bit_width); in ReadIntegerArgument()
H A DABISysV_x86_64.cpp203 scalar.SignExtend(bit_width); in ReadIntegerArgument()
/freebsd-src/contrib/llvm-project/lldb/source/Plugins/ABI/PowerPC/
H A DABISysV_ppc.cpp325 scalar.SignExtend(bit_width); in ReadIntegerArgument()
H A DABISysV_ppc64.cpp213 scalar.SignExtend(bit_width); in ReadIntegerArgument()
/freebsd-src/contrib/llvm-project/llvm/lib/Target/RISCV/AsmParser/
H A DRISCVAsmParser.cpp164 void emitPseudoExtend(MCInst &Inst, bool SignExtend, int64_t Width,
3307 void RISCVAsmParser::emitPseudoExtend(MCInst &Inst, bool SignExtend, in emitVMSGE()
3320 unsigned SecondOpcode = SignExtend ? RISCV::SRAI : RISCV::SRLI; in emitVMSGE()
3690 emitPseudoExtend(Inst, /*SignExtend=*/true, /*Width=*/8, IDLoc, Out);
3693 emitPseudoExtend(Inst, /*SignExtend=*/true, /*Width=*/16, IDLoc, Out);
3696 emitPseudoExtend(Inst, /*SignExtend=*/false, /*Width=*/16, IDLoc, Out);
3699 emitPseudoExtend(Inst, /*SignExtend=*/false, /*Width=*/32, IDLoc, Out);
3234 emitPseudoExtend(MCInst & Inst,bool SignExtend,int64_t Width,SMLoc IDLoc,MCStreamer & Out) emitPseudoExtend() argument
/freebsd-src/contrib/llvm-project/lldb/source/Plugins/ABI/ARM/
H A DABIMacOSX_arm.cpp1498 reg_value.SignExtend(bit_width); in GetArgumentValues()
H A DABISysV_arm.cpp1480 reg_value.SignExtend(bit_width); in GetArgumentValues()
/freebsd-src/contrib/llvm-project/lldb/source/Plugins/Instruction/ARM/
H A DEmulateInstructionARM.cpp7492 R[t] = SignExtend(MemU[address,1], 32); in EmulateLDRSBImmediate()
7601 // R[t] = SignExtend(MemU[address,1], 32); in EmulateLDRSBImmediate()
7641 R[t] = SignExtend(MemU[address,1], 32); in EmulateLDRSBLiteral()
7698 // R[t] = SignExtend(MemU[address,1], 32); in EmulateLDRSBLiteral()
7730 R[t] = SignExtend(MemU[address,1], 32); in EmulateLDRSBRegister()
7847 // R[t] = SignExtend(MemU[address,1], 32); in EmulateLDRSBRegister()
7892 R[t] = SignExtend(data, 32); in EmulateLDRSHImmediate()
8022 // R[t] = SignExtend(data, 32); in EmulateLDRSHImmediate()
8050 R[t] = SignExtend(data, 32); in EmulateLDRSHLiteral()
8123 // R[t] = SignExtend(dat in EmulateLDRSHLiteral()
[all...]
/freebsd-src/contrib/llvm-project/llvm/lib/Target/AArch64/GISel/
H A DAArch64InstructionSelector.cpp7140 unsigned SignExtend = 0; in selectAddrModeXRO()
7150 SignExtend = isSignExtendShiftType(Ext) ? 1 : 0; in selectAddrModeXRO()
7152 if (SignExtend && Ext != AArch64_AM::SXTW) in selectAddrModeXRO()
7169 MIB.addImm(SignExtend); in selectAddrModeXRO()
7381 unsigned SignExtend = Ext == AArch64_AM::SXTW; in selectAddrModeIndexed()
7387 MIB.addImm(SignExtend); in selectAddrModeIndexed()
7010 unsigned SignExtend = 0; selectExtendedSHL() local
7251 unsigned SignExtend = Ext == AArch64_AM::SXTW; selectAddrModeWRO() local

12