2 ! { dg-add-options ieee }
3 ! { dg-skip-if "NaN not supported" { spu-*-* } }
4 real :: a(3), nan
, minf
, pinf
6 real, allocatable
:: c(:)
20 if (ia(1).ne
.1) call abort
23 if (ia(1).ne
.1) call abort
26 if (ia(1).ne
.3) call abort
29 if (ia(1).ne
.2) call abort
32 if (ia(1).ne
.2) call abort
35 if (ia(1).ne
.1) call abort
38 if (ia(1).ne
.1) call abort
41 if (ia(1).ne
.3) call abort
44 if (ia(1).ne
.2) call abort
47 if (ia(1).ne
.2) call abort
51 ia
= minloc (a
, mask
= l
)
52 if (ia(1).ne
.0) call abort
53 ia
= minloc (a
, mask
= l2
)
54 if (ia(1).ne
.0) call abort
56 ia
= minloc (a
, mask
= l
)
57 if (ia(1).ne
.0) call abort
58 ia
= minloc (a
, mask
= l2
)
59 if (ia(1).ne
.0) call abort
61 ia
= minloc (a
, mask
= l
)
62 if (ia(1).ne
.0) call abort
63 ia
= minloc (a
, mask
= l2
)
64 if (ia(1).ne
.0) call abort
66 ia
= minloc (a
, mask
= l
)
67 if (ia(1).ne
.0) call abort
68 ia
= minloc (a
, mask
= l2
)
69 if (ia(1).ne
.0) call abort
71 ia
= minloc (a
, mask
= l
)
72 if (ia(1).ne
.0) call abort
73 ia
= minloc (a
, mask
= l2
)
74 if (ia(1).ne
.0) call abort
76 ia
= minloc (c
, mask
= l
)
77 if (ia(1).ne
.0) call abort
78 ia
= minloc (c
, mask
= l2
)
79 if (ia(1).ne
.0) call abort
81 ia
= minloc (c
, mask
= l
)
82 if (ia(1).ne
.0) call abort
83 ia
= minloc (c
, mask
= l2
)
84 if (ia(1).ne
.0) call abort
86 ia
= minloc (c
, mask
= l
)
87 if (ia(1).ne
.0) call abort
88 ia
= minloc (c
, mask
= l2
)
89 if (ia(1).ne
.0) call abort
91 ia
= minloc (c
, mask
= l
)
92 if (ia(1).ne
.0) call abort
93 ia
= minloc (c
, mask
= l2
)
94 if (ia(1).ne
.0) call abort
96 ia
= minloc (c
, mask
= l
)
97 if (ia(1).ne
.0) call abort
98 ia
= minloc (c
, mask
= l2
)
99 if (ia(1).ne
.0) call abort
103 ia
= minloc (a
, mask
= l
)
104 if (ia(1).ne
.1) call abort
105 ia
= minloc (a
, mask
= l2
)
106 if (ia(1).ne
.1) call abort
108 ia
= minloc (a
, mask
= l
)
109 if (ia(1).ne
.1) call abort
110 ia
= minloc (a
, mask
= l2
)
111 if (ia(1).ne
.1) call abort
113 ia
= minloc (a
, mask
= l
)
114 if (ia(1).ne
.3) call abort
115 ia
= minloc (a
, mask
= l2
)
116 if (ia(1).ne
.3) call abort
118 ia
= minloc (a
, mask
= l
)
119 if (ia(1).ne
.2) call abort
120 ia
= minloc (a
, mask
= l2
)
121 if (ia(1).ne
.2) call abort
123 ia
= minloc (a
, mask
= l
)
124 if (ia(1).ne
.2) call abort
125 ia
= minloc (a
, mask
= l2
)
126 if (ia(1).ne
.2) call abort
128 ia
= minloc (c
, mask
= l
)
129 if (ia(1).ne
.1) call abort
130 ia
= minloc (c
, mask
= l2
)
131 if (ia(1).ne
.1) call abort
133 ia
= minloc (c
, mask
= l
)
134 if (ia(1).ne
.1) call abort
135 ia
= minloc (c
, mask
= l2
)
136 if (ia(1).ne
.1) call abort
138 ia
= minloc (c
, mask
= l
)
139 if (ia(1).ne
.3) call abort
140 ia
= minloc (c
, mask
= l2
)
141 if (ia(1).ne
.3) call abort
143 ia
= minloc (c
, mask
= l
)
144 if (ia(1).ne
.2) call abort
145 ia
= minloc (c
, mask
= l2
)
146 if (ia(1).ne
.2) call abort
148 ia
= minloc (c
, mask
= l
)
149 if (ia(1).ne
.2) call abort
150 ia
= minloc (c
, mask
= l2
)
151 if (ia(1).ne
.2) call abort
155 if (ia(1).ne
.0) call abort