@@ -114,6 +114,29 @@ subroutine range()
114114 data c1/ 6 * (0.0 , 0.0 )/
115115end subroutine range
116116
117+ ! CHECK-LABEL: rangeglobal
118+ subroutine rangeGlobal ()
119+ integer , dimension (6 ) :: a0 = (/ 1 , 1 , 2 , 2 , 3 , 3 / )
120+
121+ end subroutine rangeGlobal
122+
123+ ! CHECK-LABEL: hugeglobal
124+ subroutine hugeGlobal ()
125+ integer , parameter :: D = 500
126+ integer , dimension (D, D) :: a
127+
128+ a = reshape ((/ (i, i = 1 , D * D)/ ), shape (a))
129+ end subroutine hugeGlobal
130+
131+ block data
132+ real (selected_real_kind (6 )) :: x(5 ,5 )
133+ common / block/ x
134+ data x(1 ,1 ), x(2 ,1 ), x(3 ,1 ) / 1 , 1 , 0 /
135+ data x(1 ,2 ), x(2 ,2 ), x(4 ,2 ) / 1 , 1 , 2.4 /
136+ data x(1 ,3 ), x(2 ,3 ), x(4 ,3 ) / 1 , 1 , 2.4 /
137+ data x(4 ,4 ) / 2.4 /
138+ end
139+
117140! c1 data
118141! CHECK: fir.global internal @_QFrangeEc1(dense<(0.000000e+00,0.000000e+00)> : tensor<3x2xcomplex<f32>>) : !fir.array<2x3xcomplex<f32>>
119142
@@ -132,27 +155,6 @@ end subroutine range
132155! c0 array constructor
133156! 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>>
134157
135- ! CHECK-LABEL: rangeGlobal
136- subroutine rangeGlobal ()
137158! CHECK: fir.global internal @_QFrangeglobal{{.*}}(dense<[1, 1, 2, 2, 3, 3]> : tensor<6xi32>) : !fir.array<6xi32>
138- integer , dimension (6 ) :: a0 = (/ 1 , 1 , 2 , 2 , 3 , 3 / )
139-
140- end subroutine rangeGlobal
141-
142- ! CHECK-LABEL: hugeGlobal
143- subroutine hugeGlobal ()
144- integer , parameter :: D = 500
145- integer , dimension (D, D) :: a
146159
147160! CHECK: fir.global internal @_QQro.500x500xi4.{{.*}}(dense<{{.*}}> : tensor<500x500xi32>) constant : !fir.array<500x500xi32>
148- a = reshape ((/ (i, i = 1 , D * D)/ ), shape (a))
149- end subroutine hugeGlobal
150-
151- block data
152- real (selected_real_kind (6 )) :: x(5 ,5 )
153- common / block/ x
154- data x(1 ,1 ), x(2 ,1 ), x(3 ,1 ) / 1 , 1 , 0 /
155- data x(1 ,2 ), x(2 ,2 ), x(4 ,2 ) / 1 , 1 , 2.4 /
156- data x(1 ,3 ), x(2 ,3 ), x(4 ,3 ) / 1 , 1 , 2.4 /
157- data x(4 ,4 ) / 2.4 /
158- end
0 commit comments