]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
arm.c (load_multiple_sequence): Support SUBREG of MEM.
authorRichard Earnshaw <rearnsha@arm.com>
Mon, 3 Nov 1997 05:52:42 +0000 (05:52 +0000)
committerJeff Law <law@gcc.gnu.org>
Mon, 3 Nov 1997 05:52:42 +0000 (22:52 -0700)
        * arm.c (load_multiple_sequence): Support SUBREG of MEM.
        (store_multiple_sequence): Likewise.
Brought over from gcc2.

From-SVN: r16288

gcc/ChangeLog
gcc/config/arm/arm.c

index 7814f0688533b88e66c1d6c692eba19b80c78a0e..cfd2f08ae6a0b4c64e5cf2083d2bf75f2dfce2d5 100644 (file)
@@ -1,3 +1,8 @@
+Sun Nov  2 22:53:16 1997  Richard Earnshaw  (rearnsha@arm.com)
+
+       * arm.c (load_multiple_sequence): Support SUBREG of MEM.
+       (store_multiple_sequence): Likewise.
+
 Sun Nov  2 19:44:00 1997  Robert Lipe (robertl@dgii.com)
 
        * i386/sco5.h: enable -gstabs once again.
index db6c17ccbb8ae0141ae879fb68171be34a95c507..3794f0c14359822fe1ea8c749b62de44e2d96d6a 100644 (file)
@@ -2352,6 +2352,10 @@ load_multiple_sequence (operands, nops, regs, base, load_offset)
       rtx reg;
       rtx offset;
 
+      /* Convert a subreg of a mem into the mem itself.  */
+      if (GET_CODE (operands[nops + i]) == SUBREG)
+       operands[nops + i] = alter_subreg(operands[nops + i]);
+
       if (GET_CODE (operands[nops + i]) != MEM)
        abort ();