LWG 3035. std::allocator's constructors should be constexpr
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / pr56541.c
blobd5def6899e4679905a70855a33a7d60908c407d1
1 /* { dg-do compile } */
2 /* { dg-require-effective-target vect_int } */
3 /* { dg-require-effective-target vect_float } */
4 /* { dg-require-effective-target vect_condition } */
6 float a,b,c,d;
8 float z[1024]; int ok[1024];
9 const float rBig = 150.;
11 void foo()
13 int i;
15 for (i=0; i!=1024; ++i)
17 float rR = a*z[i];
18 float rL = b*z[i];
19 float rMin = (rR<rL) ? rR : rL;
20 float rMax = (rR<rL) ? rL : rR;
21 rMin = (rMax>0) ? rMin : rBig;
22 rMin = (rMin>0) ? rMin : rMax;
23 ok[i] = rMin-c<rMax+d;
27 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { xfail { ! vect_cond_mixed } } } } */