OSDN Git Service

* config/mep/mep.c (mep_legitimize_arg): Leave control registers
authordj <dj@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 21 Jul 2009 23:49:41 +0000 (23:49 +0000)
committerdj <dj@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 21 Jul 2009 23:49:41 +0000 (23:49 +0000)
alone too.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@149869 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/mep/mep.c

index 670b06c..ced279d 100644 (file)
@@ -1,3 +1,8 @@
+2009-07-21  DJ Delorie  <dj@redhat.com>
+
+       * config/mep/mep.c (mep_legitimize_arg): Leave control registers
+       alone too.
+
 2009-07-21  Jason Merrill  <jason@redhat.com>
 
        * c-common.c (max_tinst_depth): Increase default to 1024.
index 80d2018..a5869ca 100644 (file)
@@ -6204,7 +6204,9 @@ mep_legitimize_arg (const struct insn_operand_data *operand, rtx arg,
   /* But not for control registers.  */
   if (operand->constraint[0] == '='
       && (! REG_P (arg)
-         || ! (CCR_REGNO_P (REGNO (arg)) || CR_REGNO_P (REGNO (arg)))
+         || ! (CONTROL_REGNO_P (REGNO (arg))
+               || CCR_REGNO_P (REGNO (arg))
+               || CR_REGNO_P (REGNO (arg)))
          ))
     return gen_reg_rtx (operand->mode);