Commit ab8081c1 by Nick Clifton Committed by Nick Clifton

Do not accept the IP register as a DFmode operand

From-SVN: r48914
parent 54c5eaff
...@@ -4,6 +4,8 @@ ...@@ -4,6 +4,8 @@
to frame pointer initialisation instruction. to frame pointer initialisation instruction.
(thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
initialisation instruction. initialisation instruction.
(soft_df_operand): Do not accept the IP register.
(nonimmediate_soft_df_operand): Do not accept the IP register.
2002-01-16 Jakub Jelinek <jakub@redhat.com> 2002-01-16 Jakub Jelinek <jakub@redhat.com>
......
...@@ -3362,9 +3362,9 @@ soft_df_operand (op, mode) ...@@ -3362,9 +3362,9 @@ soft_df_operand (op, mode)
if (GET_CODE (op) == SUBREG) if (GET_CODE (op) == SUBREG)
op = SUBREG_REG (op); op = SUBREG_REG (op);
if (REGNO (op) == IP_REGNUM) /* The IP register must not be used, since its higher
return FALSE; numbered counterpart is 13 - the stack pointer. */
return TRUE; return REGNO (op) != IP_REGNUM;
} }
if (mode != VOIDmode && GET_MODE (op) != mode) if (mode != VOIDmode && GET_MODE (op) != mode)
...@@ -3401,9 +3401,9 @@ nonimmediate_soft_df_operand (op, mode) ...@@ -3401,9 +3401,9 @@ nonimmediate_soft_df_operand (op, mode)
if (GET_CODE (op) == SUBREG) if (GET_CODE (op) == SUBREG)
op = SUBREG_REG (op); op = SUBREG_REG (op);
if (REGNO (op) == IP_REGNUM) /* The IP register must not be used, since its higher
return FALSE; numbered counterpart is 13 - the stack pointer. */
return TRUE; return REGNO (op) != IP_REGNUM;
} }
if (mode != VOIDmode && GET_MODE (op) != mode) if (mode != VOIDmode && GET_MODE (op) != mode)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment