OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [gcc.target/] [i386/] [local.c] - Rev 338

Compare with Previous | Blame | View Log

/* { 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));
extern volatile int i;
 
void m(void)
{
	t(i);
}
 
static t(int a)
{
	asm("magic %0"::"g"(a));
}
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.