1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 10:42:39 +01:00

BranchProbabilityTest.cpp: Suppress warnings. [-Wsign-compare]

llvm-svn: 255940
This commit is contained in:
NAKAMURA Takumi 2015-12-18 00:18:18 +00:00
parent 579bb6c9c6
commit aa1b085a4c

View File

@ -326,14 +326,14 @@ TEST(BranchProbabilityTest, NormalizeProbabilities) {
{
SmallVector<BranchProbability, 2> Probs{{0, 1}, UnknownProb};
BranchProbability::normalizeProbabilities(Probs.begin(), Probs.end());
EXPECT_EQ(0, Probs[0].getNumerator());
EXPECT_EQ(0U, Probs[0].getNumerator());
EXPECT_EQ(BranchProbability::getDenominator(), Probs[1].getNumerator());
}
{
SmallVector<BranchProbability, 2> Probs{{1, 1}, UnknownProb};
BranchProbability::normalizeProbabilities(Probs.begin(), Probs.end());
EXPECT_EQ(BranchProbability::getDenominator(), Probs[0].getNumerator());
EXPECT_EQ(0, Probs[1].getNumerator());
EXPECT_EQ(0U, Probs[1].getNumerator());
}
{
SmallVector<BranchProbability, 2> Probs{{1, 2}, UnknownProb};
@ -351,7 +351,7 @@ TEST(BranchProbabilityTest, NormalizeProbabilities) {
Probs[1].getNumerator());
EXPECT_EQ(BranchProbability::getDenominator() / 3 + 1,
Probs[2].getNumerator());
EXPECT_EQ(0, Probs[3].getNumerator());
EXPECT_EQ(0U, Probs[3].getNumerator());
}
}