1 /* PR tree-optimization/89570 */
2 /* { dg-do compile } */
3 /* { dg-options "-O1 -ftree-vectorize -fno-trapping-math -fno-tree-dce -fno-tree-dominator-opts" } */
4 /* { dg-additional-options "-mvsx" { target powerpc_vsx_ok } } */
7 foo (double *x
, double *y
, double *z
)
10 for (i
= 0; i
< 7; i
+= 2)
12 x
[i
] = y
[i
] ? z
[i
] / 2.0 : z
[i
];
13 x
[i
+ 1] = y
[i
+ 1] ? z
[i
+ 1] / 2.0 : z
[i
+ 1];