• Home
  • Raw
  • Download

Lines Matching refs:Wrap

24   static ConstantRange Wrap;  member in __anon6d2ea70f0111::ConstantRangeTest
31 ConstantRange ConstantRangeTest::Wrap(APInt(16, 0xaaa), APInt(16, 0xa)); member in __anon6d2ea70f0111::ConstantRangeTest
73 EXPECT_FALSE(Wrap.isFullSet()); in TEST_F()
74 EXPECT_FALSE(Wrap.isEmptySet()); in TEST_F()
75 EXPECT_TRUE(Wrap.isWrappedSet()); in TEST_F()
76 EXPECT_TRUE(Wrap.contains(APInt(16, 0x0))); in TEST_F()
77 EXPECT_TRUE(Wrap.contains(APInt(16, 0x9))); in TEST_F()
78 EXPECT_FALSE(Wrap.contains(APInt(16, 0xa))); in TEST_F()
79 EXPECT_FALSE(Wrap.contains(APInt(16, 0xaa9))); in TEST_F()
80 EXPECT_TRUE(Wrap.contains(APInt(16, 0xaaa))); in TEST_F()
88 EXPECT_EQ(Wrap, Wrap); in TEST_F()
92 EXPECT_NE(Full, Wrap); in TEST_F()
95 EXPECT_NE(Empty, Wrap); in TEST_F()
97 EXPECT_NE(One, Wrap); in TEST_F()
98 EXPECT_NE(Some, Wrap); in TEST_F()
106 EXPECT_EQ(Wrap.getSingleElement(), static_cast<APInt *>(nullptr)); in TEST_F()
112 EXPECT_FALSE(Wrap.isSingleElement()); in TEST_F()
121 ConstantRange Wrap(APInt(4, 7), APInt(4, 3)); in TEST_F() local
123 EXPECT_EQ(Wrap.getSetSize(), APInt(5, 12)); in TEST_F()
131 EXPECT_EQ(Wrap.getUnsignedMax(), APInt(16, UINT16_MAX)); in TEST_F()
136 EXPECT_EQ(Wrap.getUnsignedMin(), APInt(16, 0)); in TEST_F()
141 EXPECT_EQ(Wrap.getSignedMax(), APInt(16, INT16_MAX)); in TEST_F()
146 EXPECT_EQ(Wrap.getSignedMin(), APInt(16, (uint64_t)INT16_MIN)); in TEST_F()
158 EXPECT_TRUE(Wrap.isSignWrappedSet()); in TEST_F()
174 ConstantRange TWrap = Wrap.truncate(10); in TEST_F()
187 ConstantRange ZWrap = Wrap.zeroExtend(20); in TEST_F()
206 ConstantRange SWrap = Wrap.signExtend(20); in TEST_F()
229 EXPECT_EQ(Empty.intersectWith(Wrap), Empty); in TEST_F()
235 EXPECT_EQ(Some.intersectWith(Wrap), Empty); in TEST_F()
236 EXPECT_EQ(One.intersectWith(Wrap), Empty); in TEST_F()
237 EXPECT_EQ(One.intersectWith(Wrap), Wrap.intersectWith(One)); in TEST_F()
283 EXPECT_EQ(Wrap.unionWith(One), in TEST_F()
285 EXPECT_EQ(One.unionWith(Wrap), Wrap.unionWith(One)); in TEST_F()
288 EXPECT_EQ(Some.unionWith(Wrap), Full); in TEST_F()
324 EXPECT_EQ(Wrap.subtract(APInt(16, 4)), in TEST_F()
336 EXPECT_EQ(Full.add(Wrap), Full); in TEST_F()
340 EXPECT_EQ(Empty.add(Wrap), Empty); in TEST_F()
344 EXPECT_EQ(Wrap.add(APInt(16, 4)), in TEST_F()
356 EXPECT_EQ(Full.sub(Wrap), Full); in TEST_F()
360 EXPECT_EQ(Empty.sub(Wrap), Empty); in TEST_F()
366 EXPECT_EQ(Wrap.sub(APInt(16, 4)), in TEST_F()
377 EXPECT_EQ(Full.multiply(Wrap), Full); in TEST_F()
381 EXPECT_EQ(Empty.multiply(Wrap), Empty); in TEST_F()
386 EXPECT_EQ(One.multiply(Wrap), Full); in TEST_F()
388 EXPECT_EQ(Some.multiply(Wrap), Full); in TEST_F()
389 EXPECT_EQ(Wrap.multiply(Wrap), Full); in TEST_F()
394 EXPECT_EQ(Zero.multiply(Wrap), Zero); in TEST_F()
397 EXPECT_EQ(Wrap.multiply(Zero), Zero); in TEST_F()
416 EXPECT_EQ(Full.umax(Wrap), Full); in TEST_F()
420 EXPECT_EQ(Empty.umax(Wrap), Empty); in TEST_F()
423 EXPECT_EQ(Some.umax(Wrap), ConstantRange(APInt(16, 0xa), APInt(16, 0))); in TEST_F()
426 EXPECT_EQ(Wrap.umax(Wrap), Full); in TEST_F()
427 EXPECT_EQ(Wrap.umax(One), ConstantRange(APInt(16, 0xa), APInt(16, 0))); in TEST_F()
436 EXPECT_EQ(Full.smax(Wrap), Full); in TEST_F()
441 EXPECT_EQ(Empty.smax(Wrap), Empty); in TEST_F()
444 EXPECT_EQ(Some.smax(Wrap), ConstantRange(APInt(16, 0xa), in TEST_F()
447 EXPECT_EQ(Wrap.smax(One), ConstantRange(APInt(16, 0xa), in TEST_F()
459 EXPECT_EQ(Full.udiv(Wrap), Full); in TEST_F()
463 EXPECT_EQ(Empty.udiv(Wrap), Empty); in TEST_F()
466 EXPECT_EQ(One.udiv(Wrap), ConstantRange(APInt(16, 0), APInt(16, 0xb))); in TEST_F()
468 EXPECT_EQ(Some.udiv(Wrap), ConstantRange(APInt(16, 0), APInt(16, 0xaaa))); in TEST_F()
469 EXPECT_EQ(Wrap.udiv(Wrap), Full); in TEST_F()
477 EXPECT_EQ(Full.shl(Wrap), Full); in TEST_F()
481 EXPECT_EQ(Empty.shl(Wrap), Empty); in TEST_F()
485 EXPECT_EQ(One.shl(Wrap), Full); // TODO: [0xa, 0xa << 14 + 1) in TEST_F()
487 EXPECT_EQ(Some.shl(Wrap), Full); // TODO: [0xa, 0x7ff << 0x5 + 1) in TEST_F()
488 EXPECT_EQ(Wrap.shl(Wrap), Full); in TEST_F()
498 EXPECT_EQ(Full.lshr(Wrap), Full); in TEST_F()
502 EXPECT_EQ(Empty.lshr(Wrap), Empty); in TEST_F()
505 EXPECT_EQ(One.lshr(Wrap), ConstantRange(APInt(16, 0), APInt(16, 0xb))); in TEST_F()
508 EXPECT_EQ(Some.lshr(Wrap), ConstantRange(APInt(16, 0), APInt(16, 0xaaa))); in TEST_F()
509 EXPECT_EQ(Wrap.lshr(Wrap), Full); in TEST_F()