Lines Matching refs:Sub
351 TEST_F(ConstantRangeTest, Sub) {
352 EXPECT_EQ(Full.sub(APInt(16, 4)), Full);
353 EXPECT_EQ(Full.sub(Full), Full);
354 EXPECT_EQ(Full.sub(Empty), Empty);
355 EXPECT_EQ(Full.sub(One), Full);
356 EXPECT_EQ(Full.sub(Some), Full);
357 EXPECT_EQ(Full.sub(Wrap), Full);
358 EXPECT_EQ(Empty.sub(Empty), Empty);
359 EXPECT_EQ(Empty.sub(One), Empty);
360 EXPECT_EQ(Empty.sub(Some), Empty);
361 EXPECT_EQ(Empty.sub(Wrap), Empty);
362 EXPECT_EQ(Empty.sub(APInt(16, 4)), Empty);
363 EXPECT_EQ(Some.sub(APInt(16, 4)),
365 EXPECT_EQ(Some.sub(Some),
367 EXPECT_EQ(Wrap.sub(APInt(16, 4)),
369 EXPECT_EQ(One.sub(APInt(16, 4)),