Skip to content

Commit 5e6f3c3

Browse files
committed
[rebase] fix integer ops and component tests
1 parent 8dfea57 commit 5e6f3c3

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

flang/test/Lower/components.f90

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,11 @@ subroutine issue772(a, x)
124124
! CHECK-LABEL: func @_QPlhs_char_section(
125125
! CHECK-SAME: %[[VAL_0:.*]]: !fir.ref<!fir.array<10x!fir.type<_QFlhs_char_sectionTt{c:!fir.char<1,5>}>>>) {
126126
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
132132
! CHECK: %[[VAL_6:.*]] = fir.field_index c, !fir.type<_QFlhs_char_sectionTt{c:!fir.char<1,5>}>
133133
! CHECK: %[[VAL_7:.*]] = fir.shape %[[VAL_3]] : (index) -> !fir.shape<1>
134134
! 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)
160160
! CHECK-SAME: %[[VAL_0:.*]]: !fir.ref<!fir.array<10x!fir.type<_QFrhs_char_sectionTt{c:!fir.char<1,10>}>>>,
161161
! CHECK-SAME: %[[VAL_1:.*]]: !fir.boxchar<1>) {
162162
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
167167
! CHECK: %[[VAL_6:.*]]:2 = fir.unboxchar %[[VAL_1]] : (!fir.boxchar<1>) -> (!fir.ref<!fir.char<1,?>>, index)
168168
! CHECK: %[[VAL_7:.*]] = fir.convert %[[VAL_6]]#0 : (!fir.ref<!fir.char<1,?>>) -> !fir.ref<!fir.array<10x!fir.char<1,10>>>
169169
! CHECK: %[[VAL_8:.*]] = fir.shape %[[VAL_3]] : (index) -> !fir.shape<1>

flang/test/Lower/integer-operations.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ INTEGER(4) FUNCTION div9_test(x0, x1)
104104
INTEGER(4) :: x1
105105
! CHECK-DAG:[[reg1:%[0-9]+]] = fir.load %arg0
106106
! CHECK-DAG:[[reg2:%[0-9]+]] = fir.load %arg1
107-
! CHECK:divi_signed [[reg1]], [[reg2]] : i32
107+
! CHECK:arith.divsi [[reg1]], [[reg2]] : i32
108108
div9_test = x0 / x1
109109
END FUNCTION
110110

0 commit comments

Comments
 (0)