summaryrefslogtreecommitdiff
path: root/flang/test/Lower/user-defined-operators.f90
diff options
context:
space:
mode:
Diffstat (limited to 'flang/test/Lower/user-defined-operators.f90')
-rw-r--r--flang/test/Lower/user-defined-operators.f906
1 files changed, 5 insertions, 1 deletions
diff --git a/flang/test/Lower/user-defined-operators.f90 b/flang/test/Lower/user-defined-operators.f90
index b4750d5fae15..587ac56b5706 100644
--- a/flang/test/Lower/user-defined-operators.f90
+++ b/flang/test/Lower/user-defined-operators.f90
@@ -17,6 +17,10 @@ subroutine user_assignment(a, i)
end subroutine
end interface
type(t) :: a
- ! CHECK: fir.call @_QPmy_assign(%[[arg0]], %[[arg1]])
+! CHECK: %[[V_0:[0-9]+]] = fir.alloca i32
+! CHECK: %[[V_1:[0-9]+]] = fir.load %arg1 : !fir.ref<i32>
+! CHECK: %[[V_2:[0-9]+]] = fir.no_reassoc %[[V_1:[0-9]+]] : i32
+! CHECK: fir.store %[[V_2]] to %[[V_0:[0-9]+]] : !fir.ref<i32>
+! CHECK: fir.call @_QPmy_assign(%arg0, %[[V_0]]) fastmath<contract> : (!fir.ref<!fir.type<_QFuser_assignmentTt{x:f32,i:i32}>>, !fir.ref<i32>) -> ()
a = i
end subroutine