Home | History | Annotate | Download | only in Support

Lines Matching refs:UDiv

442 TEST_F(ConstantRangeTest, UDiv) {
443 EXPECT_EQ(Full.udiv(Full), Full);
444 EXPECT_EQ(Full.udiv(Empty), Empty);
445 EXPECT_EQ(Full.udiv(One), ConstantRange(APInt(16, 0),
447 EXPECT_EQ(Full.udiv(Some), ConstantRange(APInt(16, 0),
449 EXPECT_EQ(Full.udiv(Wrap), Full);
450 EXPECT_EQ(Empty.udiv(Empty), Empty);
451 EXPECT_EQ(Empty.udiv(One), Empty);
452 EXPECT_EQ(Empty.udiv(Some), Empty);
453 EXPECT_EQ(Empty.udiv(Wrap), Empty);
454 EXPECT_EQ(One.udiv(One), ConstantRange(APInt(16, 1)));
455 EXPECT_EQ(One.udiv(Some), ConstantRange(APInt(16, 0), APInt(16, 2)));
456 EXPECT_EQ(One.udiv(Wrap), ConstantRange(APInt(16, 0), APInt(16, 0xb)));
457 EXPECT_EQ(Some.udiv(Some), ConstantRange(APInt(16, 0), APInt(16, 0x111)));
458 EXPECT_EQ(Some.udiv(Wrap), ConstantRange(APInt(16, 0), APInt(16, 0xaaa)));
459 EXPECT_EQ(Wrap.udiv(Wrap), Full);