This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH, testsuite] Fix gcc.target/powerpc/lhs-1.c for 32-bit
- From: Pat Haugen <pthaugen at linux dot vnet dot ibm dot com>
- To: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Cc: David Edelsohn <dje dot gcc at gmail dot com>
- Date: Tue, 05 Jun 2012 14:07:47 -0500
- Subject: [PATCH, testsuite] Fix gcc.target/powerpc/lhs-1.c for 32-bit
The following fixes a problem with my recently added testcase that resulted in failure for 32-bit since instructions to stack a frame reduced the number of nop's that were needed to force the load into a separate dispatch group.
Tested on powerpc64-linux, committed as obvious.
-Pat
testsuite/ChangeLog:
2012-06-05 Pat Haugen <pthaugen@us.ibm.com>
* gcc.target/powerpc/lhs-1.c: Use parm instead of stack space.
Index: gcc/testsuite/gcc.target/powerpc/lhs-1.c
===================================================================
--- gcc/testsuite/gcc.target/powerpc/lhs-1.c (revision 188208)
+++ gcc/testsuite/gcc.target/powerpc/lhs-1.c (working copy)
@@ -13,10 +13,9 @@ typedef union {
};
} words;
-unsigned int f (double d)
+unsigned int f (double d, words *u)
{
- words u;
- u.val = d;
- return u.w2;
+ u->val = d;
+ return u->w2;
}