gcc/testsuite/gcc.target/i386/pr95126-m64-2.c
raw| 1 | /* { dg-do compile { target { ! ia32 } } } */ |
| 2 | /* { dg-options "-O2" } */ |
| 3 | |
| 4 | struct small{ short a,b; signed char c; }; |
| 5 | static const struct small s = { 1,2,0 }; |
| 6 | extern int func(struct small X); |
| 7 | |
| 8 | void call_func(void) |
| 9 | { |
| 10 | func(s); |
| 11 | } |
| 12 | |
| 13 | /* { dg-final { scan-assembler "movl\[ \\t]*\\\$131073, " } } */ |
| 14 | /* { dg-final { scan-assembler-not "movzwl" } } */ |
| 15 | /* { dg-final { scan-assembler-not "salq" } } */ |
| 16 | /* { dg-final { scan-assembler-not "orq" } } */ |
| 17 |