aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2011-02-15 12:46:10 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2011-02-15 12:46:10 +0100
commitc95f9494fe67feaccfbb33f7d066f21427ce8ed6 (patch)
tree5c1c12a1349ada04e8ede9477afcd8787405f475 /gcc/testsuite
parentc1e2901ed0757327c8fe45ca03f548a9e07f3372 (diff)
downloadgcc-c95f9494fe67feaccfbb33f7d066f21427ce8ed6.zip
gcc-c95f9494fe67feaccfbb33f7d066f21427ce8ed6.tar.gz
gcc-c95f9494fe67feaccfbb33f7d066f21427ce8ed6.tar.bz2
re PR middle-end/47581 (Unnecessary adjustments to stack pointer)
PR middle-end/47581 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset if frame size is 0 in a leaf function. * gcc.target/i386/pr47581.c: New test. From-SVN: r170170
Diffstat (limited to 'gcc/testsuite')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/gcc.target/i386/pr47581.c10
2 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 866010a..1c15f63 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2011-02-15 Jakub Jelinek <jakub@redhat.com>
+
+ PR middle-end/47581
+ * gcc.target/i386/pr47581.c: New test.
+
2011-02-14 Janus Weil <janus@gcc.gnu.org>
PR fortran/47730
diff --git a/gcc/testsuite/gcc.target/i386/pr47581.c b/gcc/testsuite/gcc.target/i386/pr47581.c
new file mode 100644
index 0000000..dfc02a1
--- /dev/null
+++ b/gcc/testsuite/gcc.target/i386/pr47581.c
@@ -0,0 +1,10 @@
+/* PR middle-end/47581 */
+/* { dg-do compile } */
+/* { dg-options "-O2 -fomit-frame-pointer -mpreferred-stack-boundary=4 -mincoming-stack-boundary=4" } */
+/* { dg-final { scan-assembler-not "(sub|add)l\[\\t \]*\\$\[0-9\]*,\[\\t \]*%\[re\]?sp" } } */
+
+unsigned
+foo (unsigned a, unsigned b)
+{
+ return ((unsigned long long) a * (unsigned long long) b) >> 32;
+}