1 /* PR tree-optimization/57741 */
3 /* { dg-require-effective-target vect_float } */
4 /* { dg-additional-options "-ffast-math" } */
8 extern void abort (void);
10 float p
[1024] __attribute__((aligned (32))) = { 17.0f
};
11 float q
[1024] __attribute__((aligned (32))) = { 17.0f
};
12 char r
[1024] __attribute__((aligned (32))) = { 1 };
14 __attribute__((noinline
, noclone
)) void
18 float f
= 1.0f
, g
= 2.0f
;
19 for (i
= 0; i
< 1024; i
++)
36 for (i
= 0; i
< 1024; i
++)
37 if (p
[i
] != 1.0f
+ i
* 1.5f
|| q
[i
] != 2.0f
+ i
* 0.5f
|| r
[i
] != 1)
42 /* { dg-final { scan-tree-dump-times "vectorized 1 loop" 1 "vect" } } */
43 /* { dg-final { cleanup-tree-dump "vect" } } */