forked from OSchip/llvm-project
[Clang] Only run test when X86 backend is built.
After c773d0f973
the remark is only emitted if the loop is profitable
to vectorize, but cannot be vectorized. Hence, it depends on
X86-specific cost-modeling.
This commit is contained in:
parent
bf8cbfa65f
commit
9320ac9b49
|
@ -1,3 +1,4 @@
|
|||
// REQUIRES: x86-registered-target
|
||||
// RUN: %clang -O1 -fvectorize -target x86_64-unknown-unknown -Rpass-analysis=loop-vectorize -emit-llvm -S %s -o - 2>&1 | FileCheck %s
|
||||
|
||||
// CHECK: {{.*}}:9:11: remark: loop not vectorized: cannot prove it is safe to reorder floating-point operations; allow reordering by specifying '#pragma clang loop vectorize(enable)' before the loop or by providing the compiler option '-ffast-math'.
|
||||
|
|
Loading…
Reference in New Issue