Lines Matching refs:udiv
445 TEST_F(ConstantRangeTest, UDiv) {
446 EXPECT_EQ(Full.udiv(Full), Full);
447 EXPECT_EQ(Full.udiv(Empty), Empty);
448 EXPECT_EQ(Full.udiv(One), ConstantRange(APInt(16, 0),
450 EXPECT_EQ(Full.udiv(Some), ConstantRange(APInt(16, 0),
452 EXPECT_EQ(Full.udiv(Wrap), Full);
453 EXPECT_EQ(Empty.udiv(Empty), Empty);
454 EXPECT_EQ(Empty.udiv(One), Empty);
455 EXPECT_EQ(Empty.udiv(Some), Empty);
456 EXPECT_EQ(Empty.udiv(Wrap), Empty);
457 EXPECT_EQ(One.udiv(One), ConstantRange(APInt(16, 1)));
458 EXPECT_EQ(One.udiv(Some), ConstantRange(APInt(16, 0), APInt(16, 2)));
459 EXPECT_EQ(One.udiv(Wrap), ConstantRange(APInt(16, 0), APInt(16, 0xb)));
460 EXPECT_EQ(Some.udiv(Some), ConstantRange(APInt(16, 0), APInt(16, 0x111)));
461 EXPECT_EQ(Some.udiv(Wrap), ConstantRange(APInt(16, 0), APInt(16, 0xaaa)));
462 EXPECT_EQ(Wrap.udiv(Wrap), Full);