• Home
  • Raw
  • Download

Lines Matching refs:ConstantExpr

31   EXPECT_EQ(Zero, ConstantExpr::getAdd(One, One));  in TEST()
35 EXPECT_EQ(Zero, ConstantExpr::getAdd(NegOne, One)); in TEST()
39 EXPECT_EQ(Zero, ConstantExpr::getAdd(NegOne, NegOne)); in TEST()
43 EXPECT_EQ(Zero, ConstantExpr::getSub(NegOne, One)); in TEST()
47 EXPECT_EQ(Zero, ConstantExpr::getSub(One, NegOne)); in TEST()
51 EXPECT_EQ(Zero, ConstantExpr::getSub(One, One)); in TEST()
55 EXPECT_EQ(Undef, ConstantExpr::getShl(One, One)); in TEST()
59 EXPECT_EQ(One, ConstantExpr::getShl(One, Zero)); in TEST()
63 EXPECT_EQ(Undef, ConstantExpr::getLShr(One, One)); in TEST()
67 EXPECT_EQ(Undef, ConstantExpr::getAShr(One, One)); in TEST()
71 EXPECT_EQ(One, ConstantExpr::getMul(NegOne, One)); in TEST()
75 EXPECT_EQ(One, ConstantExpr::getSDiv(NegOne, One)); in TEST()
79 EXPECT_EQ(One, ConstantExpr::getSDiv(One, NegOne)); in TEST()
83 EXPECT_EQ(One, ConstantExpr::getUDiv(NegOne, One)); in TEST()
87 EXPECT_EQ(One, ConstantExpr::getUDiv(One, NegOne)); in TEST()
91 EXPECT_EQ(Zero, ConstantExpr::getSRem(NegOne, One)); in TEST()
95 EXPECT_EQ(Zero, ConstantExpr::getURem(NegOne, One)); in TEST()
99 EXPECT_EQ(Zero, ConstantExpr::getSRem(One, NegOne)); in TEST()
120 Constant *X = ConstantExpr::getUIToFP(Zero128, FP128Ty); in TEST()
135 ConstantExpr::getPointerCast( in TEST()
140 ConstantExpr::getPointerCast( in TEST()
145 ConstantExpr::getPointerCast( in TEST()
150 ConstantExpr::getPointerCast( in TEST()
157 Instruction *__I = cast<ConstantExpr>(x)->getAsInstruction(); \
179 Constant *P0 = ConstantExpr::getPtrToInt(Global, Int32Ty); in TEST()
180 Constant *P1 = ConstantExpr::getUIToFP(P0, FloatTy); in TEST()
181 Constant *P2 = ConstantExpr::getUIToFP(P0, DoubleTy); in TEST()
182 Constant *P3 = ConstantExpr::getTrunc(P0, Int1Ty); in TEST()
183 Constant *P4 = ConstantExpr::getPtrToInt(Global2, Int32Ty); in TEST()
184 Constant *P5 = ConstantExpr::getUIToFP(P4, FloatTy); in TEST()
185 Constant *P6 = ConstantExpr::getBitCast(P4, VectorType::get(Int16Ty, 2)); in TEST()
197 CHECK(ConstantExpr::getNeg(P0), "sub i32 0, " P0STR); in TEST()
198 CHECK(ConstantExpr::getFNeg(P1), "fsub float -0.000000e+00, " P1STR); in TEST()
199 CHECK(ConstantExpr::getNot(P0), "xor i32 " P0STR ", -1"); in TEST()
200 CHECK(ConstantExpr::getAdd(P0, P0), "add i32 " P0STR ", " P0STR); in TEST()
201 CHECK(ConstantExpr::getAdd(P0, P0, false, true), "add nsw i32 " P0STR ", " in TEST()
203 CHECK(ConstantExpr::getAdd(P0, P0, true, true), "add nuw nsw i32 " P0STR ", " in TEST()
205 CHECK(ConstantExpr::getFAdd(P1, P1), "fadd float " P1STR ", " P1STR); in TEST()
206 CHECK(ConstantExpr::getSub(P0, P0), "sub i32 " P0STR ", " P0STR); in TEST()
207 CHECK(ConstantExpr::getFSub(P1, P1), "fsub float " P1STR ", " P1STR); in TEST()
208 CHECK(ConstantExpr::getMul(P0, P0), "mul i32 " P0STR ", " P0STR); in TEST()
209 CHECK(ConstantExpr::getFMul(P1, P1), "fmul float " P1STR ", " P1STR); in TEST()
210 CHECK(ConstantExpr::getUDiv(P0, P0), "udiv i32 " P0STR ", " P0STR); in TEST()
211 CHECK(ConstantExpr::getSDiv(P0, P0), "sdiv i32 " P0STR ", " P0STR); in TEST()
212 CHECK(ConstantExpr::getFDiv(P1, P1), "fdiv float " P1STR ", " P1STR); in TEST()
213 CHECK(ConstantExpr::getURem(P0, P0), "urem i32 " P0STR ", " P0STR); in TEST()
214 CHECK(ConstantExpr::getSRem(P0, P0), "srem i32 " P0STR ", " P0STR); in TEST()
215 CHECK(ConstantExpr::getFRem(P1, P1), "frem float " P1STR ", " P1STR); in TEST()
216 CHECK(ConstantExpr::getAnd(P0, P0), "and i32 " P0STR ", " P0STR); in TEST()
217 CHECK(ConstantExpr::getOr(P0, P0), "or i32 " P0STR ", " P0STR); in TEST()
218 CHECK(ConstantExpr::getXor(P0, P0), "xor i32 " P0STR ", " P0STR); in TEST()
219 CHECK(ConstantExpr::getShl(P0, P0), "shl i32 " P0STR ", " P0STR); in TEST()
220 CHECK(ConstantExpr::getShl(P0, P0, true), "shl nuw i32 " P0STR ", " P0STR); in TEST()
221 CHECK(ConstantExpr::getShl(P0, P0, false, true), "shl nsw i32 " P0STR ", " in TEST()
223 CHECK(ConstantExpr::getLShr(P0, P0, false), "lshr i32 " P0STR ", " P0STR); in TEST()
224 CHECK(ConstantExpr::getLShr(P0, P0, true), "lshr exact i32 " P0STR ", " P0STR); in TEST()
225 CHECK(ConstantExpr::getAShr(P0, P0, false), "ashr i32 " P0STR ", " P0STR); in TEST()
226 CHECK(ConstantExpr::getAShr(P0, P0, true), "ashr exact i32 " P0STR ", " P0STR); in TEST()
228 CHECK(ConstantExpr::getSExt(P0, Int64Ty), "sext i32 " P0STR " to i64"); in TEST()
229 CHECK(ConstantExpr::getZExt(P0, Int64Ty), "zext i32 " P0STR " to i64"); in TEST()
230 CHECK(ConstantExpr::getFPTrunc(P2, FloatTy), "fptrunc double " P2STR in TEST()
232 CHECK(ConstantExpr::getFPExtend(P1, DoubleTy), "fpext float " P1STR in TEST()
235 CHECK(ConstantExpr::getExactUDiv(P0, P0), "udiv exact i32 " P0STR ", " P0STR); in TEST()
237 CHECK(ConstantExpr::getSelect(P3, P0, P4), "select i1 " P3STR ", i32 " P0STR in TEST()
239 CHECK(ConstantExpr::getICmp(CmpInst::ICMP_EQ, P0, P4), "icmp eq i32 " P0STR in TEST()
241 CHECK(ConstantExpr::getFCmp(CmpInst::FCMP_ULT, P1, P5), "fcmp ult float " in TEST()
250 CHECK(ConstantExpr::getInBoundsGetElementPtr(Global, V), in TEST()
253 CHECK(ConstantExpr::getExtractElement(P6, One), "extractelement <2 x i16> " in TEST()
267 Constant *GEP = ConstantExpr::getGetElementPtr(Global, One); in TEST()