mep.c (mep_legitimize_arg): Leave control registers alone too.

* config/mep/mep.c (mep_legitimize_arg): Leave control registers
alone too.

From-SVN: r149869
This commit is contained in:
DJ Delorie 2009-07-21 19:49:41 -04:00 committed by DJ Delorie
parent 4afe7ad7fb
commit 072ebd49e9
2 changed files with 8 additions and 1 deletions

View 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.

View 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);