catch a SUBREG containing a constant.
authornickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 22 Jan 2000 19:42:34 +0000 (19:42 +0000)
committernickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 22 Jan 2000 19:42:34 +0000 (19:42 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31562 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/arm/arm.c

index a19dd4d..1b58f09 100644 (file)
@@ -1,3 +1,8 @@
+2000-01-22  Bernd Schmidt  <bernds@cygnus.co.uk>
+
+       * config/arm/arm.c (soft_df_operand): Reject SUBREGs containing a
+       constant.
+
 2000-01-21  Jim Wilson  <wilson@cygnus.com>
 
        * fixinc/inclhack.tpl: Test for directory before trying to cd into it.
index aa4801e..c3c5360 100644 (file)
@@ -2307,6 +2307,9 @@ soft_df_operand (op, mode)
   if (mode != VOIDmode && GET_MODE (op) != mode)
     return FALSE;
 
+  if (GET_CODE (op) == SUBREG && CONSTANT_P (SUBREG_REG (op)))
+    return FALSE;
+  
   if (GET_CODE (op) == SUBREG)
     op = SUBREG_REG (op);