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 <[email protected]>
* 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.