gcc/testsuite/gcc.dg/vect/pr94727.c
raw| 1 | /* { dg-additional-options "-O3" } */ |
| 2 | |
| 3 | unsigned char a[16][32]; |
| 4 | long b[16][32]; |
| 5 | unsigned long c; |
| 6 | _Bool d; |
| 7 | |
| 8 | void __attribute__((noipa)) |
| 9 | foo (void) |
| 10 | { |
| 11 | for (int j = 0; j < 8; j++) |
| 12 | for (int i = 0; i < 17; ++i) |
| 13 | b[j][i] = (a[j][i] < c) > d; |
| 14 | } |
| 15 | |
| 16 | int |
| 17 | main (void) |
| 18 | { |
| 19 | c = 1; |
| 20 | foo (); |
| 21 | if (!b[0][0]) |
| 22 | __builtin_abort (); |
| 23 | return 0; |
| 24 | } |