gcc/testsuite/gcc.dg/pr51505.c
raw| 1 | /* PR rtl-optimization/51505 */ |
| 2 | /* { dg-do compile } */ |
| 3 | /* { dg-options "-O --param max-cse-insns=1" } */ |
| 4 | struct S |
| 5 | { |
| 6 | char a[256]; |
| 7 | }; |
| 8 | |
| 9 | int bar(struct S, char[16]); |
| 10 | |
| 11 | void foo () |
| 12 | { |
| 13 | struct S u, s1, s2; |
| 14 | char e[256]; |
| 15 | char i; |
| 16 | e[i] = ~s1.a[i] & s2.a[i]; |
| 17 | if (bar(u, e)) |
| 18 | __builtin_abort (); |
| 19 | } |