This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Committed: fix typo in epiphany.md:mov<mode>cc
- From: Joern Rennecke <amylaar at spamcop dot net>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 15 Nov 2011 14:12:41 -0500
- Subject: 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.