[Beignet] [PATCH v3] disable overflow utest test before llvm-3.5

xionghu.luo at intel.com xionghu.luo at intel.com
Sun Dec 14 23:59:30 PST 2014


From: Luo Xionghu <xionghu.luo at intel.com>

the overflow intrinsics are introduced since llvm-3.5.

v2: no need to exclude bswap test since llvm-3.3 supports it.

v3: disable the overflow utest in cmake instead of code.

Signed-off-by: Luo Xionghu <xionghu.luo at intel.com>
---
 utests/CMakeLists.txt |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/utests/CMakeLists.txt b/utests/CMakeLists.txt
index 05f1fcf..5b29c0b 100644
--- a/utests/CMakeLists.txt
+++ b/utests/CMakeLists.txt
@@ -104,7 +104,6 @@ set (utests_sources
   compiler_write_only.cpp
   compiler_write_only_shorts.cpp
   compiler_switch.cpp
-  compiler_overflow.cpp
   compiler_bswap.cpp
   compiler_math.cpp
   compiler_atomic_functions.cpp
@@ -203,6 +202,12 @@ set (utests_sources
   utest_file_map.cpp
   utest_helper.cpp)
 
+if (LLVM_VERSION_NODOT VERSION_GREATER 34)
+  SET(utests_sources
+      ${utests_sources}
+      compiler_overflow.cpp)
+endif (LLVM_VERSION_NODOT VERSION_GREATER 34)
+
 if (X11_FOUND)
   SET(utests_sources
       ${utests_sources}
-- 
1.7.9.5



More information about the Beignet mailing list