public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* [mep] legitimizing control registers
@ 2009-07-21 23:49 DJ Delorie
  0 siblings, 0 replies; only message in thread
From: DJ Delorie @ 2009-07-21 23:49 UTC (permalink / raw)
  To: gcc


Committed.

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

Index: config/mep/mep.c
===================================================================
--- config/mep/mep.c	(revision 149868)
+++ config/mep/mep.c	(working copy)
@@ -6201,13 +6201,15 @@ mep_legitimize_arg (const struct insn_op
      The caller will copy this value into ARG after the main
      instruction.  By doing this always, we produce slightly more
      optimal code.  */
   /* 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);
 
   /* Try simple mode punning.  */
   arg = mep_convert_arg (operand->mode, arg);
   if (operand->predicate (arg, operand->mode))

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-07-21 23:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-21 23:49 [mep] legitimizing control registers DJ Delorie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).