Home
last modified time | relevance | path

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

12

/freebsd/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 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 DBitfields.h113 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 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/contrib/llvm-project/llvm/lib/Target/AArch64/MCTargetDesc/
H A DAArch64InstPrinter.cpp870 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 DAArch64MCCodeEmitter.cpp385 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 DFormattersHelpers.h148 InferiorSizedWord SignExtend() const { in SignExtend() function
/freebsd/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/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSimplifyIndVar.cpp1353 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 DRegisterValue.h244 bool SignExtend(uint32_t sign_bitpos);
H A DScalar.h76 bool SignExtend(uint32_t bit_pos);
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64ISelDAGToDAG.cpp151 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 DRISCVISelDAGToDAG.cpp1542 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 DABISysV_s390x.cpp294 scalar.SignExtend(bit_width); in ReadIntegerArgument()
/freebsd/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/contrib/llvm-project/lldb/source/Plugins/ABI/AArch64/
H A DABIMacOSX_arm64.cpp203 reg_value.SignExtend(bit_width); in GetArgumentValues()
H A DABISysV_arm64.cpp174 reg_value.SignExtend(bit_width); in GetArgumentValues()
/freebsd/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/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 emitPseudoExtend() argument
3320 unsigned SecondOpcode = SignExtend ? RISCV::SRAI : RISCV::SRLI; in emitPseudoExtend()
/freebsd/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/contrib/llvm-project/lldb/source/Plugins/Instruction/ARM/
H A DEmulateInstructionARM.cpp7492 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 DAArch64InstructionSelector.cpp7140 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()

12