[cft] subreg validation round 2

Richard Henderson rth@redhat.com
Fri Nov 19 21:50:00 GMT 2004


On Wed, Nov 17, 2004 at 08:21:34PM +0100, Eric Botcazou wrote:
> How did you address the problem with SPARC splitters?


@@ -3674,14 +3676,15 @@ simplify_subreg (enum machine_mode outer
       && subreg_offset_representable_p (REGNO (op), innermode,
 					byte, outermode))
     {
-      rtx tem = gen_rtx_SUBREG (outermode, op, byte);
-      int final_regno = subreg_hard_regno (tem, 0);
+      unsigned int regno = REGNO (op);
+      unsigned int final_regno
+	= regno + subreg_regno_offset (regno, innermode, byte, outermode);
 


r~



More information about the Gcc mailing list