Home
last modified time | relevance | path

Searched refs:compareValues (Results 1 – 3 of 3) sorted by relevance

/external/llvm/unittests/ADT/
DAPSIntTest.cpp81 TEST(APSIntTest, compareValues) { in TEST() argument
86 EXPECT_TRUE(APSInt::compareValues(S(7), S(8)) < 0); in TEST()
87 EXPECT_TRUE(APSInt::compareValues(S(8), S(7)) > 0); in TEST()
88 EXPECT_TRUE(APSInt::compareValues(S(7), S(7)) == 0); in TEST()
89 EXPECT_TRUE(APSInt::compareValues(S(-7), S(8)) < 0); in TEST()
90 EXPECT_TRUE(APSInt::compareValues(S(8), S(-7)) > 0); in TEST()
91 EXPECT_TRUE(APSInt::compareValues(S(-7), S(-7)) == 0); in TEST()
92 EXPECT_TRUE(APSInt::compareValues(S(-7), S(-8)) > 0); in TEST()
93 EXPECT_TRUE(APSInt::compareValues(S(-8), S(-7)) < 0); in TEST()
94 EXPECT_TRUE(APSInt::compareValues(S(-7), S(-7)) == 0); in TEST()
[all …]
/external/llvm/include/llvm/ADT/
DAPSInt.h157 return compareValues(*this, get(RHS)) == 0;
160 return compareValues(*this, get(RHS)) != 0;
163 return compareValues(*this, get(RHS)) <= 0;
166 return compareValues(*this, get(RHS)) >= 0;
169 return compareValues(*this, get(RHS)) < 0;
172 return compareValues(*this, get(RHS)) > 0;
291 return !compareValues(I1, I2); in isSameValue()
295 static int compareValues(const APSInt &I1, const APSInt &I2) { in compareValues() function
301 return compareValues(I1, I2.extend(I1.getBitWidth())); in compareValues()
303 return compareValues(I1.extend(I2.getBitWidth()), I2); in compareValues()
/external/clang/lib/Sema/
DSemaOpenMP.cpp4351 if (llvm::APSInt::compareValues(Hint, Pair.second) != 0) { in ActOnOpenMPCriticalDirective()