aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/bfin/saveall.c
blob: 19f9decd74d64e2aa40c62d3360703ae20e0f765 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-do run { target bfin*-*-* } } */
/* { dg-options "-fomit-frame-pointer" } */

void foo (void) __attribute__ ((saveall));
void foo ()
{
  asm ("R0 = 0; RETS = R0;");
}

int main ()
{
  foo ();
  return 0;
}