| 1 |
/* PR tree-optimization/112374 */ |
| 2 |
/* { dg-do compile } */ |
| 3 |
/* { dg-options "-fcompare-debug -gno-statement-frontiers -O2 -w" } */ |
| 4 |
/* { dg-additional-options "-march=skylake-avx512" { target i?86-*-* x86_64-*-* } } */ |
| 5 |
/* { dg-additional-options "-march=armv9-a" { target aarch64*-*-* } } */ |
| 6 |
|
| 7 |
void foo (int, int); |
| 8 |
struct S { char s[4]; }; |
| 9 |
int a, b, c; |
| 10 |
|
| 11 |
void |
| 12 |
bar () |
| 13 |
{ |
| 14 |
struct S d; |
| 15 |
long e = 0; |
| 16 |
for (c = 0; c < 4; ++c) |
| 17 |
e |= (d.s[c] ? 3 : 0) << c; |
| 18 |
if (e) |
| 19 |
foo (a, b); |
| 20 |
} |