[testsuite] Fix gcc.target/powerpc/lhs-1.c for 32-bit

Message ID 4FCE5903.2030503@linux.vnet.ibm.com
State New
Headers show

Commit Message

Pat Haugen June 5, 2012, 7:07 p.m.
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.


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;