@@ -124,11 +124,11 @@ subroutine issue772(a, x)
124
124
! CHECK-LABEL: func @_QPlhs_char_section(
125
125
! CHECK-SAME: %[[VAL_0:.*]]: !fir.ref<!fir.array<10x!fir.type<_QFlhs_char_sectionTt{c:!fir.char<1,5>}>>>) {
126
126
subroutine lhs_char_section (a )
127
- ! CHECK: %[[VAL_1:.*]] = arith.constant 5 : index
128
- ! CHECK: %[[VAL_2:.*]] = arith.constant false
129
- ! CHECK: %[[VAL_3:.*]] = arith.constant 10 : index
130
- ! CHECK: %[[VAL_4:.*]] = arith.constant 0 : index
131
- ! CHECK: %[[VAL_5:.*]] = arith.constant 1 : index
127
+ ! CHECK-DAG : %[[VAL_1:.*]] = arith.constant 5 : index
128
+ ! CHECK-DAG : %[[VAL_2:.*]] = arith.constant false
129
+ ! CHECK-DAG : %[[VAL_3:.*]] = arith.constant 10 : index
130
+ ! CHECK-DAG : %[[VAL_4:.*]] = arith.constant 0 : index
131
+ ! CHECK-DAG : %[[VAL_5:.*]] = arith.constant 1 : index
132
132
! CHECK: %[[VAL_6:.*]] = fir.field_index c, !fir.type<_QFlhs_char_sectionTt{c:!fir.char<1,5>}>
133
133
! CHECK: %[[VAL_7:.*]] = fir.shape %[[VAL_3]] : (index) -> !fir.shape<1>
134
134
! CHECK: %[[VAL_8:.*]] = fir.slice %[[VAL_5]], %[[VAL_3]], %[[VAL_5]] path %[[VAL_6]] : (index, index, index, !fir.field) -> !fir.slice<1>
@@ -160,10 +160,10 @@ subroutine lhs_char_section(a)
160
160
! CHECK-SAME: %[[VAL_0:.*]]: !fir.ref<!fir.array<10x!fir.type<_QFrhs_char_sectionTt{c:!fir.char<1,10>}>>>,
161
161
! CHECK-SAME: %[[VAL_1:.*]]: !fir.boxchar<1>) {
162
162
subroutine rhs_char_section (a , c )
163
- ! CHECK: %[[VAL_2:.*]] = arith.constant false
164
- ! CHECK: %[[VAL_3:.*]] = arith.constant 10 : index
165
- ! CHECK: %[[VAL_4:.*]] = arith.constant 0 : index
166
- ! CHECK: %[[VAL_5:.*]] = arith.constant 1 : index
163
+ ! CHECK-DAG : %[[VAL_2:.*]] = arith.constant false
164
+ ! CHECK-DAG : %[[VAL_3:.*]] = arith.constant 10 : index
165
+ ! CHECK-DAG : %[[VAL_4:.*]] = arith.constant 0 : index
166
+ ! CHECK-DAG : %[[VAL_5:.*]] = arith.constant 1 : index
167
167
! CHECK: %[[VAL_6:.*]]:2 = fir.unboxchar %[[VAL_1]] : (!fir.boxchar<1>) -> (!fir.ref<!fir.char<1,?>>, index)
168
168
! CHECK: %[[VAL_7:.*]] = fir.convert %[[VAL_6]]#0 : (!fir.ref<!fir.char<1,?>>) -> !fir.ref<!fir.array<10x!fir.char<1,10>>>
169
169
! CHECK: %[[VAL_8:.*]] = fir.shape %[[VAL_3]] : (index) -> !fir.shape<1>
0 commit comments