blob: eca16f10698b70fa46a525a89de67ed8be11cde0 [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-O2 -funit-at-a-time" } */
/* { dg-final { scan-assembler "magic\[^\\n\]*eax" { target ilp32 } } } */
/* { dg-final { scan-assembler "magic\[^\\n\]*edi" { target lp64 } } } */
/* Verify that local calling convention is used. */
static t(int) __attribute__ ((noinline));
m()
{
t(1);
}
static t(int a)
{
asm("magic %0"::"g"(a));
}