gcc/testsuite/gcc.target/powerpc/pr110776.c
raw| 1 | /* { dg-options "-O2 -mdejagnu-cpu=power6 -maltivec" } */ |
| 2 | /* { dg-require-effective-target powerpc_altivec } */ |
| 3 | |
| 4 | /* Verify there is no ICE. */ |
| 5 | |
| 6 | int a; |
| 7 | long *b; |
| 8 | int |
| 9 | c () |
| 10 | { |
| 11 | long e; |
| 12 | int d = 0; |
| 13 | for (long f; f; f++) |
| 14 | { |
| 15 | e = b[f * a]; |
| 16 | if (e) |
| 17 | d = 1; |
| 18 | } |
| 19 | if (d) |
| 20 | for (;;) |
| 21 | ; |
| 22 | } |