Patchwork [moxie] Fix comparison regression

login
register
mail settings
Submitter Anthony Green
Date June 12, 2011, 10:34 a.m.
Message ID <20110612033402.aaa2c6acbe2fcbd4897bea2c255aade5.2b1aaa01c5.wbe@email03.secureserver.net>
Download mbox | patch
Permalink /patch/100072/
State New
Headers show

Comments

Anthony Green - June 12, 2011, 10:34 a.m.
I've just committed this patch.  It makes match_operator modeless for
moxie comparisons.  This fixes a regression introduced in March by this
patch:  http://gcc.gnu.org/ml/gcc-patches/2011-03/msg01344.html

2011-06-12  Anthony Green  <green@moxielogic.com>

        * config/moxie/moxie.md (cbranchsi4): Remove mode from
comparison.

Patch

Index: gcc/config/moxie/moxie.md
===================================================================
--- gcc/config/moxie/moxie.md   (revision 174933)
+++ gcc/config/moxie/moxie.md   (working copy)
@@ -308,7 +308,7 @@ 
          (match_operand:SI 1 "general_operand" "")
          (match_operand:SI 2 "general_operand" "")))
    (set (pc)
-        (if_then_else (match_operator:CC 0 "comparison_operator"
+        (if_then_else (match_operator 0 "comparison_operator"
                        [(reg:CC CC_REG) (const_int 0)])
                       (label_ref (match_operand 3 "" ""))
                       (pc)))]