File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 1
- ! Test that -mframe-pointer can accept only specific values and when given an invalid value, check it raises an error.
1
+ ! REQUIRES: x86-registered-target
2
2
3
- ! RUN: %flang -O1 -emit-llvm -S -o - %s 2>&1| FileCheck %s --check-prefix=CHECK-NOFASTMATH
4
- ! RUN: %flang -Ofast -emit-llvm -S -o - %s 2>&1| FileCheck %s --check-prefix=CHECK-OFAST
5
- ! RUN: %flang -O1 -ffast-math -emit-llvm -S -o - %s 2>&1| FileCheck %s --check-prefix=CHECK-FFAST-MATH
3
+ ! RUN: %flang --target=x86_64 - O1 -emit-llvm -S -o - %s 2>&1| FileCheck %s --check-prefix=CHECK-NOFASTMATH
4
+ ! RUN: %flang --target=x86_64 - Ofast -emit-llvm -S -o - %s 2>&1| FileCheck %s --check-prefix=CHECK-OFAST
5
+ ! RUN: %flang --target=x86_64 - O1 -ffast-math -emit-llvm -S -o - %s 2>&1| FileCheck %s --check-prefix=CHECK-FFAST-MATH
6
6
7
7
subroutine func
8
8
end subroutine func
9
9
10
10
! CHECK-NOFASTMATH-LABEL: define void @func_() local_unnamed_addr
11
11
! CHECK-NOFASTMATH-SAME: #[[ATTRS:[0-9]+]]
12
- ! CHECK-NOFASTMATH: attributes #[[ATTRS]] = { mustprogress nofree norecurse nosync nounwind willreturn memory(none) }
13
- !
12
+ ! CHECK-NOT fp-math"=
13
+
14
14
! CHECK-OFAST-LABEL: define void @func_() local_unnamed_addr
15
15
! CHECK-OFAST-SAME: #[[ATTRS:[0-9]+]]
16
- ! CHECK-OFAST: attributes #[[ATTRS]] = { mustprogress nofree norecurse nosync nounwind willreturn memory(none) "approx-func-fp-math"="true" "no-infs-fp-math"="true" "no-nans-fp-math"="true" "no-signed-zeros-fp-math"="true" "unsafe-fp-math"="true" }
16
+ ! CHECK-OFAST: attributes #[[ATTRS]] = { {{.*}} "approx-func-fp-math"="true" {{.*}} "no-infs-fp-math"="true" {{.*}} "no-nans-fp-math"="true" {{.*}} "no-signed-zeros-fp-math"="true" {{.*}} "unsafe-fp-math"="true"{{.*}} }
17
17
18
18
! CHECK-FFAST-MATH-LABEL: define void @func_() local_unnamed_addr
19
19
! CHECK-FFAST-MATH-SAME: #[[ATTRS:[0-9]+]]
20
- ! CHECK-FFAST-MATH: attributes #[[ATTRS]] = { mustprogress nofree norecurse nosync nounwind willreturn memory(none) "approx-func-fp-math"="true" "no-infs-fp-math"="true" "no-nans-fp-math"="true" "no-signed-zeros-fp-math"="true" "unsafe-fp-math"="true" }
20
+ ! CHECK-FFAST-MATH: attributes #[[ATTRS]] = { {{.*}} "approx-func-fp-math"="true" {{.*}} "no-infs-fp-math"="true" {{.*}} "no-nans-fp-math"="true" {{.*}} "no-signed-zeros-fp-math"="true" {{.*}} "unsafe-fp-math"="true"{{.*}} }
You can’t perform that action at this time.
0 commit comments