This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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;
 }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]