Skip to content

Commit a889600

Browse files
jeanPeriertblah
andauthored
Apply suggestions from code review
Co-authored-by: Tom Eccles <[email protected]>
1 parent 5f4cb72 commit a889600

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

flang/test/Lower/Intrinsics/fraction.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ subroutine fraction_16(res16, x16)
3030
integer, parameter :: kind16 = merge(16, 4, selected_real_kind(p=33).eq.16)
3131
real(kind = kind16) :: x16, res16
3232
res16 = fraction(x16)
33-
! CHECK-KIND16: %[[temp2:.*]] = fir.load %{{.*}} : !fir.ref<128>
34-
! CHECK-KIND16: fir.call @_FortranAFraction16(%[[temp2:.*]]) {{.*}}: (128) -> 128
33+
! CHECK-KIND16: %[[temp2:.*]] = fir.load %{{.*}} : !fir.ref<f128>
34+
! CHECK-KIND16: fir.call @_FortranAFraction16(%[[temp2:.*]]) {{.*}}: (f128) -> f128
3535
end subroutine

flang/test/Lower/OpenMP/parallel-firstprivate-clause-scalar.f90

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -157,11 +157,11 @@ subroutine firstprivate_real10(arg1)
157157
end subroutine
158158

159159
!CHECK-KIND16-LABEL: func @_QPfirstprivate_real16(
160-
!CHECK-KIND16-SAME: %[[ARG1:.*]]: !fir.ref<f80>{{.*}}) {
161-
!CHECK-KIND16: %[[ARG1_DECL:.*]]:2 = hlfir.declare %[[ARG1]] dummy_scope %{{[0-9]+}} {uniq_name = "_QFfirstprivate_real16Earg1"} : (!fir.ref<f80>, !fir.dscope) -> (!fir.ref<f80>, !fir.ref<f80>)
160+
!CHECK-KIND16-SAME: %[[ARG1:.*]]: !fir.ref<f128>{{.*}}) {
161+
!CHECK-KIND16: %[[ARG1_DECL:.*]]:2 = hlfir.declare %[[ARG1]] dummy_scope %{{[0-9]+}} {uniq_name = "_QFfirstprivate_real16Earg1"} : (!fir.ref<f128>, !fir.dscope) -> (!fir.ref<f128>, !fir.ref<f128>)
162162
!CHECK-KIND16: omp.parallel private({{.*firstprivate.*}} {{.*}}#0 -> %[[ARG1_PVT:.*]] : {{.*}}) {
163-
!CHECK-KIND16: %[[ARG1_PVT_DECL:.*]]:2 = hlfir.declare %[[ARG1_PVT]] {uniq_name = "_QFfirstprivate_real16Earg1"} : (!fir.ref<f80>) -> (!fir.ref<f80>, !fir.ref<f80>)
164-
!CHECK-KIND16: fir.call @_QPqux16(%[[ARG1_PVT_DECL]]#1) {{.*}} : (!fir.ref<f80>) -> ()
163+
!CHECK-KIND16: %[[ARG1_PVT_DECL:.*]]:2 = hlfir.declare %[[ARG1_PVT]] {uniq_name = "_QFfirstprivate_real16Earg1"} : (!fir.ref<f128>) -> (!fir.ref<f128>, !fir.ref<f128>)
164+
!CHECK-KIND16: fir.call @_QPqux16(%[[ARG1_PVT_DECL]]#1) {{.*}} : (!fir.ref<f128>) -> ()
165165
!CHECK-KIND16: omp.terminator
166166
!CHECK-KIND16: }
167167
subroutine firstprivate_real16(arg1)

flang/test/Lower/basic-function.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ function cplxfct5()
145145

146146
function cplxfct6()
147147
integer, parameter :: kind16 = merge(16, 4, selected_real_kind(p=33).eq.16)
148-
complex(kind16) :: cplxfct5
148+
complex(kind16) :: cplxfct6
149149
end
150150
! CHECK-KIND16-LABEL: func @_QPcplxfct6() -> complex<f128>
151151
! CHECK-KIND16: return %{{.*}} : complex<f128>

flang/test/Lower/math-lowering/sign.f90

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
! RUN: %flang_fc1 -emit-hlfir -o - -mllvm -math-runtime=fast %s \
2-
! RUN: | FileCheck %s --check-prefixes=ALL,FAST%if target=x86_64{{.*}} %{,ALL-KIND10,FAST-KIND10%}%if flang-supports-f128-math %{ALL-KIND16,FAST-KIND16%}
2+
! RUN: | FileCheck %s --check-prefixes=ALL,FAST%if target=x86_64{{.*}} %{,ALL-KIND10,FAST-KIND10%}%if flang-supports-f128-math %{,ALL-KIND16,FAST-KIND16%}
33

44
! RUN: %flang_fc1 -emit-hlfir -o - -mllvm -math-runtime=relaxed %s \
5-
! RUN: | FileCheck %s --check-prefixes=ALL,RELAXED%if target=x86_64{{.*}} %{,ALL-KIND10,RELAXED-KIND10%}%if flang-supports-f128-math %{ALL-KIND16,RELAXED-KIND16%}
5+
! RUN: | FileCheck %s --check-prefixes=ALL,RELAXED%if target=x86_64{{.*}} %{,ALL-KIND10,RELAXED-KIND10%}%if flang-supports-f128-math %{,ALL-KIND16,RELAXED-KIND16%}
66

77
! RUN: %flang_fc1 -emit-hlfir -o - -mllvm -math-runtime=precise %s \
8-
! RUN: | FileCheck %s --check-prefixes=ALL,PRECISE%if target=x86_64{{.*}} %{,ALL-KIND10,PRECISE-KIND10%}%if flang-supports-f128-math %{ALL-KIND16,PRECISE-KIND16%}
8+
! RUN: | FileCheck %s --check-prefixes=ALL,PRECISE%if target=x86_64{{.*}} %{,ALL-KIND10,PRECISE-KIND10%}%if flang-supports-f128-math %{,ALL-KIND16,PRECISE-KIND16%}
99

1010
function test_real4(x, y)
1111
real :: x, y, test_real4

flang/test/Lower/real-descriptors.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
! RUN: bbc %s -o - | tco | FileCheck %s --check-prefixes=CHECK%if target=x86_64{{.*}} %{,CHECK-KIND10%}%if flang-supports-f128-math %{,CHECK-KIND16%}
22

3-
! CHECK-LABEL: test_reals
3+
! CHECK-LABEL: define void {{.*}}test_reals
44
subroutine test_reals(x2, x3, x4, x8, c2, c3, c4, c8)
55
character(10) :: in = 'NaN NaN'
66

0 commit comments

Comments
 (0)