summaryrefslogtreecommitdiff
path: root/unittests
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2010-09-14 00:51:58 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2010-09-14 00:51:58 +0000
commitbc9c36bb7c436d7691d12d51d2b67f309b25df4f (patch)
treecca34c93f584364fb1a0f7d4fa06b144d35eff1a /unittests
parent7abdb22e52e2122cb04479a1129dc68916dece4c (diff)
downloadllvm-bc9c36bb7c436d7691d12d51d2b67f309b25df4f.tar.gz
llvm-bc9c36bb7c436d7691d12d51d2b67f309b25df4f.tar.bz2
llvm-bc9c36bb7c436d7691d12d51d2b67f309b25df4f.tar.xz
Attempt to unbreak the FreeBSD buildbot by XFAILing a unit test that seems to be
miscompiled by the system gcc-4.2.1 The test remains enabled for the second-stage test. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113824 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests')
-rw-r--r--unittests/ADT/APIntTest.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/unittests/ADT/APIntTest.cpp b/unittests/ADT/APIntTest.cpp
index 0cb79963f5..9c02739171 100644
--- a/unittests/ADT/APIntTest.cpp
+++ b/unittests/ADT/APIntTest.cpp
@@ -39,6 +39,9 @@ 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());
@@ -50,6 +53,8 @@ TEST(APIntTest, i33_Count) {
EXPECT_EQ(((uint64_t)-2)&((1ull<<33) -1), i33minus2.getZExtValue());
}
+#endif
+
TEST(APIntTest, i65_Count) {
APInt i65minus(65, 0, true);
i65minus.set(64);