| /llvm-project-15.0.7/llvm/test/TableGen/ |
| H A D | VarLenEncoder.td | 71 // CHECK: Inst.insertBits(Scratch.extractBits(8, 0), 0); 74 // CHECK: Inst.insertBits(Scratch.extractBits(16, 0), 16); 77 // CHECK: Inst.insertBits(Scratch.extractBits(4, 0), 32); 80 // CHECK: Inst.insertBits(Scratch.extractBits(3, 1), 36); 83 // CHECK: Inst.insertBits(Scratch.extractBits(2, 0), 39); 89 // CHECK: Inst.insertBits(Scratch.extractBits(8, 0), 0); 92 // CHECK: Inst.insertBits(Scratch.extractBits(32, 0), 16); 95 // CHECK: Inst.insertBits(Scratch.extractBits(4, 0), 48); 98 // CHECK: Inst.insertBits(Scratch.extractBits(3, 1), 52); 101 // CHECK: Inst.insertBits(Scratch.extractBits(2, 0), 55);
|
| /llvm-project-15.0.7/lld/ELF/Arch/ |
| H A D | RISCV.cpp | 90 (extractBits(imm, 4, 0) << 7); in setLO12_S() 314 uint16_t imm8 = extractBits(val, 8, 8) << 12; in relocate() 316 uint16_t imm7_6 = extractBits(val, 7, 6) << 5; in relocate() 317 uint16_t imm2_1 = extractBits(val, 2, 1) << 3; in relocate() 318 uint16_t imm5 = extractBits(val, 5, 5) << 2; in relocate() 330 uint16_t imm4 = extractBits(val, 4, 4) << 11; in relocate() 331 uint16_t imm9_8 = extractBits(val, 9, 8) << 9; in relocate() 333 uint16_t imm6 = extractBits(val, 6, 6) << 7; in relocate() 334 uint16_t imm7 = extractBits(val, 7, 7) << 6; in relocate() 335 uint16_t imm3_1 = extractBits(val, 3, 1) << 3; in relocate() [all …]
|
| /llvm-project-15.0.7/llvm/lib/ExecutionEngine/JITLink/ |
| H A D | ELF_riscv.cpp | 162 static uint32_t extractBits(uint32_t Num, unsigned Low, unsigned Size) { in extractBits() function 209 extractBits(Value, 5, 6) << 25 | extractBits(Value, 12, 1) << 31; in applyFixup() 211 extractBits(Value, 1, 4) << 8 | extractBits(Value, 11, 1) << 7; in applyFixup() 222 uint32_t Imm20 = extractBits(Value, 20, 1) << 31; in applyFixup() 223 uint32_t Imm10_1 = extractBits(Value, 1, 10) << 21; in applyFixup() 224 uint32_t Imm11 = extractBits(Value, 11, 1) << 20; in applyFixup() 225 uint32_t Imm19_12 = extractBits(Value, 12, 8) << 12; in applyFixup() 297 uint32_t Imm31_25 = extractBits(Lo, 5, 7) << 25; in applyFixup() 298 uint32_t Imm11_7 = extractBits(Lo, 0, 5) << 7; in applyFixup()
|
| /llvm-project-15.0.7/llvm/include/llvm/Support/ |
| H A D | KnownBits.h | 216 KnownBits extractBits(unsigned NumBits, unsigned BitPosition) const { in extractBits() function 217 return KnownBits(Zero.extractBits(NumBits, BitPosition), in extractBits() 218 One.extractBits(NumBits, BitPosition)); in extractBits()
|
| /llvm-project-15.0.7/llvm/unittests/ADT/ |
| H A D | APIntTest.cpp | 2051 TEST(APIntTest, extractBits) { in TEST() argument 2053 EXPECT_EQ(0x3456, i32.extractBits(16, 4)); in TEST() 2056 EXPECT_EQ(0xFFFFFFFF, i64.extractBits(32, 0)); in TEST() 2058 EXPECT_EQ(0x01234567, i64.extractBits(32, 32)); in TEST() 2062 EXPECT_EQ(0xFFu, i257.extractBits(16, 0)); in TEST() 2064 EXPECT_EQ((0xFFu >> 1), i257.extractBits(16, 1)); in TEST() 2066 EXPECT_EQ(-1, i257.extractBits(32, 64).getSExtValue()); in TEST() 2068 EXPECT_EQ(-1, i257.extractBits(128, 128).getSExtValue()); in TEST() 2070 EXPECT_EQ(-1, i257.extractBits(66, 191).getSExtValue()); in TEST() 2073 i257.extractBits(128, 1).getSExtValue()); in TEST() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/X86/ |
| H A D | X86ShuffleDecodeConstantPool.cpp | 99 APInt EltUndef = UndefBits.extractBits(MaskEltSizeInBits, BitOffset); in extractConstantMask() 109 APInt EltBits = MaskBits.extractBits(MaskEltSizeInBits, BitOffset); in extractConstantMask()
|
| H A D | X86ISelLowering.cpp | 7251 EltBits[i] = MaskBits.extractBits(EltSizeInBits, BitOffset); in getTargetConstantBitsFromNode() 7438 UndefElts = UndefElts.extractBits(NumSubElts, BaseIdx); in getTargetConstantBitsFromNode() 9370 if (UndefMask.extractBits(HalfNumElems, HalfNumElems).isAllOnes()) { in EltsFromConsecutiveLoads() 9503 APInt Val = SplatValue.extractBits(ScalarSize, ScalarSize * i); in getConstantVector() 12293 if (!Zeroable.extractBits(UpperElts, NumSrcElts).isAllOnes()) in matchShuffleAsVTRUNC() 12390 !Zeroable.extractBits(UpperElts, NumSrcElts).isAllOnes()) in lowerShuffleWithVPMOV() 12447 !Zeroable.extractBits(UpperElts, NumSrcElts).isAllOnes()) in lowerShuffleAsVTRUNC() 36927 Known = Known.extractBits(Length, Shift); in computeKnownBitsForTargetNode() 39355 assert(!OpDemandedElts.extractBits( in combineX86ShufflesRecursively() 42018 Known = Known.extractBits(Length, Shift); in SimplifyDemandedBitsForTargetNode() [all …]
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/GlobalISel/ |
| H A D | GISelKnownBits.cpp | 125 static KnownBits extractBits(unsigned BitWidth, const KnownBits &SrcOpKnown, in extractBits() function 515 Known = SrcOpKnown.extractBits(BitWidth, BitWidth * DstIdx); in computeKnownBitsImpl() 550 Known = extractBits(BitWidth, SrcOpKnown, OffsetKnown, WidthKnown); in computeKnownBitsImpl() 561 Known = extractBits(BitWidth, SrcOpKnown, OffsetKnown, WidthKnown); in computeKnownBitsImpl()
|
| /llvm-project-15.0.7/llvm/tools/llvm-exegesis/lib/X86/ |
| H A D | Target.cpp | 604 WideConstant.extractBits(32, ByteOffset * 8).getZExtValue())); in initStack() 608 WideConstant.extractBits(16, ByteOffset * 8).getZExtValue())); in initStack() 614 WideConstant.extractBits(8, ByteOffset * 8).getZExtValue())); in initStack()
|
| /llvm-project-15.0.7/llvm/lib/Support/ |
| H A D | KnownBits.cpp | 519 return mul(WideLHS, WideRHS).extractBits(BitWidth, BitWidth); in mulhs() 528 return mul(WideLHS, WideRHS).extractBits(BitWidth, BitWidth); in mulhu()
|
| H A D | APInt.cpp | 444 APInt APInt::extractBits(unsigned numBits, unsigned bitPosition) const { in extractBits() function in APInt 2999 if (A.extractBits(Scale, i * Scale).isAllOnes()) in ScaleBitMask() 3002 if (!A.extractBits(Scale, i * Scale).isZero()) in ScaleBitMask()
|
| /llvm-project-15.0.7/llvm/unittests/Support/ |
| H A D | KnownBitsTest.cpp | 159 Res = (N1.sext(2 * Bits) * N2.sext(2 * Bits)).extractBits(Bits, Bits); in TEST() 163 Res = (N1.zext(2 * Bits) * N2.zext(2 * Bits)).extractBits(Bits, Bits); in TEST()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | SelectionDAG.cpp | 2667 UndefElts = UndefSrcElts.extractBits(NumElts, Idx); in isSplatValue() 3225 Known = Known.extractBits(BitWidth, 1); in computeKnownBits() 3359 Known = Known.extractBits(LoBits, 0); in computeKnownBits() 3361 Known = Known.extractBits(HiBits, LoBits); in computeKnownBits() 5487 return (C1Ext + C2Ext).extractBits(C1.getBitWidth(), 1); in FoldValue() 5493 return (C1Ext + C2Ext).extractBits(C1.getBitWidth(), 1); in FoldValue() 5499 return (C1Ext + C2Ext + 1).extractBits(C1.getBitWidth(), 1); in FoldValue() 5505 return (C1Ext + C2Ext + 1).extractBits(C1.getBitWidth(), 1); in FoldValue() 11440 APInt HighValue = SplatValue.extractBits(HalfSize, HalfSize); in isConstantSplat() 11441 APInt LowValue = SplatValue.extractBits(HalfSize, 0); in isConstantSplat() [all …]
|
| H A D | TargetLowering.cpp | 704 APInt Sub = DemandedBits.extractBits(NumSrcEltBits, BitOffset); in SimplifyMultipleUseDemandedBits() 855 APInt DemandedSubElts = DemandedElts.extractBits(NumSubElts, Idx); in SimplifyMultipleUseDemandedBits() 1209 APInt DemandedSubElts = DemandedElts.extractBits(NumSubElts, Idx); in SimplifyDemandedBits() 1278 DemandedElts.extractBits(NumSubElts, i * NumSubElts); in SimplifyDemandedBits() 2505 APInt Sub = DemandedBits.extractBits(NumSrcEltBits, BitOffset); in SimplifyDemandedBits() 2964 if (SrcZero.extractBits(Scale, i * Scale).isAllOnes()) in SimplifyDemandedVectorElts() 2966 if (SrcUndef.extractBits(Scale, i * Scale).isAllOnes()) in SimplifyDemandedVectorElts() 3009 APInt SubElts = DemandedElts.extractBits(NumSubElts, i * NumSubElts); in SimplifyDemandedVectorElts() 3045 APInt DemandedSubElts = DemandedElts.extractBits(NumSubElts, Idx); in SimplifyDemandedVectorElts() 3095 KnownUndef = SrcUndef.extractBits(NumElts, Idx); in SimplifyDemandedVectorElts() [all …]
|
| H A D | DAGCombiner.cpp | 6302 Constant &= SplatValue.extractBits(EltBitWidth, i * EltBitWidth); in visitAND() 23452 Bits = Bits.extractBits(NumSubBits, (Split - SubIdx - 1) * NumSubBits); in XformToShuffleWithZero() 23454 Bits = Bits.extractBits(NumSubBits, SubIdx * NumSubBits); in XformToShuffleWithZero()
|
| /llvm-project-15.0.7/llvm/include/llvm/ADT/ |
| H A D | APInt.h | 1403 APInt extractBits(unsigned numBits, unsigned bitPosition) const;
|