This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Committed: fix typo in epiphany.md:mov<mode>cc


David Bremner alerted be to the presence of a typo in the Epiphany
mov<mode>cc pattern.  I have checked in the attached patch as obvious.
2011-11-15  Joern Rennecke  <joern.rennecke@embecosm.com>

	* config/epiphany/epiphany.md (mov<mode>cc): Fix code to
	get mode from CMP_OP1 if CMP_OP0 is VOIDmode.

Index: config/epiphany/epiphany.md
===================================================================
--- config/epiphany/epiphany.md	(revision 181387)
+++ config/epiphany/epiphany.md	(working copy)
@@ -1711,7 +1711,7 @@ (define_expand "mov<mode>cc"
 
   cmp_in_mode = GET_MODE (cmp_op0);
   if (cmp_in_mode == VOIDmode)
-    cmp_in_mode = GET_MODE (cmp_op0);
+    cmp_in_mode = GET_MODE (cmp_op1);
   if (cmp_in_mode == VOIDmode)
     cmp_in_mode = SImode;
   /* If the operands are a better match when reversed, swap them now.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]