gcc/testsuite/gcc.target/i386/pr95126-m32-3.c
raw| 1 | /* { dg-do compile { target { ia32 } } } */ |
| 2 | /* { dg-options "-O2 -mno-accumulate-outgoing-args" } */ |
| 3 | |
| 4 | struct small{ short a; }; |
| 5 | |
| 6 | void call_func(void) |
| 7 | { |
| 8 | extern int func(struct small X); |
| 9 | static struct small const s = { 2 }; |
| 10 | func(s); |
| 11 | } |
| 12 | |
| 13 | /* { dg-final { scan-assembler "pushl\[ \\t]*\\\$2" } } */ |
| 14 | /* { dg-final { scan-assembler-not "movzwl" } } */ |
| 15 |