[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:
Florian Hahn 2021-03-29 17:27:01 +01:00
parent bf8cbfa65f
commit 9320ac9b49
No known key found for this signature in database
GPG Key ID: 61D7554B5CECDC0D
1 changed files with 1 additions and 0 deletions

View File

@ -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'.