From: Nick Clifton Date: Wed, 16 Jan 2002 16:54:21 +0000 (+0000) Subject: Do not accept the IP register as a DFmode operand X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ab8081c171034a815d0eca70af7c517c8e6f4ba6;p=gcc.git Do not accept the IP register as a DFmode operand From-SVN: r48914 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ab046ed9f75..ca4a661eb6b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -4,6 +4,8 @@ to frame pointer initialisation instruction. (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer 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 diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index 8ef7355ec8e..f69d75176c2 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -3362,9 +3362,9 @@ soft_df_operand (op, mode) if (GET_CODE (op) == SUBREG) op = SUBREG_REG (op); - if (REGNO (op) == IP_REGNUM) - return FALSE; - return TRUE; + /* The IP register must not be used, since its higher + numbered counterpart is 13 - the stack pointer. */ + return REGNO (op) != IP_REGNUM; } if (mode != VOIDmode && GET_MODE (op) != mode) @@ -3401,9 +3401,9 @@ nonimmediate_soft_df_operand (op, mode) if (GET_CODE (op) == SUBREG) op = SUBREG_REG (op); - if (REGNO (op) == IP_REGNUM) - return FALSE; - return TRUE; + /* The IP register must not be used, since its higher + numbered counterpart is 13 - the stack pointer. */ + return REGNO (op) != IP_REGNUM; } if (mode != VOIDmode && GET_MODE (op) != mode)