From: Luo Xionghu <[email protected]> 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 <[email protected]> --- 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 _______________________________________________ Beignet mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/beignet
