Hi Guys,

  I am applying the patch below to fix a problem building libgcc for the
  mcore-elf target.  The cbranchsi4 pattern was applying a mode to the
  comparison operator which was preventing it from matching rtl
  generated by the middle end.

Cheers
  Nick

gcc/ChangeLog
2012-08-17  Nick Clifton  <ni...@redhat.com>

        * config/mcore/mcore.md (cbranchsi4): Remove mode from
        comparison.
  
Index: gcc/config/mcore/mcore.md
===================================================================
--- gcc/config/mcore/mcore.md   (revision 190466)
+++ gcc/config/mcore/mcore.md   (working copy)
@@ -1502,7 +1502,7 @@
 
 (define_expand "cbranchsi4"
   [(set (pc)
-       (if_then_else (match_operator:SI 0 "ordered_comparison_operator"
+       (if_then_else (match_operator 0 "ordered_comparison_operator"
                       [(match_operand:SI 1 "mcore_compare_operand")
                        (match_operand:SI 2 "nonmemory_operand")])
                      (label_ref (match_operand 3 ""))
  

Reply via email to