Skip to content

Commit

Permalink
Remove obsolete XFAIL for a test that used to sometimes miscompile under
Browse files Browse the repository at this point in the history
FreeBSD with gcc 4.2.1, a long time ago (see r113824).  Noticed by Pete
Cooper.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@276730 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
DimitryAndric committed Jul 26, 2016
1 parent e37fa0b commit b98adc8
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions unittests/ADT/APIntTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,6 @@ TEST(APIntTest, i128_NegativeCount) {
EXPECT_EQ(-1, Minus1.getSExtValue());
}

// XFAIL this test on FreeBSD where the system gcc-4.2.1 seems to miscompile it.
#if defined(__llvm__) || !defined(__FreeBSD__)

TEST(APIntTest, i33_Count) {
APInt i33minus2(33, static_cast<uint64_t>(-2), true);
EXPECT_EQ(0u, i33minus2.countLeadingZeros());
Expand All @@ -61,8 +58,6 @@ TEST(APIntTest, i33_Count) {
EXPECT_EQ(((uint64_t)-2)&((1ull<<33) -1), i33minus2.getZExtValue());
}

#endif

TEST(APIntTest, i65_Count) {
APInt i65(65, 0, true);
EXPECT_EQ(65u, i65.countLeadingZeros());
Expand Down

0 comments on commit b98adc8

Please sign in to comment.