diff options
| author | nickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-01-16 16:54:21 +0000 |
|---|---|---|
| committer | nickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-01-16 16:54:21 +0000 |
| commit | 277f24deb41510f3da5b70da4c49937089a4ab39 (patch) | |
| tree | 06f03dceeed2de05f3016fd1b2ddb9a3b4af8a93 | |
| parent | 87c1358cd6655c1f862785658f58aa67be7fedf3 (diff) | |
| download | ppe42-gcc-277f24deb41510f3da5b70da4c49937089a4ab39.tar.gz ppe42-gcc-277f24deb41510f3da5b70da4c49937089a4ab39.zip | |
Do not accept the IP register as a DFmode operand
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@48914 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/ChangeLog | 2 | ||||
| -rw-r--r-- | 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 <jakub@redhat.com> 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) |

