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] - Blame information for rev 318

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

Line No. Rev Author Line
1 313 jeremybenn
/* Verify that __attribute__((naked)) produces a naked function
2
   that does not use bx to return. Naked functions could be used
3
   to implement interrupt routines and must not return using bx.  */
4
/* { dg-do compile } */
5
/* { dg-options "-O0" } */
6
/* Use more arguments than we have argument registers.  */
7
int __attribute__((naked)) foo(int a, int b, int c, int d, int e, int f)
8
{
9
  __asm__ volatile ("@ naked");
10
}
11
/* { dg-final { scan-assembler "\t@ naked" } } */
12
/* { dg-final { scan-assembler-not "\tbx\tlr" } } */

powered by: WebSVN 2.1.0

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