Skip to content

Commit 0095d45

Browse files
committed
Flang lit test fixes
1 parent 3c19b59 commit 0095d45

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

flang/test/Transforms/DoConcurrent/basic_device.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ program do_concurrent_basic
6161

6262
! CHECK-NEXT: omp.loop_nest (%[[ARG0:.*]]) : index = (%[[LB]]) to (%[[UB]]) inclusive step (%[[STEP]]) {
6363
! CHECK-NEXT: %[[IV_IDX:.*]] = fir.convert %[[ARG0]] : (index) -> i32
64-
! CHECK-NEXT: fir.store %[[IV_IDX]] to %[[BINDING]]#1 : !fir.ref<i32>
64+
! CHECK-NEXT: fir.store %[[IV_IDX]] to %[[BINDING]]#0 : !fir.ref<i32>
6565
! CHECK-NEXT: %[[IV_VAL1:.*]] = fir.load %[[BINDING]]#0 : !fir.ref<i32>
6666
! CHECK-NEXT: %[[IV_VAL2:.*]] = fir.load %[[BINDING]]#0 : !fir.ref<i32>
6767
! CHECK-NEXT: %[[IV_VAL_I64:.*]] = fir.convert %[[IV_VAL2]] : (i32) -> i64

flang/test/Transforms/DoConcurrent/basic_host.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ program do_concurrent_basic
2929
! CHECK: omp.wsloop {
3030
! CHECK-NEXT: omp.loop_nest (%[[ARG0:.*]]) : index = (%[[LB]]) to (%[[UB]]) inclusive step (%[[STEP]]) {
3131
! CHECK-NEXT: %[[IV_IDX:.*]] = fir.convert %[[ARG0]] : (index) -> i32
32-
! CHECK-NEXT: fir.store %[[IV_IDX]] to %[[BINDING]]#1 : !fir.ref<i32>
32+
! CHECK-NEXT: fir.store %[[IV_IDX]] to %[[BINDING]]#0 : !fir.ref<i32>
3333
! CHECK-NEXT: %[[IV_VAL1:.*]] = fir.load %[[BINDING]]#0 : !fir.ref<i32>
3434
! CHECK-NEXT: %[[IV_VAL2:.*]] = fir.load %[[BINDING]]#0 : !fir.ref<i32>
3535
! CHECK-NEXT: %[[IV_VAL_I64:.*]] = fir.convert %[[IV_VAL2]] : (i32) -> i64

flang/test/Transforms/DoConcurrent/multiple_iteration_ranges.f90

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,13 +102,13 @@ program main
102102
! COMMON-SAME: step (%[[STEP_I]], %[[STEP_J]], %[[STEP_K]]) {
103103

104104
! COMMON-NEXT: %[[IV_IDX_I:.*]] = fir.convert %[[ARG0]]
105-
! COMMON-NEXT: fir.store %[[IV_IDX_I]] to %[[BINDING_I]]#1
105+
! COMMON-NEXT: fir.store %[[IV_IDX_I]] to %[[BINDING_I]]#0
106106

107107
! COMMON-NEXT: %[[IV_IDX_J:.*]] = fir.convert %[[ARG1]]
108-
! COMMON-NEXT: fir.store %[[IV_IDX_J]] to %[[BINDING_J]]#1
108+
! COMMON-NEXT: fir.store %[[IV_IDX_J]] to %[[BINDING_J]]#0
109109

110110
! COMMON-NEXT: %[[IV_IDX_K:.*]] = fir.convert %[[ARG2]]
111-
! COMMON-NEXT: fir.store %[[IV_IDX_K]] to %[[BINDING_K]]#1
111+
! COMMON-NEXT: fir.store %[[IV_IDX_K]] to %[[BINDING_K]]#0
112112

113113
! COMMON: omp.yield
114114
! COMMON-NEXT: }

flang/test/Transforms/DoConcurrent/not_perfectly_nested.f90

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,13 @@ program main
5252
! COMMON: omp.loop_nest ({{[^[:space:]]+}}) {{.*}} {
5353
! COMMON: fir.do_loop %[[J_IV:.*]] = {{.*}} {
5454
! COMMON: %[[J_IV_CONV:.*]] = fir.convert %[[J_IV]] : (index) -> i32
55-
! HOST: fir.store %[[J_IV_CONV]] to %[[ORIG_J_DECL]]#1
56-
! DEVICE: fir.store %[[J_IV_CONV]] to %[[TARGET_J_DECL]]#1
55+
! HOST: fir.store %[[J_IV_CONV]] to %[[ORIG_J_DECL]]#0
56+
! DEVICE: fir.store %[[J_IV_CONV]] to %[[TARGET_J_DECL]]#0
5757

5858
! COMMON: fir.do_loop %[[K_IV:.*]] = {{.*}} {
5959
! COMMON: %[[K_IV_CONV:.*]] = fir.convert %[[K_IV]] : (index) -> i32
60-
! HOST: fir.store %[[K_IV_CONV]] to %[[ORIG_K_DECL]]#1
61-
! DEVICE: fir.store %[[K_IV_CONV]] to %[[TARGET_K_DECL]]#1
60+
! HOST: fir.store %[[K_IV_CONV]] to %[[ORIG_K_DECL]]#0
61+
! DEVICE: fir.store %[[K_IV_CONV]] to %[[TARGET_K_DECL]]#0
6262
! COMMON: }
6363
! COMMON: }
6464
! COMMON: omp.yield

flang/test/Transforms/DoConcurrent/skip_all_nested_loops.f90

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,13 @@ program main
5050
! COMMON: omp.wsloop {
5151
! COMMON: omp.loop_nest ({{[^[:space:]]+}}) {{.*}} {
5252
! COMMON: fir.do_loop {{.*}} iter_args(%[[J_IV:.*]] = {{.*}}) -> {{.*}} {
53-
! HOST: fir.store %[[J_IV]] to %[[ORIG_J_DECL]]#1
54-
! DEVICE: fir.store %[[J_IV]] to %[[TARGET_J_DECL]]#1
53+
! HOST: fir.store %[[J_IV]] to %[[ORIG_J_DECL]]#0
54+
! DEVICE: fir.store %[[J_IV]] to %[[TARGET_J_DECL]]#0
5555

5656
! COMMON: fir.do_loop %[[K_IV:.*]] = {{.*}} {
5757
! COMMON: %[[K_IV_CONV:.*]] = fir.convert %[[K_IV]] : (index) -> i32
58-
! HOST: fir.store %[[K_IV_CONV]] to %[[ORIG_K_DECL]]#1
59-
! DEVICE: fir.store %[[K_IV_CONV]] to %[[TARGET_K_DECL]]#1
58+
! HOST: fir.store %[[K_IV_CONV]] to %[[ORIG_K_DECL]]#0
59+
! DEVICE: fir.store %[[K_IV_CONV]] to %[[TARGET_K_DECL]]#0
6060
! COMMON: }
6161
! COMMON: }
6262
! COMMON: omp.yield

0 commit comments

Comments
 (0)