| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-O2 -mno-sse" } */ |
| 3 |
|
| 4 |
struct S |
| 5 |
{ |
| 6 |
long long s1 __attribute__ ((aligned (8))); |
| 7 |
unsigned s2, s3; |
| 8 |
}; |
| 9 |
|
| 10 |
extern struct S foooo[]; |
| 11 |
|
| 12 |
void bar (int, int, int, int, int, int, struct S); |
| 13 |
|
| 14 |
void |
| 15 |
foo (void) |
| 16 |
{ |
| 17 |
bar (1, 2, 3, 4, 5, 6, foooo[0]); |
| 18 |
} |
| 19 |
|
| 20 |
/* { dg-final { scan-assembler "push\[lq\]\tfoooo\+" { target { nonpic || { ! ia32 } } } } }*/ |
| 21 |
/* { dg-final { scan-assembler "movl\tfoooo@GOT\\(%ebx\\), %eax" { target { ia32 && { ! nonpic } } } } } */ |
| 22 |
/* { dg-final { scan-assembler-times "pushl\t(?:|4|8|12)\\(%eax\\)" 4 { target { ia32 && { ! nonpic } } } } } */ |