* sh.c (calc_live_regs): Also check GET_CODE when checking if initial value
for PR_REG is still the PR_REG register.
From-SVN: r63064
+Tue Feb 18 20:15:54 2003 J"orn Rennecke <joern.rennecke@superh.com>
+
+ * sh.c (calc_live_regs): Also check GET_CODE when checking if initial value
+ for PR_REG is still the PR_REG register.
+
2003-02-18 Jim Wilson <wilson@redhat.com>
* config/ia64/ia64.md (floatdidf2, floatdisf2): Add %, before second
{
rtx pr_initial = has_hard_reg_initial_val (Pmode, PR_REG);
pr_live = (pr_initial
- ? REGNO (pr_initial) != (PR_REG) : regs_ever_live[PR_REG]);
+ ? (GET_CODE (pr_initial) != REG
+ || REGNO (pr_initial) != (PR_REG))
+ : regs_ever_live[PR_REG]);
}
/* Force PR to be live if the prologue has to call the SHmedia
argument decoder or register saver. */