summaryrefslogtreecommitdiff
path: root/utests
diff options
context:
space:
mode:
authorLuo Xionghu <xionghu.luo@intel.com>2014-12-15 15:59:30 +0800
committerZhigang Gong <zhigang.gong@intel.com>2014-12-16 16:06:17 +0800
commitc69d495964304130152fe97c931e27f4516cf688 (patch)
tree98493e926823db50dbaeede6a46e449eab0301bb /utests
parent293777b4b1fe6241b0a5ccd3467a28c699f1ae80 (diff)
disable overflow utest test before llvm-3.5
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@intel.com> Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
Diffstat (limited to 'utests')
-rw-r--r--utests/CMakeLists.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/utests/CMakeLists.txt b/utests/CMakeLists.txt
index 05f1fcfd..5b29c0b5 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}