[AArch64] Merge stores of D-register values with different modes
[official-gcc.git] / gcc / testsuite / gfortran.dg / array_constructor_19.f90
blobf4af94bece76ff272a68e6c51d9136705ef0c86c
1 ! Simplification of unary and binary expressions containing
2 ! array constructors.
4 ! See PR33288
6 ! { dg-do run }
7 real, parameter :: x(1) = 42
8 real, parameter :: x1(1) = (/ x /) + 1
9 real, parameter :: x2(1) = 1 + (/ x /)
10 real, parameter :: x3(1) = -(/ x /)
11 real, parameter :: x4(2) = (/ x, 1. /) + (/ 2, (/3/) /)
13 if (any (x1 /= (/43./))) STOP 1
14 if (any (x2 /= (/43./))) STOP 2
15 if (any (x3 /= (/-42./))) STOP 3
16 if (any (x4 /= (/44., 4./))) STOP 4
17 end