1 /* { dg-do compile } */
2 /* { dg-options "-c -O2 -ftree-vectorize -fdump-tree-ifcvt-stats" { target *-*-* } } */
4 void foo(const int * __restrict__ zr_in
,
5 const int * __restrict__ zi_in
,
6 const int * __restrict__ zk_in
,
7 int * __restrict__ zr_out
,
8 int * __restrict__ zi_out
,
9 int * __restrict__ zk_out
,
13 int tmp_r
, tmp_i
, tmp_k
;
14 for (pi
= 0; pi
< (512)*(512); pi
++) {
19 if (zr
*zr
+ zi
*zi
>= 4) {
24 tmp_r
= (zr
*zr
- zi
*zi
+ cr
);
25 tmp_i
= (2 * zr
* zi
+ ci
);
35 /* { dg-final { scan-tree-dump-times "Applying if-conversion" 1 "ifcvt" } } */
36 /* { dg-final { cleanup-tree-dump "ifcvt" } } */