gcc/testsuite/gcc.target/i386/pr87370.c
raw| 1 | /* { dg-do compile { target { ! ia32 } } } */ |
| 2 | /* { dg-options "-O2" } */ |
| 3 | |
| 4 | struct A |
| 5 | { |
| 6 | int b[4]; |
| 7 | }; |
| 8 | struct B |
| 9 | { |
| 10 | char a[12]; |
| 11 | int b; |
| 12 | }; |
| 13 | struct C |
| 14 | { |
| 15 | char a[16]; |
| 16 | }; |
| 17 | |
| 18 | struct A |
| 19 | f1 (void) |
| 20 | { |
| 21 | struct A x = {}; |
| 22 | return x; |
| 23 | } |
| 24 | |
| 25 | struct B |
| 26 | f2 (void) |
| 27 | { |
| 28 | struct B x = {}; |
| 29 | return x; |
| 30 | } |
| 31 | |
| 32 | struct C |
| 33 | f3 (void) |
| 34 | { |
| 35 | struct C x = {}; |
| 36 | return x; |
| 37 | } |
| 38 | |
| 39 | /* { dg-final { scan-assembler-not "xmm" } } */ |