From ab8081c171034a815d0eca70af7c517c8e6f4ba6 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Wed, 16 Jan 2002 16:54:21 +0000 Subject: [PATCH] Do not accept the IP register as a DFmode operand From-SVN: r48914 --- gcc/ChangeLog | 2 ++ gcc/config/arm/arm.c | 12 ++++++------ 2 files changed, 8 insertions(+), 6 deletions(-) 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) -- 2.30.2