Author: Zahira Ammarguellat Date: 2022-10-17T14:26:17-04:00 New Revision: d0a4741392a3df0fb4083e12bef0cef14af439e1
URL: https://github.com/llvm/llvm-project/commit/d0a4741392a3df0fb4083e12bef0cef14af439e1 DIFF: https://github.com/llvm/llvm-project/commit/d0a4741392a3df0fb4083e12bef0cef14af439e1.diff LOG: Fix LIT test func-attr.c added by https://reviews.llvm.org/D135097. Differential Revision: https://reviews.llvm.org/D136084 Added: Modified: clang/test/CodeGen/func-attr.c Removed: ################################################################################ diff --git a/clang/test/CodeGen/func-attr.c b/clang/test/CodeGen/func-attr.c index e7c60f2d7abff..74e24b5bfb060 100644 --- a/clang/test/CodeGen/func-attr.c +++ b/clang/test/CodeGen/func-attr.c @@ -1,12 +1,12 @@ -// RUN: %clang -c -ffast-math -emit-llvm -S -o - %s \ -// RUN: | FileCheck %s +// RUN: %clang -c -target x86_64 -ffast-math \ +// RUN: -emit-llvm -S -o - %s | FileCheck %s -// RUN: %clang -c -funsafe-math-optimizations -emit-llvm -S -o - %s \ -// RUN: | FileCheck %s +// RUN: %clang -c -target x86_64 -funsafe-math-optimizations \ +// RUN: -emit-llvm -S -o - %s | FileCheck %s float foo(float a, float b) { return a+b; } -// CHECK: define{{.*}} float @foo(float noundef %{{.*}}, float noundef %{{.*}}) [[FAST_ATTRS:#[0-9]+]] +// CHECK: define{{.*}} float @foo(float noundef %{{.*}}, float noundef %{{.*}}){{.*}} [[FAST_ATTRS:#[0-9]+]] // CHECK: attributes [[FAST_ATTRS]] = { {{.*}} "approx-func-fp-math"="true" {{.*}} "no-signed-zeros-fp-math"="true" "no-trapping-math"="true" {{.*}} "unsafe-fp-math"="true" _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits