From patchwork Sun Jun 12 10:34:02 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anthony Green X-Patchwork-Id: 100072 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id BBDEFB7083 for ; Sun, 12 Jun 2011 20:34:21 +1000 (EST) Received: (qmail 30053 invoked by alias); 12 Jun 2011 10:34:19 -0000 Received: (qmail 29843 invoked by uid 22791); 12 Jun 2011 10:34:19 -0000 X-SWARE-Spam-Status: No, hits=-0.0 required=5.0 tests=BAYES_20, RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from smtpoutwbe04.prod.mesa1.secureserver.net (HELO smtpoutwbe04.prod.mesa1.secureserver.net) (208.109.78.206) by sourceware.org (qpsmtpd/0.43rc1) with SMTP; Sun, 12 Jun 2011 10:34:04 +0000 Received: (qmail 19516 invoked from network); 12 Jun 2011 10:34:03 -0000 Received: from unknown (HELO localhost) (72.167.218.131) by smtpoutwbe04.prod.mesa1.secureserver.net with SMTP; 12 Jun 2011 10:34:03 -0000 Received: (qmail 14204 invoked by uid 99); 12 Jun 2011 10:34:03 -0000 User-Agent: Web-Based Email 5.5.04 Message-Id: <20110612033402.aaa2c6acbe2fcbd4897bea2c255aade5.2b1aaa01c5.wbe@email03.secureserver.net> From: "Anthony Green" To: gcc-patches@gcc.gnu.org Cc: richard.sandiford@linaro.org Subject: [patch, moxie] Fix comparison regression Date: Sun, 12 Jun 2011 03:34:02 -0700 Mime-Version: 1.0 X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org 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 * config/moxie/moxie.md (cbranchsi4): Remove mode from comparison. 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)))]