Skip to content

Commit d0a4741

Browse files
committed
Fix LIT test func-attr.c added by https://reviews.llvm.org/D135097.
Differential Revision: https://reviews.llvm.org/D136084
1 parent 685b212 commit d0a4741

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

clang/test/CodeGen/func-attr.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
// RUN: %clang -c -ffast-math -emit-llvm -S -o - %s \
2-
// RUN: | FileCheck %s
1+
// RUN: %clang -c -target x86_64 -ffast-math \
2+
// RUN: -emit-llvm -S -o - %s | FileCheck %s
33

4-
// RUN: %clang -c -funsafe-math-optimizations -emit-llvm -S -o - %s \
5-
// RUN: | FileCheck %s
4+
// RUN: %clang -c -target x86_64 -funsafe-math-optimizations \
5+
// RUN: -emit-llvm -S -o - %s | FileCheck %s
66

77
float foo(float a, float b) {
88
return a+b;
99
}
1010

11-
// CHECK: define{{.*}} float @foo(float noundef %{{.*}}, float noundef %{{.*}}) [[FAST_ATTRS:#[0-9]+]]
11+
// CHECK: define{{.*}} float @foo(float noundef %{{.*}}, float noundef %{{.*}}){{.*}} [[FAST_ATTRS:#[0-9]+]]
1212
// CHECK: attributes [[FAST_ATTRS]] = { {{.*}} "approx-func-fp-math"="true" {{.*}} "no-signed-zeros-fp-math"="true" "no-trapping-math"="true" {{.*}} "unsafe-fp-math"="true"

0 commit comments

Comments
 (0)