From: Tyler Nowicki Date: Mon, 10 Aug 2015 22:17:40 +0000 (+0000) Subject: Make frontend floating-point commutivity test X86 specific to avoid cost-model relate... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7b2154cb6232a9d289a95ce79e70c590fee12d63;p=clang Make frontend floating-point commutivity test X86 specific to avoid cost-model related problems on arm-thumb and hexagon. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@244517 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Frontend/optimization-remark-options.c b/test/Frontend/optimization-remark-options.c index 2b22099c10..ef36ac505f 100644 --- a/test/Frontend/optimization-remark-options.c +++ b/test/Frontend/optimization-remark-options.c @@ -1,4 +1,4 @@ -// RUN: %clang -O1 -fvectorize -Rpass-analysis=loop-vectorize -emit-llvm -S %s -o - 2>&1 | FileCheck %s +// 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: vectorization requires changes in the order of operations, however IEEE 754 floating-point operations are not commutative; allow commutativity by specifying '#pragma clang loop vectorize(enable)' before the loop or by providing the compiler option '-ffast-math'