[test-suite] r312065 - [test-suite] Run x86 simd bicode tests only if avx2 present
Alina Sbirlea via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 29 16:14:04 PDT 2017
Author: asbirlea
Date: Tue Aug 29 16:14:04 2017
New Revision: 312065
URL: http://llvm.org/viewvc/llvm-project?rev=312065&view=rev
Log:
[test-suite] Run x86 simd bicode tests only if avx2 present
Modified:
test-suite/trunk/Bitcode/simd_ops/simd_ops.cpp
Modified: test-suite/trunk/Bitcode/simd_ops/simd_ops.cpp
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/Bitcode/simd_ops/simd_ops.cpp?rev=312065&r1=312064&r2=312065&view=diff
==============================================================================
--- test-suite/trunk/Bitcode/simd_ops/simd_ops.cpp (original)
+++ test-suite/trunk/Bitcode/simd_ops/simd_ops.cpp Tue Aug 29 16:14:04 2017
@@ -59,7 +59,8 @@ int main(int argc, char **argv) {
return err_code;
#endif
#if defined(__i386__) || defined(__x86_64__)
- if (!__builtin_cpu_supports("avx")) {
+ if (!__builtin_cpu_supports("avx") ||
+ !__builtin_cpu_supports("avx2")) {
return err_code;
}
#endif
More information about the llvm-commits
mailing list