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

login
register
mail settings
Submitter Joern Rennecke
Date Nov. 15, 2011, 7:12 p.m.
Message ID <20111115141241.lvlj66nt70o8cooc-nzlynne@webmail.spamcop.net>
Download mbox | patch
Permalink /patch/125856/
State New
Headers show

Comments

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

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.