]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
mep.c (mep_legitimize_arg): Leave control registers alone too.
authorDJ Delorie <dj@redhat.com>
Tue, 21 Jul 2009 23:49:41 +0000 (19:49 -0400)
committerDJ Delorie <dj@gcc.gnu.org>
Tue, 21 Jul 2009 23:49:41 +0000 (19:49 -0400)
* config/mep/mep.c (mep_legitimize_arg): Leave control registers
alone too.

From-SVN: r149869

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

index 670b06ccf4771f1d281ea065dc3cad9674759619..ced279d4adf953491dfbbb3436aea96a78337615 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 80d201840552728a199ccb168d731abe3a9b91a1..a5869ca1c18aa3eff1f4264bf4818986104c450a 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);