Skip to content

Commit 7a43c02

Browse files
author
klensy
committed
fix typos moved from llvm#91854
1 parent 707e2b8 commit 7a43c02

17 files changed

+22
-22
lines changed

flang/test/Driver/dump-pft.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
! PFT: 1 Subroutine test_routine: subroutine test_routine(a, b, n)
66
! PFT-NEXT: 1 EndSubroutineStmt: end subroutine
77
! PRF-NEXT: End Subroutine test_routine
8-
! PFT-NO: Program -> ProgramUnit -> SubroutineSubprogram
8+
! PFT-NOT: Program -> ProgramUnit -> SubroutineSubprogram
99

1010
! PARSE_TREE: Program -> ProgramUnit -> SubroutineSubprogram
1111
! PARSE_TREE-NEXT: | SubroutineStmt
@@ -17,7 +17,7 @@
1717
! PARSE_TREE-NEXT: | | ImplicitPart ->
1818
! PARSE_TREE-NEXT: | ExecutionPart -> Block
1919
! PARSE_TREE-NEXT: | EndSubroutineStmt ->
20-
! PARSE_TREE-NO: Subroutine test_routine: subroutine test_routine(a, b, n)
20+
! PARSE_TREE-NOT: Subroutine test_routine: subroutine test_routine(a, b, n)
2121

2222
subroutine test_routine(a, b, n)
2323
end subroutine

flang/test/Lower/HLFIR/maxloc.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ subroutine maxloc5(s)
8686
! CHECK-NEXT: hlfir.assign %[[EXPR]] to %[[OUT]]#0 : !hlfir.expr<2xi32>, !fir.ref<!fir.array<2xi32>>
8787
! CHECK-NEXT: hlfir.destroy %[[EXPR]] : !hlfir.expr<2xi32>
8888
! CHECK-NEXT: return
89-
! CHECK-nEXT: }
89+
! CHECK-NEXT: }
9090

9191
! back argument as .true.
9292
subroutine maxloc_back(a, s)

flang/test/Lower/HLFIR/maxval.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ subroutine maxval5(s)
8383
! CHECK-NEXT: hlfir.assign %[[EXPR]] to %[[OUT]]#0 : !hlfir.expr<2xi32>, !fir.ref<!fir.array<2xi32>>
8484
! CHECK-NEXT: hlfir.destroy %[[EXPR]] : !hlfir.expr<2xi32>
8585
! CHECK-NEXT: return
86-
! CHECK-nEXT: }
86+
! CHECK-NEXT: }
8787

8888
subroutine maxval6(a, s, d)
8989
integer, pointer :: d

flang/test/Lower/HLFIR/minloc.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ subroutine minloc5(s)
8686
! CHECK-NEXT: hlfir.assign %[[EXPR]] to %[[OUT]]#0 : !hlfir.expr<2xi32>, !fir.ref<!fir.array<2xi32>>
8787
! CHECK-NEXT: hlfir.destroy %[[EXPR]] : !hlfir.expr<2xi32>
8888
! CHECK-NEXT: return
89-
! CHECK-nEXT: }
89+
! CHECK-NEXT: }
9090

9191
! back argument as .true.
9292
subroutine minloc_back(a, s)

flang/test/Lower/HLFIR/minval.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ subroutine minval5(s)
8383
! CHECK-NEXT: hlfir.assign %[[EXPR]] to %[[OUT]]#0 : !hlfir.expr<2xi32>, !fir.ref<!fir.array<2xi32>>
8484
! CHECK-NEXT: hlfir.destroy %[[EXPR]] : !hlfir.expr<2xi32>
8585
! CHECK-NEXT: return
86-
! CHECK-nEXT: }
86+
! CHECK-NEXT: }
8787

8888
subroutine minval6(a, s, d)
8989
integer, pointer :: d

flang/test/Lower/HLFIR/sum.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ subroutine sum5(s)
8383
! CHECK-NEXT: hlfir.assign %[[EXPR]] to %[[OUT]]#0 : !hlfir.expr<2xi32>, !fir.ref<!fir.array<2xi32>>
8484
! CHECK-NEXT: hlfir.destroy %[[EXPR]] : !hlfir.expr<2xi32>
8585
! CHECK-NEXT: return
86-
! CHECK-nEXT: }
86+
! CHECK-NEXT: }
8787

8888
subroutine sum6(a, s, d)
8989
integer, pointer :: d

flang/test/Lower/Intrinsics/adjustl.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s
22

3-
! CHECK-LABLE: adjustl_test
3+
! CHECK-LABEL: adjustl_test
44
subroutine adjustl_test
55
character(len=12) :: adjust_str = ' 0123456789'
66
! CHECK: %[[strBox:.*]] = fir.alloca !fir.box<!fir.heap<!fir.char<1,?>>>

flang/test/Lower/Intrinsics/adjustr.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s
22

3-
! CHECK-LABLE: adjustr_test
3+
! CHECK-LABEL: adjustr_test
44
subroutine adjustr_test
55
character(len=12) :: adjust_str = '0123456789 '
66
! CHECK: %[[strBox:.*]] = fir.alloca !fir.box<!fir.heap<!fir.char<1,?>>>

flang/test/Lower/Intrinsics/any.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ subroutine any_test2(mask, d, rslt)
2727
! CHECK: fir.call @_FortranAAnyDim(%[[a6:.*]], %[[a7:.*]], %[[a1:.*]], %{{.*}}, %{{.*}}) {{.*}}: (!fir.ref<!fir.box<none>>, !fir.box<none>, i32, !fir.ref<i8>, i32) -> ()
2828
! CHECK-DAG: %[[a10:.*]] = fir.load %[[a0:.*]] : !fir.ref<!fir.box<!fir.heap<!fir.array<?x!fir.logical<4>>>>>
2929
! CHECK-DAG: %[[a12:.*]] = fir.box_addr %[[a10:.*]] : (!fir.box<!fir.heap<!fir.array<?x!fir.logical<4>>>>) -> !fir.heap<!fir.array<?x!fir.logical<4>>>
30-
! CHECK-DAG fir.freemem %[[a12:.*]]
30+
! CHECK-DAG: fir.freemem %[[a12:.*]]
3131
end subroutine

flang/test/Lower/Intrinsics/parity.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ subroutine parity_test2(mask, d, rslt)
2828
! CHECK: fir.call @_FortranAParityDim(%[[a6:.*]], %[[a7:.*]], %[[a1:.*]], %{{.*}}, %{{.*}}) {{.*}}: (!fir.ref<!fir.box<none>>, !fir.box<none>, i32, !fir.ref<i8>, i32) -> ()
2929
! CHECK-DAG: %[[a10:.*]] = fir.load %[[a0:.*]] : !fir.ref<!fir.box<!fir.heap<!fir.array<?x!fir.logical<4>>>>>
3030
! CHECK-DAG: %[[a12:.*]] = fir.box_addr %[[a10:.*]] : (!fir.box<!fir.heap<!fir.array<?x!fir.logical<4>>>>) -> !fir.heap<!fir.array<?x!fir.logical<4>>>
31-
! CHECK-DAG fir.freemem %[[a12:.*]]
31+
! CHECK-DAG: fir.freemem %[[a12:.*]]
3232
end subroutine parity_test2

flang/test/Lower/Intrinsics/storage_size-2.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
! Test storage_size with characters
22
! RUN: bbc -emit-hlfir %s -o - | FileCheck %s
33

4-
! check-label: func.func @_QPtest_storage_size
4+
! CHECK-LABEL: func.func @_QPtest_storage_size
55
subroutine test_storage_size(n)
66
interface
77
function return_char(l)

flang/test/Lower/OpenMP/wsloop-reduction-array.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ program reduce
3434
! CHECK: fir.store %[[VAL_7]] to %[[ALLOC]] : !fir.ref<!fir.box<!fir.array<2xi32>>>
3535
! CHECK: omp.yield(%[[ALLOC]] : !fir.ref<!fir.box<!fir.array<2xi32>>>)
3636

37-
! CHECK-LABEL } combiner {
37+
! CHECK-LABEL: } combiner {
3838
! CHECK: ^bb0(%[[VAL_0:.*]]: !fir.ref<!fir.box<!fir.array<2xi32>>>, %[[VAL_1:.*]]: !fir.ref<!fir.box<!fir.array<2xi32>>>):
3939
! CHECK: %[[VAL_2:.*]] = fir.load %[[VAL_0]] : !fir.ref<!fir.box<!fir.array<2xi32>>>
4040
! CHECK: %[[VAL_3:.*]] = fir.load %[[VAL_1]] : !fir.ref<!fir.box<!fir.array<2xi32>>>
@@ -65,7 +65,7 @@ program reduce
6565
! CHECK: omp.yield
6666
! CHECK: }
6767

68-
! CHECK-LABEL func.func @_QQmain() attributes {fir.bindc_name = "reduce"} {
68+
! CHECK-LABEL: func.func @_QQmain() attributes {fir.bindc_name = "reduce"} {
6969
! CHECK: %[[VAL_0:.*]] = fir.address_of(@_QFEi) : !fir.ref<i32>
7070
! CHECK: %[[VAL_1:.*]]:2 = hlfir.declare %[[VAL_0]] {uniq_name = "_QFEi"} : (!fir.ref<i32>) -> (!fir.ref<i32>, !fir.ref<i32>)
7171
! CHECK: %[[VAL_2:.*]] = fir.address_of(@_QFEr) : !fir.ref<!fir.array<2xi32>>

flang/test/Lower/array.f90

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ subroutine s(i,j,k,ii,jj,kk,a1,a2,a3,a4,a5,a6,a7)
9696

9797
end subroutine s
9898

99-
! CHECK-LABEL range
99+
! CHECK-LABEL: range
100100
subroutine range()
101101
! Compile-time initalized arrays
102102
integer, dimension(10) :: a0
@@ -132,14 +132,14 @@ end subroutine range
132132
! c0 array constructor
133133
! CHECK: fir.global internal @_QQro.2x3xz4.{{.*}}(dense<{{\[}}[(1.000000e+00,1.500000e+00), (2.000000e+00,2.500000e+00)], [(3.000000e+00,3.500000e+00), (4.000000e+00,4.500000e+00)], [(5.000000e+00,5.500000e+00), (6.000000e+00,6.500000e+00)]]> : tensor<3x2xcomplex<f32>>) constant : !fir.array<2x3xcomplex<f32>>
134134

135-
! CHECK-LABEL rangeGlobal
135+
! CHECK-LABEL: rangeGlobal
136136
subroutine rangeGlobal()
137137
! CHECK: fir.global internal @_QFrangeglobal{{.*}}(dense<[1, 1, 2, 2, 3, 3]> : tensor<6xi32>) : !fir.array<6xi32>
138138
integer, dimension(6) :: a0 = (/ 1, 1, 2, 2, 3, 3 /)
139139

140140
end subroutine rangeGlobal
141141

142-
! CHECK-LABEL hugeGlobal
142+
! CHECK-LABEL: hugeGlobal
143143
subroutine hugeGlobal()
144144
integer, parameter :: D = 500
145145
integer, dimension(D, D) :: a

flang/test/Lower/control-flow.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s
44

55
! check the lowering of a RETURN in the body of a SUBROUTINE
6-
! CHECK-LABEL one
6+
! CHECK-LABEL: one
77
subroutine one(a,b,c)
88
d = 1.0
99
if (a .ne. b) then

flang/test/Lower/pause-statement.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
! RUN: bbc %s -emit-fir --canonicalize -o - | FileCheck %s
22

3-
! CHECK-LABEL pause_test
3+
! CHECK-LABEL: pause_test
44
subroutine pause_test()
55
! CHECK: fir.call @_Fortran{{.*}}PauseStatement()
66
! CHECK-NEXT: return

flang/test/Lower/polymorphic.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ subroutine call_fct()
151151
! CHECK-LABEL: func.func @_QMpolymorphic_testPtest_fct_ret_class() -> !fir.class<!fir.ptr<!fir.type<_QMpolymorphic_testTp1{a:i32,b:i32}>>>
152152
! CHECK: return %{{.*}} : !fir.class<!fir.ptr<!fir.type<_QMpolymorphic_testTp1{a:i32,b:i32}>>>
153153

154-
! CHECK-lABEL: func.func @_QMpolymorphic_testPcall_fct()
154+
! CHECK-LABEL: func.func @_QMpolymorphic_testPcall_fct()
155155
! CHECK: %[[RESULT:.*]] = fir.alloca !fir.class<!fir.ptr<!fir.type<_QMpolymorphic_testTp1{a:i32,b:i32}>>> {bindc_name = ".result"}
156156
! CHECK: %[[CALL_RES:.*]] = fir.call @_QMpolymorphic_testPtest_fct_ret_class() {{.*}}: () -> !fir.class<!fir.ptr<!fir.type<_QMpolymorphic_testTp1{a:i32,b:i32}>>>
157157
! CHECK: fir.save_result %[[CALL_RES]] to %[[RESULT]] : !fir.class<!fir.ptr<!fir.type<_QMpolymorphic_testTp1{a:i32,b:i32}>>>, !fir.ref<!fir.class<!fir.ptr<!fir.type<_QMpolymorphic_testTp1{a:i32,b:i32}>>>>

flang/test/Transforms/simplifyintrinsics.fir

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ module attributes {fir.defaultkind = "a1c4d8i4l4r4", fir.kindmap = "", llvm.targ
428428
}
429429

430430
// Just check that SOMETHING is being output.
431-
// CHECK-LABEL @sum_dim() {
431+
// CHECK-LABEL: @sum_dim() {
432432
// CHECK: return
433433

434434

@@ -459,7 +459,7 @@ module attributes {fir.defaultkind = "a1c4d8i4l4r4", fir.kindmap = "", llvm.targ
459459
}
460460

461461
// Just check that SOMETHING is being output.
462-
// CHECK-LABEL @sum_1d_unknown() {
462+
// CHECK-LABEL: @sum_1d_unknown(
463463
// CHECK: return
464464

465465
// -----

0 commit comments

Comments
 (0)