summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/bfin/saveall.c
diff options
context:
space:
mode:
authorbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2009-09-14 20:54:22 +0000
committerbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2009-09-14 20:54:22 +0000
commit2a4b892970941759663bda9f6464dbff415b06cf (patch)
tree21ac4dc1e8f7684dfc4e43a947417c41369a1b86 /gcc/testsuite/gcc.target/bfin/saveall.c
parentc7f0a362d24042abe9d77e4201270872dda1704a (diff)
downloadgcc-2a4b892970941759663bda9f6464dbff415b06cf.tar.gz
2009-09-14 Basile Starynkevitch <basile@starynkevitch.net>
MELT branch merged with trunk rev 151701 git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@151702 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.target/bfin/saveall.c')
-rw-r--r--gcc/testsuite/gcc.target/bfin/saveall.c14
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;
+}