]> gcc.gnu.org Git - gcc.git/commitdiff
rs6000.c (rs6000_legitimize_address): Force both PLUS operands into registers for...
authorAldy Hernandez <aldyh@redhat.com>
Mon, 17 Dec 2001 06:41:56 +0000 (06:41 +0000)
committerAldy Hernandez <aldyh@gcc.gnu.org>
Mon, 17 Dec 2001 06:41:56 +0000 (06:41 +0000)
      * config/rs6000/rs6000.c (rs6000_legitimize_address): Force both
        PLUS operands into registers for altivec mode.

From-SVN: r48091

gcc/ChangeLog
gcc/config/rs6000/rs6000.c

index 80c7670ad8fa5bad48e89e70e8e384b91c9d79d2..ae55fdefd18789ead045783ad5de65550ebb6498 100644 (file)
@@ -1,3 +1,8 @@
+2001-12-16  Aldy Hernandez  <aldyh@redhat.com>
+
+      * config/rs6000/rs6000.c (rs6000_legitimize_address): Force both
+      PLUS operands into registers for altivec mode.
+
 2001-12-16  Aldy Hernandez  <aldyh@redhat.com>
 
       * builtins.c (apply_args_size): Change regno to unsigned.
index 532ac9b2a548252753269059c20e74ef1255260d..5b4c86eec5b1c807185b04cf2ac7e5ee107d660b 100644 (file)
@@ -1677,7 +1677,7 @@ rs6000_legitimize_address (x, oldx, mode)
 
       /* Make sure both operands are registers.  */
       if (GET_CODE (x) == PLUS)
-       return gen_rtx_PLUS (Pmode, XEXP (x, 0),
+       return gen_rtx_PLUS (Pmode, force_reg (Pmode, XEXP (x, 0)),
                             force_reg (Pmode, XEXP (x, 1)));
 
       reg = force_reg (Pmode, x);
This page took 0.095964 seconds and 5 git commands to generate.