reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

unittests/ADT/APIntTest.cpp
  228   EXPECT_EQ(-1, one.getSExtValue());
  229   EXPECT_EQ(1u, one.getZExtValue());
  236   EXPECT_EQ(one, neg_one);
  241   EXPECT_FALSE(one.isMaxSignedValue());
  243   EXPECT_TRUE(one.isMinSignedValue());
  246   EXPECT_EQ(two, one + one);
  246   EXPECT_EQ(two, one + one);
  247   EXPECT_EQ(zero, neg_one + one);
  251   EXPECT_EQ(neg_two, neg_one - one);
  252   EXPECT_EQ(two, one - neg_one);
  253   EXPECT_EQ(zero, one - one);
  253   EXPECT_EQ(zero, one - one);
  257   EXPECT_EQ(zero, one & zero);
  258   EXPECT_EQ(zero, zero & one);
  259   EXPECT_EQ(one, one & one);
  259   EXPECT_EQ(one, one & one);
  259   EXPECT_EQ(one, one & one);
  267   EXPECT_EQ(one, one | zero);
  267   EXPECT_EQ(one, one | zero);
  268   EXPECT_EQ(one, zero | one);
  268   EXPECT_EQ(one, zero | one);
  269   EXPECT_EQ(one, one | one);
  269   EXPECT_EQ(one, one | one);
  269   EXPECT_EQ(one, one | one);
  277   EXPECT_EQ(one, one ^ zero);
  277   EXPECT_EQ(one, one ^ zero);
  278   EXPECT_EQ(one, zero ^ one);
  278   EXPECT_EQ(one, zero ^ one);
  279   EXPECT_EQ(zero, one ^ one);
  279   EXPECT_EQ(zero, one ^ one);
  286   EXPECT_EQ(zero, one << one);
  286   EXPECT_EQ(zero, one << one);
  287   EXPECT_EQ(one, one << zero);
  287   EXPECT_EQ(one, one << zero);
  288   EXPECT_EQ(zero, one.shl(1));
  289   EXPECT_EQ(one, one.shl(0));
  289   EXPECT_EQ(one, one.shl(0));
  290   EXPECT_EQ(zero, one.lshr(1));
  291   EXPECT_EQ(one, one.ashr(1));
  291   EXPECT_EQ(one, one.ashr(1));
  294   EXPECT_EQ(one, one.rotl(0));
  294   EXPECT_EQ(one, one.rotl(0));
  295   EXPECT_EQ(one, one.rotl(1));
  295   EXPECT_EQ(one, one.rotl(1));
  296   EXPECT_EQ(one, one.rotr(0));
  296   EXPECT_EQ(one, one.rotr(0));
  297   EXPECT_EQ(one, one.rotr(1));
  297   EXPECT_EQ(one, one.rotr(1));
  300   EXPECT_EQ(neg_one, neg_one * one);
  301   EXPECT_EQ(neg_one, one * neg_one);
  302   EXPECT_EQ(one, neg_one * neg_one);
  303   EXPECT_EQ(one, one * one);
  303   EXPECT_EQ(one, one * one);
  303   EXPECT_EQ(one, one * one);
  306   EXPECT_EQ(neg_one, one.sdiv(neg_one));
  307   EXPECT_EQ(neg_one, neg_one.sdiv(one));
  308   EXPECT_EQ(one, neg_one.sdiv(neg_one));
  309   EXPECT_EQ(one, one.sdiv(one));
  309   EXPECT_EQ(one, one.sdiv(one));
  309   EXPECT_EQ(one, one.sdiv(one));
  311   EXPECT_EQ(neg_one, one.udiv(neg_one));
  312   EXPECT_EQ(neg_one, neg_one.udiv(one));
  313   EXPECT_EQ(one, neg_one.udiv(neg_one));
  314   EXPECT_EQ(one, one.udiv(one));
  314   EXPECT_EQ(one, one.udiv(one));
  314   EXPECT_EQ(one, one.udiv(one));
  317   EXPECT_EQ(zero, neg_one.srem(one));
  318   EXPECT_EQ(zero, neg_one.urem(one));
  319   EXPECT_EQ(zero, one.srem(neg_one));