]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
Disable part of unit test on FreeBSD 10
authorMatthew Barr <matthew.barr@intel.com>
Wed, 17 May 2017 03:48:13 +0000 (13:48 +1000)
committerMatthew Barr <matthew.barr@intel.com>
Tue, 30 May 2017 04:00:45 +0000 (14:00 +1000)
unit/internal/simd_utils.cpp

index d3e34f5205127344f9c1370d84b5940d8a475b1b..623c2c998c30cd009c957b0275fbd4fbca4ba3e6 100644 (file)
@@ -600,7 +600,7 @@ TYPED_TEST(SimdUtilsTest, lshift64) {
         TypeParam simd;
         u64a qword[sizeof(TypeParam) / 8];
     } c;
-    cout << "non-const for size " << sizeof(a) << '\n';
+
     for (unsigned s = 0; s < 64; s++) {
         c.simd = simd_lshift64(a, s);
 
@@ -610,10 +610,12 @@ TYPED_TEST(SimdUtilsTest, lshift64) {
         }
     }
 
+    /* Clang 3.4 on FreeBSD 10 crashes on the following - disable for now */
+#if !(defined(__FreeBSD__) && defined(__clang__) && __clang_major__ == 3)
+
     // test immediates
     u64a expected;
 
-    cout << "imm for size " << sizeof(a) << '\n';
     c.simd = simd_lshift64(a, 1);
     expected = exp_val << 1;
     for (size_t i = 0; i < sizeof(c) / 8; i++) {
@@ -637,9 +639,9 @@ TYPED_TEST(SimdUtilsTest, lshift64) {
     for (size_t i = 0; i < sizeof(c) / 8; i++) {
         EXPECT_EQ(expected, c.qword[i]);
     }
+#endif
 }
 
-
 TEST(SimdUtilsTest, alignment) {
     ASSERT_EQ(16, alignof(m128));
     ASSERT_EQ(32, alignof(m256));