• Home
  • Raw
  • Download

Lines Matching refs:ConstantExpr

33   EXPECT_EQ(Zero, ConstantExpr::getAdd(One, One));  in TEST()
37 EXPECT_EQ(Zero, ConstantExpr::getAdd(NegOne, One)); in TEST()
41 EXPECT_EQ(Zero, ConstantExpr::getAdd(NegOne, NegOne)); in TEST()
45 EXPECT_EQ(Zero, ConstantExpr::getSub(NegOne, One)); in TEST()
49 EXPECT_EQ(Zero, ConstantExpr::getSub(One, NegOne)); in TEST()
53 EXPECT_EQ(Zero, ConstantExpr::getSub(One, One)); in TEST()
57 EXPECT_EQ(Undef, ConstantExpr::getShl(One, One)); in TEST()
61 EXPECT_EQ(One, ConstantExpr::getShl(One, Zero)); in TEST()
65 EXPECT_EQ(Undef, ConstantExpr::getLShr(One, One)); in TEST()
69 EXPECT_EQ(Undef, ConstantExpr::getAShr(One, One)); in TEST()
73 EXPECT_EQ(One, ConstantExpr::getMul(NegOne, One)); in TEST()
77 EXPECT_EQ(One, ConstantExpr::getSDiv(NegOne, One)); in TEST()
81 EXPECT_EQ(One, ConstantExpr::getSDiv(One, NegOne)); in TEST()
85 EXPECT_EQ(One, ConstantExpr::getUDiv(NegOne, One)); in TEST()
89 EXPECT_EQ(One, ConstantExpr::getUDiv(One, NegOne)); in TEST()
93 EXPECT_EQ(Zero, ConstantExpr::getSRem(NegOne, One)); in TEST()
97 EXPECT_EQ(Zero, ConstantExpr::getURem(NegOne, One)); in TEST()
101 EXPECT_EQ(Zero, ConstantExpr::getSRem(One, NegOne)); in TEST()
122 Constant *X = ConstantExpr::getUIToFP(Zero128, FP128Ty); in TEST()
137 ConstantExpr::getPointerCast( in TEST()
142 ConstantExpr::getPointerCast( in TEST()
147 ConstantExpr::getPointerCast( in TEST()
152 ConstantExpr::getPointerCast( in TEST()
159 Instruction *__I = cast<ConstantExpr>(x)->getAsInstruction(); \
181 Constant *P0 = ConstantExpr::getPtrToInt(Global, Int32Ty); in TEST()
182 Constant *P1 = ConstantExpr::getUIToFP(P0, FloatTy); in TEST()
183 Constant *P2 = ConstantExpr::getUIToFP(P0, DoubleTy); in TEST()
184 Constant *P3 = ConstantExpr::getTrunc(P0, Int1Ty); in TEST()
185 Constant *P4 = ConstantExpr::getPtrToInt(Global2, Int32Ty); in TEST()
186 Constant *P5 = ConstantExpr::getUIToFP(P4, FloatTy); in TEST()
187 Constant *P6 = ConstantExpr::getBitCast(P4, VectorType::get(Int16Ty, 2)); in TEST()
199 CHECK(ConstantExpr::getNeg(P0), "sub i32 0, " P0STR); in TEST()
200 CHECK(ConstantExpr::getFNeg(P1), "fsub float -0.000000e+00, " P1STR); in TEST()
201 CHECK(ConstantExpr::getNot(P0), "xor i32 " P0STR ", -1"); in TEST()
202 CHECK(ConstantExpr::getAdd(P0, P0), "add i32 " P0STR ", " P0STR); in TEST()
203 CHECK(ConstantExpr::getAdd(P0, P0, false, true), "add nsw i32 " P0STR ", " in TEST()
205 CHECK(ConstantExpr::getAdd(P0, P0, true, true), "add nuw nsw i32 " P0STR ", " in TEST()
207 CHECK(ConstantExpr::getFAdd(P1, P1), "fadd float " P1STR ", " P1STR); in TEST()
208 CHECK(ConstantExpr::getSub(P0, P0), "sub i32 " P0STR ", " P0STR); in TEST()
209 CHECK(ConstantExpr::getFSub(P1, P1), "fsub float " P1STR ", " P1STR); in TEST()
210 CHECK(ConstantExpr::getMul(P0, P0), "mul i32 " P0STR ", " P0STR); in TEST()
211 CHECK(ConstantExpr::getFMul(P1, P1), "fmul float " P1STR ", " P1STR); in TEST()
212 CHECK(ConstantExpr::getUDiv(P0, P0), "udiv i32 " P0STR ", " P0STR); in TEST()
213 CHECK(ConstantExpr::getSDiv(P0, P0), "sdiv i32 " P0STR ", " P0STR); in TEST()
214 CHECK(ConstantExpr::getFDiv(P1, P1), "fdiv float " P1STR ", " P1STR); in TEST()
215 CHECK(ConstantExpr::getURem(P0, P0), "urem i32 " P0STR ", " P0STR); in TEST()
216 CHECK(ConstantExpr::getSRem(P0, P0), "srem i32 " P0STR ", " P0STR); in TEST()
217 CHECK(ConstantExpr::getFRem(P1, P1), "frem float " P1STR ", " P1STR); in TEST()
218 CHECK(ConstantExpr::getAnd(P0, P0), "and i32 " P0STR ", " P0STR); in TEST()
219 CHECK(ConstantExpr::getOr(P0, P0), "or i32 " P0STR ", " P0STR); in TEST()
220 CHECK(ConstantExpr::getXor(P0, P0), "xor i32 " P0STR ", " P0STR); in TEST()
221 CHECK(ConstantExpr::getShl(P0, P0), "shl i32 " P0STR ", " P0STR); in TEST()
222 CHECK(ConstantExpr::getShl(P0, P0, true), "shl nuw i32 " P0STR ", " P0STR); in TEST()
223 CHECK(ConstantExpr::getShl(P0, P0, false, true), "shl nsw i32 " P0STR ", " in TEST()
225 CHECK(ConstantExpr::getLShr(P0, P0, false), "lshr i32 " P0STR ", " P0STR); in TEST()
226 CHECK(ConstantExpr::getLShr(P0, P0, true), "lshr exact i32 " P0STR ", " P0STR); in TEST()
227 CHECK(ConstantExpr::getAShr(P0, P0, false), "ashr i32 " P0STR ", " P0STR); in TEST()
228 CHECK(ConstantExpr::getAShr(P0, P0, true), "ashr exact i32 " P0STR ", " P0STR); in TEST()
230 CHECK(ConstantExpr::getSExt(P0, Int64Ty), "sext i32 " P0STR " to i64"); in TEST()
231 CHECK(ConstantExpr::getZExt(P0, Int64Ty), "zext i32 " P0STR " to i64"); in TEST()
232 CHECK(ConstantExpr::getFPTrunc(P2, FloatTy), "fptrunc double " P2STR in TEST()
234 CHECK(ConstantExpr::getFPExtend(P1, DoubleTy), "fpext float " P1STR in TEST()
237 CHECK(ConstantExpr::getExactUDiv(P0, P0), "udiv exact i32 " P0STR ", " P0STR); in TEST()
239 CHECK(ConstantExpr::getSelect(P3, P0, P4), "select i1 " P3STR ", i32 " P0STR in TEST()
241 CHECK(ConstantExpr::getICmp(CmpInst::ICMP_EQ, P0, P4), "icmp eq i32 " P0STR in TEST()
243 CHECK(ConstantExpr::getFCmp(CmpInst::FCMP_ULT, P1, P5), "fcmp ult float " in TEST()
252 CHECK(ConstantExpr::getInBoundsGetElementPtr(PointerType::getUnqual(Int32Ty), in TEST()
256 CHECK(ConstantExpr::getExtractElement(P6, One), "extractelement <2 x i16> " in TEST()
270 Constant *GEP = ConstantExpr::getGetElementPtr( in TEST()
293 Constant *GlobalInt = ConstantExpr::getPtrToInt(Global, IntTy); in TEST()
317 Constant *Int1 = ConstantExpr::getPtrToInt(G1, IntTy); in TEST()
318 Constant *Int2 = ConstantExpr::getPtrToInt(G2, IntTy); in TEST()
338 auto *GEP = ConstantExpr::getGetElementPtr(IntTy, Placeholder, C1); in TEST()
362 Constant *Aliasee = ConstantExpr::getBitCast(G, I16PTy); in TEST()