Searched refs:getSExtValue (Results 1 - 25 of 186) sorted by relevance

12345678

/external/swiftshader/third_party/LLVM/unittests/VMCore/
H A DConstantsTest.cpp101 EXPECT_EQ(100, ConstantInt::get(Int8Ty, 100, false)->getSExtValue());
102 EXPECT_EQ(100, ConstantInt::get(Int8Ty, 100, true)->getSExtValue());
103 EXPECT_EQ(100, ConstantInt::getSigned(Int8Ty, 100)->getSExtValue());
104 EXPECT_EQ(-50, ConstantInt::get(Int8Ty, 206)->getSExtValue());
105 EXPECT_EQ(-50, ConstantInt::getSigned(Int8Ty, -50)->getSExtValue());
109 EXPECT_EQ(0x3b, ConstantInt::get(Int8Ty, 0x13b)->getSExtValue());
/external/llvm/lib/Target/SystemZ/
H A DSystemZTargetTransformInfo.cpp51 if (isInt<32>(Imm.getSExtValue()))
95 if (isInt<16>(Imm.getSExtValue()))
102 if (isInt<32>(Imm.getSExtValue()))
116 if (isUInt<32>(-Imm.getSExtValue()))
123 if (isInt<32>(Imm.getSExtValue()))
208 if (isUInt<32>(-Imm.getSExtValue()))
216 if (isInt<32>(Imm.getSExtValue()))
221 if ((Idx < 2) || (Imm.getBitWidth() <= 64 && isInt<64>(Imm.getSExtValue())))
226 if ((Idx < 4) || (Imm.getBitWidth() <= 64 && isInt<64>(Imm.getSExtValue())))
/external/llvm/lib/Target/Lanai/
H A DLanaiISelDAGToDAG.cpp97 return isInt<21>(CN.getSExtValue()) && ((CN.getSExtValue() & 0x3) == 0);
109 int32_t Imm = CN->getSExtValue();
130 if (isInt<16>(CN->getSExtValue())) {
131 int16_t Imm = CN->getSExtValue();
143 if (isInt<10>(CN->getSExtValue())) {
144 int16_t Imm = CN->getSExtValue();
174 if ((RiMode && isInt<16>(CN->getSExtValue())) ||
175 (!RiMode && isInt<10>(CN->getSExtValue()))) {
186 Offset = CurDAG->getTargetConstant(CN->getSExtValue(), D
[all...]
/external/llvm/lib/Target/BPF/
H A DBPFISelDAGToDAG.cpp74 if (isInt<32>(CN->getSExtValue())) {
83 Offset = CurDAG->getTargetConstant(CN->getSExtValue(), DL, MVT::i64);
102 if (isInt<32>(CN->getSExtValue())) {
111 Offset = CurDAG->getTargetConstant(CN->getSExtValue(), DL, MVT::i64);
/external/llvm/lib/Transforms/Utils/
H A DLowerSwitch.cpp216 UpperBound->getSExtValue() - LowerBound->getSExtValue();
247 int64_t GapLow = LHS.back().High->getSExtValue() + 1;
248 int64_t GapHigh = NewLowerBound->getSExtValue() - 1;
256 dbgs() << LowerBound->getSExtValue();
260 dbgs() << " - " << NewUpperBound->getSExtValue() << "\n";
262 dbgs() << NewLowerBound->getSExtValue() << " - ";
264 dbgs() << UpperBound->getSExtValue() << "\n";
340 uint64_t Range = Leaf.High->getSExtValue() -
341 Leaf.Low->getSExtValue();
[all...]
/external/swiftshader/third_party/LLVM/lib/Target/XCore/
H A DXCoreISelDAGToDAG.cpp102 && (CN->getSExtValue() % 4 == 0 && CN->getSExtValue() >= 0)) {
105 Offset = CurDAG->getTargetConstant(CN->getSExtValue(), MVT::i32);
123 && (CN->getSExtValue() % 4 == 0)) {
126 Offset = CurDAG->getTargetConstant(CN->getSExtValue(), MVT::i32);
144 && (CN->getSExtValue() % 4 == 0)) {
147 Offset = CurDAG->getTargetConstant(CN->getSExtValue(), MVT::i32);
/external/swiftshader/third_party/LLVM/lib/Target/Blackfin/
H A DBlackfinISelDAGToDAG.cpp109 (CN->getSExtValue() % 4 == 0 && CN->getSExtValue() >= 0)) {
112 Offset = CurDAG->getTargetConstant(CN->getSExtValue(), MVT::i32);
/external/llvm/lib/Target/PowerPC/
H A DPPCTargetTransformInfo.cpp59 if (isInt<16>(Imm.getSExtValue()))
62 if (isInt<32>(Imm.getSExtValue())) {
92 if ((Idx == 1) && Imm.getBitWidth() <= 64 && isInt<16>(Imm.getSExtValue()))
96 if ((Idx < 2) || (Imm.getBitWidth() <= 64 && isInt<64>(Imm.getSExtValue())))
101 if ((Idx < 4) || (Imm.getBitWidth() <= 64 && isInt<64>(Imm.getSExtValue())))
166 if (isInt<16>(Imm.getSExtValue()))
/external/llvm/lib/Target/Hexagon/
H A DHexagonOptimizeSZextends.cpp117 if (!(C && C->getSExtValue() == 16))
128 if (!(C && C->getSExtValue() == 16))
H A DHexagonISelDAGToDAG.cpp244 int32_t Inc = cast<ConstantSDNode>(Offset.getNode())->getSExtValue();
382 SDValue I = CurDAG->getTargetConstant(Inc->getSExtValue(), dl, MVT::i32);
541 int32_t Inc = cast<ConstantSDNode>(Offset.getNode())->getSExtValue();
741 cast<ConstantSDNode>(Shl_1.getNode())->getSExtValue();
743 cast<ConstantSDNode>(Mul_1.getNode())->getSExtValue();
748 if (isInt<9>(CN->getSExtValue())) {
762 cast<ConstantSDNode>(Sub_0.getNode())->getSExtValue();
769 cast<ConstantSDNode>(Shl_1.getNode())->getSExtValue();
771 cast<ConstantSDNode>(Shl2_1.getNode())->getSExtValue();
777 if (isInt<9>(CN->getSExtValue())) {
[all...]
/external/llvm/unittests/ADT/
H A DAPSIntTest.cpp48 EXPECT_EQ(7, APSInt::get(7).getSExtValue());
51 EXPECT_EQ(-7, APSInt::get(-7).getSExtValue());
59 EXPECT_EQ(7, APSInt::getUnsigned(7).getSExtValue());
62 EXPECT_EQ(-7, APSInt::getUnsigned(-7).getSExtValue());
H A DAPIntTest.cpp38 EXPECT_EQ(-3, Minus3.getSExtValue());
47 EXPECT_EQ(-1, Minus1.getSExtValue());
60 EXPECT_EQ(-2, i33minus2.getSExtValue());
109 EXPECT_EQ(0u, zero.getSExtValue());
119 EXPECT_EQ(1, one.getSExtValue());
130 EXPECT_EQ(0, neg_two.getSExtValue());
131 EXPECT_EQ(-1, neg_one.getSExtValue());
134 EXPECT_EQ(-1, one.getSExtValue());
137 EXPECT_EQ(0, two.getSExtValue());
239 auto sv1 = arg1.getSExtValue();
[all...]
/external/swiftshader/third_party/LLVM/unittests/ADT/
H A DAPIntTest.cpp30 EXPECT_EQ(-3, Minus3.getSExtValue());
39 EXPECT_EQ(-1, Minus1.getSExtValue());
52 EXPECT_EQ(-2, i33minus2.getSExtValue());
93 EXPECT_EQ(0u, zero.getSExtValue());
103 EXPECT_EQ(1, one.getSExtValue());
114 EXPECT_EQ(0, neg_two.getSExtValue());
115 EXPECT_EQ(-1, neg_one.getSExtValue());
118 EXPECT_EQ(-1, one.getSExtValue());
121 EXPECT_EQ(0, two.getSExtValue());
/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/
H A DLowerSwitch.cpp221 uint64_t Range = cast<ConstantInt>(Leaf.High)->getSExtValue() -
222 cast<ConstantInt>(Leaf.Low)->getSExtValue();
249 int64_t nextValue = cast<ConstantInt>(J->Low)->getSExtValue();
250 int64_t currentValue = cast<ConstantInt>(I->High)->getSExtValue();
H A DAddrModeMatcher.cpp104 TestAddrMode.BaseOffs += CI->getSExtValue()*TestAddrMode.Scale;
209 int64_t Scale = RHS->getSExtValue();
233 ConstantOffset += CI->getSExtValue()*TypeSize;
313 AddrMode.BaseOffs += CI->getSExtValue();
316 AddrMode.BaseOffs -= CI->getSExtValue();
/external/llvm/lib/Target/XCore/
H A DXCoreISelDAGToDAG.cpp99 && (CN->getSExtValue() % 4 == 0 && CN->getSExtValue() >= 0)) {
102 Offset = CurDAG->getTargetConstant(CN->getSExtValue(), SDLoc(Addr),
/external/clang/lib/StaticAnalyzer/Checkers/
H A DCastSizeChecker.cpp118 CharUnits regionSize = CharUnits::fromQuantity(extentInt->getSExtValue());
/external/llvm/lib/Transforms/Scalar/
H A DLoopDataPrefetch.cpp146 unsigned AbsStride = std::abs(ConstStride->getAPInt().getSExtValue());
260 int64_t PD = std::abs(ConstPtrDiff->getValue()->getSExtValue());
/external/swiftshader/third_party/LLVM/lib/Target/Sparc/
H A DSparcISelDAGToDAG.cpp86 if (isInt<13>(CN->getSExtValue())) {
122 if (isInt<13>(CN->getSExtValue()))
/external/llvm/lib/Target/ARM/MCTargetDesc/
H A DARMAddressingModes.h681 int32_t Exp = (Imm.lshr(10).getSExtValue() & 0x1f) - 15; // -14 to 15
707 int32_t Exp = (Imm.lshr(23).getSExtValue() & 0xff) - 127; // -126 to 127
735 int64_t Exp = (Imm.lshr(52).getSExtValue() & 0x7ff) - 1023; // -1022 to 1023
/external/llvm/lib/Target/NVPTX/
H A DNVVMReflect.cpp210 ReflectVal = Flag->getSExtValue();
/external/swiftshader/third_party/LLVM/lib/Target/ARM/MCTargetDesc/
H A DARMAddressingModes.h612 int32_t Exp = (Imm.lshr(23).getSExtValue() & 0xff) - 127; // -126 to 127
640 int64_t Exp = (Imm.lshr(52).getSExtValue() & 0x7ff) - 1023; // -1022 to 1023
/external/llvm/unittests/IR/
H A DConstantsTest.cpp109 EXPECT_EQ(100, ConstantInt::get(Int8Ty, 100, false)->getSExtValue());
110 EXPECT_EQ(100, ConstantInt::get(Int8Ty, 100, true)->getSExtValue());
111 EXPECT_EQ(100, ConstantInt::getSigned(Int8Ty, 100)->getSExtValue());
112 EXPECT_EQ(-50, ConstantInt::get(Int8Ty, 206)->getSExtValue());
113 EXPECT_EQ(-50, ConstantInt::getSigned(Int8Ty, -50)->getSExtValue());
117 EXPECT_EQ(0x3b, ConstantInt::get(Int8Ty, 0x13b)->getSExtValue());
/external/swiftshader/third_party/LLVM/lib/Target/CellSPU/
H A DSPUISelDAGToDAG.cpp45 return isInt<10>(CN->getSExtValue());
52 return isUInt<10>(CN->getSExtValue());
59 return isInt<10>(CN->getSExtValue());
327 val = dyn_cast<ConstantSDNode>(N.getNode())->getSExtValue();
432 int32_t offset = int32_t(CN->getSExtValue());
453 int32_t offset = int32_t(CN->getSExtValue());
489 offset = int32_t(CN->getSExtValue());
493 offset = int32_t(CN->getSExtValue());
875 Op1 = CurDAG->getTargetConstant(CN->getSExtValue(), VT);
876 if (isInt<10>(CN->getSExtValue())) {
[all...]
/external/swiftshader/third_party/LLVM/lib/Target/X86/
H A DX86ISelDAGToDAG.cpp176 return isInt<8>(cast<ConstantSDNode>(N)->getSExtValue());
595 if (C->getSExtValue() == 0 && AM.Segment.getNode() == 0 &&
749 if (!FoldOffsetIntoAddress(Cst->getSExtValue(), AM))
757 uint64_t Val = cast<ConstantSDNode>(N)->getSExtValue();
806 uint64_t Disp = AddVal->getSExtValue() << Val;
845 uint64_t Disp = AddVal->getSExtValue() * CN->getZExtValue();
974 !FoldOffsetIntoAddress(CN->getSExtValue(), AM))
1365 if (CN && CN->getSExtValue() == (int32_t)CN->getSExtValue()) {
1367 int64_t CNVal = CN->getSExtValue();
[all...]

Completed in 505 milliseconds

12345678