Home
last modified time | relevance | path

Searched refs:NegOne (Results 1 – 18 of 18) sorted by relevance

/external/swiftshader/third_party/LLVM/unittests/VMCore/
DConstantsTest.cpp22 Constant* NegOne = ConstantInt::get(Int1, static_cast<uint64_t>(-1), true); in TEST() local
23 EXPECT_EQ(NegOne, ConstantInt::getSigned(Int1, -1)); in TEST()
32 EXPECT_EQ(Zero, ConstantExpr::getAdd(NegOne, One)); in TEST()
36 EXPECT_EQ(Zero, ConstantExpr::getAdd(NegOne, NegOne)); in TEST()
40 EXPECT_EQ(Zero, ConstantExpr::getSub(NegOne, One)); in TEST()
44 EXPECT_EQ(Zero, ConstantExpr::getSub(One, NegOne)); in TEST()
68 EXPECT_EQ(One, ConstantExpr::getMul(NegOne, One)); in TEST()
72 EXPECT_EQ(One, ConstantExpr::getSDiv(NegOne, One)); in TEST()
76 EXPECT_EQ(One, ConstantExpr::getSDiv(One, NegOne)); in TEST()
80 EXPECT_EQ(One, ConstantExpr::getUDiv(NegOne, One)); in TEST()
[all …]
/external/llvm/unittests/IR/
DConstantsTest.cpp29 Constant* NegOne = ConstantInt::get(Int1, static_cast<uint64_t>(-1), true); in TEST() local
30 EXPECT_EQ(NegOne, ConstantInt::getSigned(Int1, -1)); in TEST()
39 EXPECT_EQ(Zero, ConstantExpr::getAdd(NegOne, One)); in TEST()
43 EXPECT_EQ(Zero, ConstantExpr::getAdd(NegOne, NegOne)); in TEST()
47 EXPECT_EQ(Zero, ConstantExpr::getSub(NegOne, One)); in TEST()
51 EXPECT_EQ(Zero, ConstantExpr::getSub(One, NegOne)); in TEST()
75 EXPECT_EQ(One, ConstantExpr::getMul(NegOne, One)); in TEST()
79 EXPECT_EQ(One, ConstantExpr::getSDiv(NegOne, One)); in TEST()
83 EXPECT_EQ(One, ConstantExpr::getSDiv(One, NegOne)); in TEST()
87 EXPECT_EQ(One, ConstantExpr::getUDiv(NegOne, One)); in TEST()
[all …]
/external/llvm/lib/Transforms/Utils/
DIntegerDivision.cpp163 ConstantInt *NegOne; in generateUnsignedDivisionCode() local
169 NegOne = ConstantInt::getSigned(DivTy, -1); in generateUnsignedDivisionCode()
175 NegOne = ConstantInt::getSigned(DivTy, -1); in generateUnsignedDivisionCode()
284 Value *Tmp4 = Builder.CreateAdd(Divisor, NegOne); in generateUnsignedDivisionCode()
320 Value *SR_2 = Builder.CreateAdd(SR_3, NegOne); in generateUnsignedDivisionCode()
/external/llvm/lib/Target/AMDGPU/
DAMDGPUISelLowering.cpp1536 SDValue NegOne = DAG.getConstant(-1, DL, VT); in LowerSDIVREM() local
1560 SDValue LHSign = DAG.getSelectCC(DL, LHS, Zero, NegOne, Zero, ISD::SETLT); in LowerSDIVREM()
1561 SDValue RHSign = DAG.getSelectCC(DL, RHS, Zero, NegOne, Zero, ISD::SETLT); in LowerSDIVREM()
1763 const SDValue NegOne = DAG.getConstant(-1, SL, MVT::i32); in LowerFROUND64() local
1797 SDValue ExpEqNegOne = DAG.getSetCC(SL, SetCCVT, NegOne, Exp, ISD::SETEQ); in LowerFROUND64()
1835 const SDValue NegOne = DAG.getConstantFP(-1.0, SL, MVT::f64); in LowerFFLOOR() local
1844 SDValue Add = DAG.getNode(ISD::SELECT, SL, MVT::f64, And, NegOne, Zero); in LowerFFLOOR()
/external/swiftshader/third_party/LLVM/lib/Analysis/
DInstructionSimplify.cpp1569 APInt NegOne = APInt::getAllOnesValue(Width); in SimplifyICmpInst() local
1571 Upper = NegOne.udiv(CI2->getValue()) + 1; in SimplifyICmpInst()
1583 APInt NegOne = APInt::getAllOnesValue(Width); in SimplifyICmpInst() local
1585 Upper = NegOne.lshr(CI2->getValue()) + 1; in SimplifyICmpInst()
DScalarEvolution.cpp6055 const SCEV *NegOne = getConstant(Ty, (uint64_t)-1); in getBECount() local
6057 const SCEV *RoundUp = getAddExpr(Step, NegOne); in getBECount()
/external/llvm/lib/Transforms/Scalar/
DReassociate.cpp255 Constant *NegOne = Ty->isIntOrIntVectorTy() ? in LowerNegateToMultiply() local
258 BinaryOperator *Res = CreateMul(Neg->getOperand(1), NegOne, "", Neg, Neg); in LowerNegateToMultiply()
DLoopStrengthReduce.cpp345 const SCEV *NegOne = SE.getSCEV(ConstantInt::getAllOnesValue( in DoInitialMatch() local
348 Good.push_back(SE.getMulExpr(NegOne, S)); in DoInitialMatch()
350 Bad.push_back(SE.getMulExpr(NegOne, S)); in DoInitialMatch()
/external/llvm/lib/Analysis/
DInstructionSimplify.cpp2318 APInt NegOne = APInt::getAllOnesValue(Width); in SimplifyICmpInst() local
2320 Upper = NegOne.udiv(CI2->getValue()) + 1; in SimplifyICmpInst()
2368 APInt NegOne = APInt::getAllOnesValue(Width); in SimplifyICmpInst() local
2370 Upper = NegOne.lshr(CI2->getValue()) + 1; in SimplifyICmpInst()
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/
DLoopStrengthReduce.cpp291 const SCEV *NegOne = SE.getSCEV(ConstantInt::getAllOnesValue( in DoInitialMatch() local
295 Good.push_back(SE.getMulExpr(NegOne, *I)); in DoInitialMatch()
298 Bad.push_back(SE.getMulExpr(NegOne, *I)); in DoInitialMatch()
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombineCompares.cpp1616 Constant *NegOne = Constant::getAllOnesValue(SrcTy); in visitICmpInstWithCastAndCast() local
1617 Value *Result = Builder->CreateICmpSGT(LHSCIOp, NegOne, ICI.getName()); in visitICmpInstWithCastAndCast()
/external/clang/lib/CodeGen/
DCGExprScalar.cpp2244 llvm::Value *NegOne = llvm::ConstantInt::get(Ty, -1ULL); in EmitUndefinedBehaviorIntegerDivAndRemCheck() local
2247 llvm::Value *RHSCmp = Builder.CreateICmpNE(Ops.RHS, NegOne); in EmitUndefinedBehaviorIntegerDivAndRemCheck()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineCompares.cpp2477 Constant *NegOne = Constant::getAllOnesValue(SrcTy); in visitICmpInstWithCastAndCast() local
2478 Value *Result = Builder->CreateICmpSGT(LHSCIOp, NegOne, ICmp.getName()); in visitICmpInstWithCastAndCast()
/external/swiftshader/third_party/LLVM/lib/CodeGen/SelectionDAG/
DDAGCombiner.cpp4140 SDValue NegOne = in visitSIGN_EXTEND() local
4144 NegOne, DAG.getConstant(0, VT), in visitSIGN_EXTEND()
4154 NegOne, DAG.getConstant(0, VT)); in visitSIGN_EXTEND()
DSelectionDAG.cpp918 SDValue NegOne = in getNOT() local
920 return getNode(ISD::XOR, DL, VT, Val, NegOne); in getNOT()
/external/llvm/lib/CodeGen/SelectionDAG/
DDAGCombiner.cpp2419 APInt NegOne = APInt::getAllOnesValue(VT.getSizeInBits()); in visitREM() local
2421 DAG.getNode(ISD::ADD, DL, VT, N1, DAG.getConstant(NegOne, DL, VT)); in visitREM()
6207 SDValue NegOne = in visitSIGN_EXTEND() local
6210 DL, N0.getOperand(0), N0.getOperand(1), NegOne, in visitSIGN_EXTEND()
6224 NegOne, DAG.getConstant(0, DL, VT)); in visitSIGN_EXTEND()
DSelectionDAG.cpp1077 SDValue NegOne = in getNOT() local
1079 return getNode(ISD::XOR, DL, VT, Val, NegOne); in getNOT()
/external/llvm/lib/Target/PowerPC/
DPPCISelLowering.cpp7118 Constant *NegOne = in LowerBUILD_VECTOR() local
7126 CV[i] = NegOne; in LowerBUILD_VECTOR()