diff mbox

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

Message ID 20111115141241.lvlj66nt70o8cooc-nzlynne@webmail.spamcop.net
State New
Headers show

Commit Message

Joern Rennecke Nov. 15, 2011, 7:12 p.m. UTC
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.
diff mbox

Patch

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.