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]

[cft] emit_group_load/store fallout


>From the ppc test case in 18163, it looks like things worked 
before in the cases of a memory destination.  Which is fine
because we pretty much can do anything we want frobbing the
mode of memory -- unlike with registers.

Try this.


r~



Index: expr.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/expr.c,v
retrieving revision 1.736
diff -c -p -d -u -r1.736 expr.c
--- expr.c	26 Oct 2004 23:17:57 -0000	1.736
+++ expr.c	27 Oct 2004 17:15:35 -0000
@@ -1571,7 +1571,7 @@ emit_group_load (rtx dst, rtx orig_src, 
 
   gcc_assert (GET_CODE (dst) == PARALLEL);
 
-  if (!SCALAR_INT_MODE_P (m) && m != BLKmode)
+  if (!SCALAR_INT_MODE_P (m) && !MEM_P (orig_src))
     {
       enum machine_mode imode = int_mode_for_mode (GET_MODE (orig_src));
       if (imode == BLKmode)
@@ -1745,7 +1745,7 @@ emit_group_store (rtx orig_dst, rtx src,
 
   gcc_assert (GET_CODE (src) == PARALLEL);
 
-  if (!SCALAR_INT_MODE_P (m) && m != BLKmode)
+  if (!SCALAR_INT_MODE_P (m) && !MEM_P (orig_dst))
     {
       enum machine_mode imode = int_mode_for_mode (GET_MODE (orig_dst));
       if (imode == BLKmode)


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