diff mbox

RX: Fix type in cstoresf4 pattern

Message ID m3k4hwudfr.fsf@redhat.com
State New
Headers show

Commit Message

Nick Clifton Jan. 22, 2011, 4:10 p.m. UTC
Hi Guys,

  I am applying the patch below as an obvious fix to the cstoresf4
  pattern in the rx.md file.  The rx_split_fp_compare function takes
  the comparison code as its first argument, but the register operand
  was being passed by mistake.

Cheers
  Nick

gcc/ChangeLog
2011-01-22  Nick Clifton  <nickc@redhat.com>

	* config/rx/rx.md (cstoresf4): Pass comparison operator to
	rx_split_fp_compare.
diff mbox

Patch

Index: gcc/config/rx/rx.md
===================================================================
--- gcc/config/rx/rx.md	(revision 169128)
+++ gcc/config/rx/rx.md	(working copy)
@@ -762,7 +762,7 @@ 
 
   /* If the comparison needs swapping of operands, do that now.
      Do not split the comparison in two yet.  */
-  if (rx_split_fp_compare (GET_CODE (operands[0]), &cmp1, &cmp2))
+  if (rx_split_fp_compare (GET_CODE (operands[1]), &cmp1, &cmp2))
     {
       rtx op2, op3;