gcc/testsuite/gcc.dg/pr112359.c
raw| 1 | /* { dg-do compile { target aarch64*-*-* i?86-*-* x86_64-*-* } } */ |
| 2 | /* { dg-additional-options "-O -std=gnu99 -mavx512fp16 -ftree-loop-if-convert" { target i?86-*-* x86_64-*-* } } */ |
| 3 | /* { dg-additional-options "-O -std=gnu99 -march=armv8.4-a+sve -ftree-loop-if-convert" { target aarch64*-*-* } } */ |
| 4 | |
| 5 | int i, c; |
| 6 | unsigned long long u; |
| 7 | |
| 8 | void |
| 9 | foo (void) |
| 10 | { |
| 11 | for (; i; i++) |
| 12 | if (c) |
| 13 | u |= i; |
| 14 | } |
| 15 |