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

References

unittests/ADT/APSIntTest.cpp
   85   EXPECT_TRUE(APSInt::compareValues(S(7), S(8)) < 0);
   85   EXPECT_TRUE(APSInt::compareValues(S(7), S(8)) < 0);
   86   EXPECT_TRUE(APSInt::compareValues(S(8), S(7)) > 0);
   86   EXPECT_TRUE(APSInt::compareValues(S(8), S(7)) > 0);
   87   EXPECT_TRUE(APSInt::compareValues(S(7), S(7)) == 0);
   87   EXPECT_TRUE(APSInt::compareValues(S(7), S(7)) == 0);
   88   EXPECT_TRUE(APSInt::compareValues(S(-7), S(8)) < 0);
   88   EXPECT_TRUE(APSInt::compareValues(S(-7), S(8)) < 0);
   89   EXPECT_TRUE(APSInt::compareValues(S(8), S(-7)) > 0);
   89   EXPECT_TRUE(APSInt::compareValues(S(8), S(-7)) > 0);
   90   EXPECT_TRUE(APSInt::compareValues(S(-7), S(-7)) == 0);
   90   EXPECT_TRUE(APSInt::compareValues(S(-7), S(-7)) == 0);
   91   EXPECT_TRUE(APSInt::compareValues(S(-7), S(-8)) > 0);
   91   EXPECT_TRUE(APSInt::compareValues(S(-7), S(-8)) > 0);
   92   EXPECT_TRUE(APSInt::compareValues(S(-8), S(-7)) < 0);
   92   EXPECT_TRUE(APSInt::compareValues(S(-8), S(-7)) < 0);
   93   EXPECT_TRUE(APSInt::compareValues(S(-7), S(-7)) == 0);
   93   EXPECT_TRUE(APSInt::compareValues(S(-7), S(-7)) == 0);
  101   EXPECT_TRUE(APSInt::compareValues(U(7), S(8)) < 0);
  102   EXPECT_TRUE(APSInt::compareValues(U(8), S(7)) > 0);
  103   EXPECT_TRUE(APSInt::compareValues(U(7), S(7)) == 0);
  104   EXPECT_TRUE(APSInt::compareValues(U(8), S(-7)) > 0);
  107   EXPECT_TRUE(APSInt::compareValues(S(7).trunc(32), S(8)) < 0);
  107   EXPECT_TRUE(APSInt::compareValues(S(7).trunc(32), S(8)) < 0);
  108   EXPECT_TRUE(APSInt::compareValues(S(8).trunc(32), S(7)) > 0);
  108   EXPECT_TRUE(APSInt::compareValues(S(8).trunc(32), S(7)) > 0);
  109   EXPECT_TRUE(APSInt::compareValues(S(7).trunc(32), S(7)) == 0);
  109   EXPECT_TRUE(APSInt::compareValues(S(7).trunc(32), S(7)) == 0);
  110   EXPECT_TRUE(APSInt::compareValues(S(-7).trunc(32), S(8)) < 0);
  110   EXPECT_TRUE(APSInt::compareValues(S(-7).trunc(32), S(8)) < 0);
  111   EXPECT_TRUE(APSInt::compareValues(S(8).trunc(32), S(-7)) > 0);
  111   EXPECT_TRUE(APSInt::compareValues(S(8).trunc(32), S(-7)) > 0);
  112   EXPECT_TRUE(APSInt::compareValues(S(-7).trunc(32), S(-7)) == 0);
  112   EXPECT_TRUE(APSInt::compareValues(S(-7).trunc(32), S(-7)) == 0);
  113   EXPECT_TRUE(APSInt::compareValues(S(-7).trunc(32), S(-8)) > 0);
  113   EXPECT_TRUE(APSInt::compareValues(S(-7).trunc(32), S(-8)) > 0);
  114   EXPECT_TRUE(APSInt::compareValues(S(-8).trunc(32), S(-7)) < 0);
  114   EXPECT_TRUE(APSInt::compareValues(S(-8).trunc(32), S(-7)) < 0);
  115   EXPECT_TRUE(APSInt::compareValues(S(-7).trunc(32), S(-7)) == 0);
  115   EXPECT_TRUE(APSInt::compareValues(S(-7).trunc(32), S(-7)) == 0);
  116   EXPECT_TRUE(APSInt::compareValues(S(7), S(8).trunc(32)) < 0);
  116   EXPECT_TRUE(APSInt::compareValues(S(7), S(8).trunc(32)) < 0);
  117   EXPECT_TRUE(APSInt::compareValues(S(8), S(7).trunc(32)) > 0);
  117   EXPECT_TRUE(APSInt::compareValues(S(8), S(7).trunc(32)) > 0);
  118   EXPECT_TRUE(APSInt::compareValues(S(7), S(7).trunc(32)) == 0);
  118   EXPECT_TRUE(APSInt::compareValues(S(7), S(7).trunc(32)) == 0);
  119   EXPECT_TRUE(APSInt::compareValues(S(-7), S(8).trunc(32)) < 0);
  119   EXPECT_TRUE(APSInt::compareValues(S(-7), S(8).trunc(32)) < 0);
  120   EXPECT_TRUE(APSInt::compareValues(S(8), S(-7).trunc(32)) > 0);
  120   EXPECT_TRUE(APSInt::compareValues(S(8), S(-7).trunc(32)) > 0);
  121   EXPECT_TRUE(APSInt::compareValues(S(-7), S(-7).trunc(32)) == 0);
  121   EXPECT_TRUE(APSInt::compareValues(S(-7), S(-7).trunc(32)) == 0);
  122   EXPECT_TRUE(APSInt::compareValues(S(-7), S(-8).trunc(32)) > 0);
  122   EXPECT_TRUE(APSInt::compareValues(S(-7), S(-8).trunc(32)) > 0);
  123   EXPECT_TRUE(APSInt::compareValues(S(-8), S(-7).trunc(32)) < 0);
  123   EXPECT_TRUE(APSInt::compareValues(S(-8), S(-7).trunc(32)) < 0);
  124   EXPECT_TRUE(APSInt::compareValues(S(-7), S(-7).trunc(32)) == 0);
  124   EXPECT_TRUE(APSInt::compareValues(S(-7), S(-7).trunc(32)) == 0);
  135   EXPECT_TRUE(APSInt::compareValues(U(7).trunc(32), S(8)) < 0);
  136   EXPECT_TRUE(APSInt::compareValues(U(8).trunc(32), S(7)) > 0);
  137   EXPECT_TRUE(APSInt::compareValues(U(7).trunc(32), S(7)) == 0);
  138   EXPECT_TRUE(APSInt::compareValues(U(8).trunc(32), S(-7)) > 0);
  139   EXPECT_TRUE(APSInt::compareValues(U(7), S(8).trunc(32)) < 0);
  140   EXPECT_TRUE(APSInt::compareValues(U(8), S(7).trunc(32)) > 0);
  141   EXPECT_TRUE(APSInt::compareValues(U(7), S(7).trunc(32)) == 0);
  142   EXPECT_TRUE(APSInt::compareValues(U(8), S(-7).trunc(32)) > 0);