gcc/testsuite/gcc.target/powerpc/pr79907.c
raw| 1 | /* { dg-do compile { target { powerpc*-*-* } } } */ |
| 2 | /* { dg-options "-mdejagnu-cpu=power8 -mvsx -O3" } */ |
| 3 | /* { dg-require-effective-target powerpc_vsx } */ |
| 4 | |
| 5 | int foo (short a[], int x) |
| 6 | { |
| 7 | unsigned int i; |
| 8 | for (i = 0; i < 1000; i++) |
| 9 | { |
| 10 | x = a[i]; |
| 11 | a[i] = (x <= 0 ? 0 : x); |
| 12 | } |
| 13 | return x; |
| 14 | } |