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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [arm/] [naked-1.c] - Rev 691

Compare with Previous | Blame | View Log

/* { dg-do compile } */
/* { dg-options "-O0" } */
/* Check that function arguments aren't assigned and copied to stack slots
   in naked functions.  This ususally happens at -O0 (presumably for
   better debugging), but is highly undesirable if we haven't created
   a stack frame.  */
void __attribute__((naked))
foo(int n)
{
  __asm__ volatile ("frob r0\n");
}
/* { dg-final { scan-assembler "\tfrob r0" } } */
/* { dg-final { scan-assembler-not "\tstr" } } */
 

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.