Lines Matching refs:Some

23   static ConstantRange Some;  member in __anon10950d6f0111::ConstantRangeTest
30 ConstantRange ConstantRangeTest::Some(APInt(16, 0xa), APInt(16, 0xaaa)); member in __anon10950d6f0111::ConstantRangeTest
64 EXPECT_FALSE(Some.isFullSet()); in TEST_F()
65 EXPECT_FALSE(Some.isEmptySet()); in TEST_F()
66 EXPECT_FALSE(Some.isWrappedSet()); in TEST_F()
67 EXPECT_FALSE(Some.contains(APInt(16, 0x0))); in TEST_F()
68 EXPECT_FALSE(Some.contains(APInt(16, 0x9))); in TEST_F()
69 EXPECT_TRUE(Some.contains(APInt(16, 0xa))); in TEST_F()
70 EXPECT_TRUE(Some.contains(APInt(16, 0xaa9))); in TEST_F()
71 EXPECT_FALSE(Some.contains(APInt(16, 0xaaa))); in TEST_F()
87 EXPECT_EQ(Some, Some); in TEST_F()
91 EXPECT_NE(Full, Some); in TEST_F()
94 EXPECT_NE(Empty, Some); in TEST_F()
96 EXPECT_NE(One, Some); in TEST_F()
98 EXPECT_NE(Some, Wrap); in TEST_F()
105 EXPECT_EQ(Some.getSingleElement(), static_cast<APInt *>(nullptr)); in TEST_F()
111 EXPECT_FALSE(Some.isSingleElement()); in TEST_F()
119 EXPECT_EQ(Some.getSetSize(), APInt(17, 0xaa0)); in TEST_F()
130 EXPECT_EQ(Some.getUnsignedMax(), APInt(16, 0xaa9)); in TEST_F()
135 EXPECT_EQ(Some.getUnsignedMin(), APInt(16, 0xa)); in TEST_F()
140 EXPECT_EQ(Some.getSignedMax(), APInt(16, 0xaa9)); in TEST_F()
145 EXPECT_EQ(Some.getSignedMin(), APInt(16, 0xa)); in TEST_F()
157 EXPECT_FALSE(Some.isSignWrappedSet()); in TEST_F()
173 ConstantRange TSome = Some.truncate(10); in TEST_F()
186 ConstantRange ZSome = Some.zeroExtend(20); in TEST_F()
192 EXPECT_EQ(ZSome, ConstantRange(Some.getLower().zext(20), in TEST_F()
193 Some.getUpper().zext(20))); in TEST_F()
205 ConstantRange SSome = Some.signExtend(20); in TEST_F()
212 EXPECT_EQ(SSome, ConstantRange(Some.getLower().sext(20), in TEST_F()
213 Some.getUpper().sext(20))); in TEST_F()
228 EXPECT_EQ(Empty.intersectWith(Some), Empty); in TEST_F()
231 EXPECT_EQ(Some.intersectWith(Some), Some); in TEST_F()
232 EXPECT_EQ(Some.intersectWith(One), One); in TEST_F()
234 EXPECT_EQ(Full.intersectWith(Some), Some); in TEST_F()
235 EXPECT_EQ(Some.intersectWith(Wrap), Empty); in TEST_F()
288 EXPECT_EQ(Some.unionWith(Wrap), Full); in TEST_F()
322 EXPECT_EQ(Some.subtract(APInt(16, 4)), in TEST_F()
335 EXPECT_EQ(Full.add(Some), Full); in TEST_F()
339 EXPECT_EQ(Empty.add(Some), Empty); in TEST_F()
342 EXPECT_EQ(Some.add(APInt(16, 4)), in TEST_F()
355 EXPECT_EQ(Full.sub(Some), Full); in TEST_F()
359 EXPECT_EQ(Empty.sub(Some), Empty); in TEST_F()
362 EXPECT_EQ(Some.sub(APInt(16, 4)), in TEST_F()
364 EXPECT_EQ(Some.sub(Some), in TEST_F()
376 EXPECT_EQ(Full.multiply(Some), Full); in TEST_F()
380 EXPECT_EQ(Empty.multiply(Some), Empty); in TEST_F()
384 EXPECT_EQ(One.multiply(Some), ConstantRange(APInt(16, 0xa*0xa), in TEST_F()
387 EXPECT_EQ(Some.multiply(Some), Full); in TEST_F()
388 EXPECT_EQ(Some.multiply(Wrap), Full); in TEST_F()
393 EXPECT_EQ(Zero.multiply(Some), Zero); in TEST_F()
396 EXPECT_EQ(Some.multiply(Zero), Zero); in TEST_F()
415 EXPECT_EQ(Full.umax(Some), ConstantRange(APInt(16, 0xa), APInt(16, 0))); in TEST_F()
417 EXPECT_EQ(Full.umax(Some), ConstantRange(APInt(16, 0xa), APInt(16, 0))); in TEST_F()
419 EXPECT_EQ(Empty.umax(Some), Empty); in TEST_F()
422 EXPECT_EQ(Some.umax(Some), Some); in TEST_F()
423 EXPECT_EQ(Some.umax(Wrap), ConstantRange(APInt(16, 0xa), APInt(16, 0))); in TEST_F()
424 EXPECT_EQ(Some.umax(One), Some); in TEST_F()
434 EXPECT_EQ(Full.smax(Some), ConstantRange(APInt(16, 0xa), in TEST_F()
440 EXPECT_EQ(Empty.smax(Some), Empty); in TEST_F()
443 EXPECT_EQ(Some.smax(Some), Some); in TEST_F()
444 EXPECT_EQ(Some.smax(Wrap), ConstantRange(APInt(16, 0xa), in TEST_F()
446 EXPECT_EQ(Some.smax(One), Some); in TEST_F()
457 EXPECT_EQ(Full.udiv(Some), ConstantRange(APInt(16, 0), in TEST_F()
462 EXPECT_EQ(Empty.udiv(Some), Empty); in TEST_F()
465 EXPECT_EQ(One.udiv(Some), ConstantRange(APInt(16, 0), APInt(16, 2))); in TEST_F()
467 EXPECT_EQ(Some.udiv(Some), ConstantRange(APInt(16, 0), APInt(16, 0x111))); in TEST_F()
468 EXPECT_EQ(Some.udiv(Wrap), ConstantRange(APInt(16, 0), APInt(16, 0xaaa))); in TEST_F()
476 EXPECT_EQ(Full.shl(Some), Full); // TODO: [0, (-1 << 0xa) + 1) in TEST_F()
480 EXPECT_EQ(Empty.shl(Some), Empty); in TEST_F()
484 EXPECT_EQ(One.shl(Some), Full); // TODO: [0xa << 0xa, 0) in TEST_F()
486 EXPECT_EQ(Some.shl(Some), Full); // TODO: [0xa << 0xa, 0xfc01) in TEST_F()
487 EXPECT_EQ(Some.shl(Wrap), Full); // TODO: [0xa, 0x7ff << 0x5 + 1) in TEST_F()
496 EXPECT_EQ(Full.lshr(Some), ConstantRange(APInt(16, 0), in TEST_F()
501 EXPECT_EQ(Empty.lshr(Some), Empty); in TEST_F()
504 EXPECT_EQ(One.lshr(Some), ConstantRange(APInt(16, 0))); in TEST_F()
506 EXPECT_EQ(Some.lshr(Some), ConstantRange(APInt(16, 0), in TEST_F()
508 EXPECT_EQ(Some.lshr(Wrap), ConstantRange(APInt(16, 0), APInt(16, 0xaaa))); in TEST_F()