Lines Matching refs:UDiv
375 TEST_F(ConstantRangeTest, UDiv) {
376 EXPECT_EQ(Full.udiv(Full), Full);
377 EXPECT_EQ(Full.udiv(Empty), Empty);
378 EXPECT_EQ(Full.udiv(One), ConstantRange(APInt(16, 0),
380 EXPECT_EQ(Full.udiv(Some), ConstantRange(APInt(16, 0),
382 EXPECT_EQ(Full.udiv(Wrap), Full);
383 EXPECT_EQ(Empty.udiv(Empty), Empty);
384 EXPECT_EQ(Empty.udiv(One), Empty);
385 EXPECT_EQ(Empty.udiv(Some), Empty);
386 EXPECT_EQ(Empty.udiv(Wrap), Empty);
387 EXPECT_EQ(One.udiv(One), ConstantRange(APInt(16, 1)));
388 EXPECT_EQ(One.udiv(Some), ConstantRange(APInt(16, 0), APInt(16, 2)));
389 EXPECT_EQ(One.udiv(Wrap), ConstantRange(APInt(16, 0), APInt(16, 0xb)));
390 EXPECT_EQ(Some.udiv(Some), ConstantRange(APInt(16, 0), APInt(16, 0x111)));
391 EXPECT_EQ(Some.udiv(Wrap), ConstantRange(APInt(16, 0), APInt(16, 0xaaa)));
392 EXPECT_EQ(Wrap.udiv(Wrap), Full);