1 /* { dg-do compile { target { powerpc*-*-* } } } */
2 /* { dg-require-effective-target powerpc_p8vector_ok } */
3 /* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power8" } } */
4 /* { dg-options "-mcpu=power8 -O3" } */
6 int foo (short a
[], int x
)
9 for (i
= 0; i
< 1000; i
++)
12 a
[i
] = (x
<= 0 ? 0 : x
);