]> gcc.gnu.org Git - gcc.git/commitdiff
* simplify_rtx.c (simplify_subreg): Fix simplification of nested subregs.
authorJan Hubicka <jh@suse.cz>
Thu, 17 May 2001 16:18:26 +0000 (18:18 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Thu, 17 May 2001 16:18:26 +0000 (16:18 +0000)
From-SVN: r42202

gcc/ChangeLog
gcc/simplify-rtx.c

index a37e759f95443b329081e2dc8b454121802d6a83..6f7e0731c58fbf2327e00f52a51cd054eff968df 100644 (file)
@@ -1,3 +1,7 @@
+Thu May 17 18:17:34 CEST 2001  Jan Hubicka  <jh@suse.cz>
+
+       * simplify_rtx.c (simplify_subreg): Fix simplification of nested subregs.
+
 2001-05-17  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
 
        * gccbug.in (CATEGORIES): Add "bootstrap".
index c4dee23c9a928dbade952b7bbb7fdb0aeaf5ac2a..44cfc3b7e32bc0b7f84378c794800c363713f13d 100644 (file)
@@ -2332,11 +2332,12 @@ simplify_subreg (outermode, op, innermode, byte)
        }
 
       /* Recurse for futher possible simplifications.  */
-      new = simplify_subreg (outermode, op, GET_MODE (op),
+      new = simplify_subreg (outermode, SUBREG_REG (op),
+                            GET_MODE (SUBREG_REG (op)),
                             final_offset);
       if (new)
        return new;
-      return gen_rtx_SUBREG (outermode, op, final_offset);
+      return gen_rtx_SUBREG (outermode, SUBREG_REG (op), final_offset);
     }
 
   /* SUBREG of a hard register => just change the register number
This page took 0.071502 seconds and 5 git commands to generate.