Home
last modified time | relevance | path

Searched refs:SignBit (Results 1 – 17 of 17) sorted by relevance

/llvm-project-15.0.7/llvm/include/llvm/DebugInfo/DWARF/
H A DDWARFExpression.h48 SignBit = 0x80, enumerator
49 SignedSize1 = SignBit | Size1,
50 SignedSize2 = SignBit | Size2,
51 SignedSize4 = SignBit | Size4,
52 SignedSize8 = SignBit | Size8,
53 SignedSizeLEB = SignBit | SizeLEB,
/llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/
H A DLegalizeFloatTypes.cpp336 SDValue SignBit = DAG.getNode( in SoftenFloatRes_FCOPYSIGN() local
340 SignBit = DAG.getNode(ISD::AND, dl, RVT, RHS, SignBit); in SoftenFloatRes_FCOPYSIGN()
345 SignBit = in SoftenFloatRes_FCOPYSIGN()
350 SignBit = DAG.getNode(ISD::TRUNCATE, dl, LVT, SignBit); in SoftenFloatRes_FCOPYSIGN()
352 SignBit = DAG.getNode(ISD::ANY_EXTEND, dl, LVT, SignBit); in SoftenFloatRes_FCOPYSIGN()
353 SignBit = in SoftenFloatRes_FCOPYSIGN()
2716 SignBit = DAG.getNode(ISD::AND, dl, RVT, RHS, SignBit); in SoftPromoteHalfRes_FCOPYSIGN()
2721 SignBit = in SoftPromoteHalfRes_FCOPYSIGN()
2726 SignBit = DAG.getNode(ISD::TRUNCATE, dl, LVT, SignBit); in SoftPromoteHalfRes_FCOPYSIGN()
2728 SignBit = DAG.getNode(ISD::ANY_EXTEND, dl, LVT, SignBit); in SoftPromoteHalfRes_FCOPYSIGN()
[all …]
H A DLegalizeDAG.cpp71 uint8_t SignBit; member
1539 State.SignBit = NumBits - 1; in getSignAsIntValue()
1575 State.SignBit = 7; in getSignAsIntValue()
1613 SDValue Cond = DAG.getSetCC(DL, getSetCCResultType(IntVT), SignBit, in ExpandFCOPYSIGN()
1627 int ShiftAmount = SignAsInt.SignBit - MagAsInt.SignBit; in ExpandFCOPYSIGN()
1629 if (SignBit.getScalarValueSizeInBits() < in ExpandFCOPYSIGN()
1631 SignBit = DAG.getNode(ISD::ZERO_EXTEND, DL, MagVT, SignBit); in ExpandFCOPYSIGN()
1636 SignBit = DAG.getNode(ISD::SRL, DL, ShiftVT, SignBit, ShiftCnst); in ExpandFCOPYSIGN()
1639 SignBit = DAG.getNode(ISD::SHL, DL, ShiftVT, SignBit, ShiftCnst); in ExpandFCOPYSIGN()
1641 if (SignBit.getScalarValueSizeInBits() > in ExpandFCOPYSIGN()
[all …]
H A DDAGCombiner.cpp13704 SDValue SignBit = DAG.getConstant( in visitBITCAST() local
13708 FlipBit = SignBit; in visitBITCAST()
13717 FlipBit = DAG.getNode(ISD::AND, SDLoc(N0), MVT::i64, Hi, SignBit); in visitBITCAST()
13725 APInt SignBit = APInt::getSignMask(VT.getSizeInBits()); in visitBITCAST() local
13728 NewConv, DAG.getConstant(SignBit, DL, VT)); in visitBITCAST()
13731 NewConv, DAG.getConstant(~SignBit, DL, VT)); in visitBITCAST()
13773 APInt SignBit = APInt::getSignMask(VT.getSizeInBits() / 2); in visitBITCAST() local
13787 DAG.getConstant(SignBit, SDLoc(XorResult64), MVT::i64)); in visitBITCAST()
13794 APInt SignBit = APInt::getSignMask(VT.getSizeInBits()); in visitBITCAST() local
13796 X, DAG.getConstant(SignBit, SDLoc(X), VT)); in visitBITCAST()
[all …]
H A DTargetLowering.cpp7679 APInt SignBit = APInt::getSignMask(BitSize); in expandIS_FPCLASS() local
7692 SDValue SignBitV = DAG.getConstant(SignBit, DL, IntVT); in expandIS_FPCLASS()
/llvm-project-15.0.7/flang/lib/Decimal/
H A Dbig-radix-floating-point.h349 constexpr Raw SignBit() const { return Raw{isNegative_} << (Real::bits - 1); } in RemoveLeastOrderZeroDigits() function
351 return (Raw{Real::maxExponent} << Real::significandBits) | SignBit(); in RemoveLeastOrderZeroDigits()
H A Ddecimal-to-binary.cpp321 return {Real{SignBit()}}; in ConvertToBinary()
330 return {Real{SignBit()}, Inexact}; in ConvertToBinary()
/llvm-project-15.0.7/clang/lib/AST/Interp/
H A DIntegral.h144 const T SignBit = T(1) << (TruncBits - 1);
146 return Integral((V & BitMask) | (Signed && (V & SignBit) ? ExtMask : 0));
/llvm-project-15.0.7/llvm/lib/DebugInfo/DWARF/
H A DDWARFExpression.cpp132 unsigned Signed = Size & Operation::SignBit; in extract()
137 switch (Size & ~Operation::SignBit) { in extract()
285 unsigned Signed = Size & Operation::SignBit; in print()
/llvm-project-15.0.7/llvm/unittests/CodeGen/GlobalISel/
H A DKnownBitsVectorTest.cpp620 auto SignBit = B.buildConstant(V2S32, 0x80000000); in TEST_F() local
638 EXPECT_FALSE(KnownBits.signBitIsZero(SignBit.getReg(0))); in TEST_F()
H A DKnownBitsTest.cpp707 auto SignBit = B.buildConstant(S32, 0x80000000); in TEST_F() local
713 EXPECT_FALSE(KnownBits.signBitIsZero(SignBit.getReg(0))); in TEST_F()
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DAMDGPURegisterBankInfo.cpp1519 auto SignBit = B.buildShl(S64, ShiftOffset, ExtShift); in applyMappingBFE() local
1521 B.buildAShr(S64, SignBit, ExtShift); in applyMappingBFE()
1523 B.buildLShr(S64, SignBit, ExtShift); in applyMappingBFE()
H A DAMDGPUISelLowering.cpp2087 SDValue SignBit = DAG.getNode(ISD::AND, SL, MVT::i32, Hi, SignBitMask); in LowerFTRUNC() local
2090 SDValue SignBit64 = DAG.getBuildVector(MVT::v2i32, SL, {Zero, SignBit}); in LowerFTRUNC()
H A DAMDGPULegalizerInfo.cpp2160 auto SignBit = B.buildAnd(S32, Hi, SignBitMask); in legalizeIntrinsicTrunc() local
2167 auto SignBit64 = B.buildMerge(S64, {Zero32, SignBit}); in legalizeIntrinsicTrunc()
/llvm-project-15.0.7/llvm/lib/Target/RISCV/
H A DRISCVISelLowering.cpp8877 APInt SignBit = APInt::getSignMask(32); in PerformDAGCombine() local
8880 DAG.getConstant(SignBit, DL, MVT::i32)); in PerformDAGCombine()
8885 DAG.getConstant(~SignBit, DL, MVT::i32)); in PerformDAGCombine()
9006 APInt SignBit = APInt::getSignMask(FPBits).sext(VT.getSizeInBits()); in PerformDAGCombine() local
9009 DAG.getConstant(SignBit, DL, VT)); in PerformDAGCombine()
9013 DAG.getConstant(~SignBit, DL, VT)); in PerformDAGCombine()
/llvm-project-15.0.7/llvm/lib/CodeGen/GlobalISel/
H A DLegalizerHelper.cpp6041 auto SignBit = MIRBuilder.buildConstant(S64, 63); in lowerSITOFP() local
6042 auto S = MIRBuilder.buildAShr(S64, L, SignBit); in lowerSITOFP()
/llvm-project-15.0.7/llvm/lib/Target/X86/
H A DX86ISelLowering.cpp23293 SDValue SignBit = DAG.getNode(X86ISD::FAND, dl, LogicVT, Sign, SignMask); in LowerFCOPYSIGN() local
23311 SDValue Or = DAG.getNode(X86ISD::FOR, dl, LogicVT, MagBits, SignBit); in LowerFCOPYSIGN()