File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 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
3
3
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
6
6
7
7
float foo (float a , float b ) {
8
8
return a + b ;
9
9
}
10
10
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]+]]
12
12
// CHECK: attributes [[FAST_ATTRS]] = { {{.*}} "approx-func-fp-math"="true" {{.*}} "no-signed-zeros-fp-math"="true" "no-trapping-math"="true" {{.*}} "unsafe-fp-math"="true"
You can’t perform that action at this time.
0 commit comments