diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/bfin/saveall.c')
-rw-r--r-- | gcc/testsuite/gcc.target/bfin/saveall.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/bfin/saveall.c b/gcc/testsuite/gcc.target/bfin/saveall.c new file mode 100644 index 00000000000..19f9decd74d --- /dev/null +++ b/gcc/testsuite/gcc.target/bfin/saveall.c @@ -0,0 +1,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; +} |