2018-03-08 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / pr79907.c
blob240a1f467136bb7ca2ac51e8f2f3a60752ade180
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)
8 unsigned int i;
9 for (i = 0; i < 1000; i++)
11 x = a[i];
12 a[i] = (x <= 0 ? 0 : x);
14 return x;