summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr32338-2.c
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2007-09-12 21:19:51 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2007-09-12 21:19:51 +0000
commit26f19261581bf915b6e41e850643c76b033aaa9d (patch)
tree828e93cbb23579f8ca8fc10515dcc6799ef95972 /gcc/testsuite/gcc.dg/pr32338-2.c
parent379c7561c3953896b89e7d09175dfebbfb1e57a6 (diff)
downloadgcc-26f19261581bf915b6e41e850643c76b033aaa9d.tar.gz
PR target/32338
* config/ia64/ia64.c (ia64_expand_epilogue): Emit blockage before sp restoration even when total_size is 0, but frame_pointer_needed. * gcc.dg/pr32338-1.c: New test. * gcc.dg/pr32338-2.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@128446 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/pr32338-2.c')
-rw-r--r--gcc/testsuite/gcc.dg/pr32338-2.c47
1 files changed, 47 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/pr32338-2.c b/gcc/testsuite/gcc.dg/pr32338-2.c
new file mode 100644
index 00000000000..81daddf6a67
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/pr32338-2.c
@@ -0,0 +1,47 @@
+/* PR target/32338 */
+/* { dg-do link } */
+/* { dg-options "-O2 -fno-omit-frame-pointer" } */
+
+struct S
+{
+};
+
+int
+__attribute__((noinline))
+foo (void)
+{
+ return 2;
+}
+
+int
+__attribute__((noinline))
+bar (void)
+{
+ return 4;
+}
+
+int
+__attribute__((noinline))
+fnl (void)
+{
+ return 6;
+}
+
+int
+__attribute__((noinline))
+baz (void)
+{
+ unsigned int len;
+ len = fnl ();
+ if (len > 512)
+ return bar ();
+ return foo ();
+}
+
+int
+main (int argc, char *argv[])
+{
+ if (argc > 30)
+ return baz ();
+ return 0;
+}