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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.target/] [arm/] [naked-2.c] - Rev 327

Go to most recent revision | Compare with Previous | Blame | View Log

/* Verify that __attribute__((naked)) produces a naked function 
   that does not use bx to return. Naked functions could be used
   to implement interrupt routines and must not return using bx.  */
/* { dg-do compile } */
/* { dg-options "-O0" } */
/* Use more arguments than we have argument registers.  */
int __attribute__((naked)) foo(int a, int b, int c, int d, int e, int f)
{
  __asm__ volatile ("@ naked");
}
/* { dg-final { scan-assembler "\t@ naked" } } */
/* { dg-final { scan-assembler-not "\tbx\tlr" } } */
 

Go to most recent revision | 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.