Lines Matching refs:umax
335 TEST_F(ConstantRangeTest, UMax) {
336 EXPECT_EQ(Full.umax(Full), Full);
337 EXPECT_EQ(Full.umax(Empty), Empty);
338 EXPECT_EQ(Full.umax(Some), ConstantRange(APInt(16, 0xa), APInt(16, 0)));
339 EXPECT_EQ(Full.umax(Wrap), Full);
340 EXPECT_EQ(Full.umax(Some), ConstantRange(APInt(16, 0xa), APInt(16, 0)));
341 EXPECT_EQ(Empty.umax(Empty), Empty);
342 EXPECT_EQ(Empty.umax(Some), Empty);
343 EXPECT_EQ(Empty.umax(Wrap), Empty);
344 EXPECT_EQ(Empty.umax(One), Empty);
345 EXPECT_EQ(Some.umax(Some), Some);
346 EXPECT_EQ(Some.umax(Wrap), ConstantRange(APInt(16, 0xa), APInt(16, 0)));
347 EXPECT_EQ(Some.umax(One), Some);
349 EXPECT_EQ(Wrap.umax(Wrap), Full);
350 EXPECT_EQ(Wrap.umax(One), ConstantRange(APInt(16, 0xa), APInt(16, 0)));
351 EXPECT_EQ(One.umax(One), One);