| 1 |
/* { dg-require-effective-target ia32 } */ |
| 2 |
/* { dg-options "-O2" } */ |
| 3 |
|
| 4 |
void __attribute__((regparm(1))) |
| 5 |
f (int *ptr) |
| 6 |
{ |
| 7 |
asm volatile ("mem = %0" : "=m" (*ptr) :: "ax"); |
| 8 |
} |
| 9 |
|
| 10 |
/* { dg-final { scan-assembler-not {mem = [^\n]*%eax} } } */ |