From patchwork Fri May 19 10:31:00 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Zissulescu X-Patchwork-Id: 764569 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]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3wTkw06dDxz9s4s for ; Fri, 19 May 2017 20:35:12 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="nN5OqP2Z"; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-type; q=dns; s=default; b=IrwqrOCBxRBo/mMh DFF+y97oHTiZA4X8LhP5bC2IJgVc+jZkYdb1MIxVMySddrpqOrwabt/kw3TAjygO AFNucOL5KEk+8MlCdOCgSFEqyUtlCARFPUWQbFYvu0jASiXl0XRW6Wx29BMBkPRv xFcpeG+77SVKKfq/pgegz9u9ZDA= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-type; s=default; bh=7oRBP8dQRaulzVqrJHo04m W5KoU=; b=nN5OqP2ZOYgPzqWKq0twb7oMf7uTb1LO/45oIYORh3HyBGC2dgeO98 Tx+I+7OjI43ZsxDuiZbzgQ5BAoPF3iHnGq2nNrwL0CEGqEbKJLJAk0vWQaagWaSv kaUM7zAQISlp4NaGC43w0AcCJBAq3Bki53/FLGVp6BdX9DCNwv5Pc= Received: (qmail 25312 invoked by alias); 19 May 2017 10:34:01 -0000 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 Received: (qmail 25180 invoked by uid 89); 19 May 2017 10:34:00 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-23.7 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_LAZY_DOMAIN_SECURITY, RCVD_IN_DNSWL_NONE, RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=xx, cal X-HELO: smtprelay.synopsys.com Received: from smtprelay4.synopsys.com (HELO smtprelay.synopsys.com) (198.182.47.9) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 19 May 2017 10:33:58 +0000 Received: from mailhost.synopsys.com (mailhost1.synopsys.com [10.12.238.239]) by smtprelay.synopsys.com (Postfix) with ESMTP id E54EF24E0DF2; Fri, 19 May 2017 03:34:00 -0700 (PDT) Received: from mailhost.synopsys.com (localhost [127.0.0.1]) by mailhost.synopsys.com (Postfix) with ESMTP id CF57A5BB; Fri, 19 May 2017 03:34:00 -0700 (PDT) Received: from us01wehtc1.internal.synopsys.com (us01wehtc1-vip.internal.synopsys.com [10.12.239.236]) by mailhost.synopsys.com (Postfix) with ESMTP id C59E85B9; Fri, 19 May 2017 03:34:00 -0700 (PDT) Received: from IN01WEHTCB.internal.synopsys.com (10.144.199.106) by us01wehtc1.internal.synopsys.com (10.12.239.231) with Microsoft SMTP Server (TLS) id 14.3.266.1; Fri, 19 May 2017 03:34:00 -0700 Received: from IN01WEHTCA.internal.synopsys.com (10.144.199.103) by IN01WEHTCB.internal.synopsys.com (10.144.199.105) with Microsoft SMTP Server (TLS) id 14.3.266.1; Fri, 19 May 2017 16:03:57 +0530 Received: from nl20droid1.internal.synopsys.com (10.100.24.228) by IN01WEHTCA.internal.synopsys.com (10.144.199.243) with Microsoft SMTP Server (TLS) id 14.3.266.1; Fri, 19 May 2017 16:03:57 +0530 From: Claudiu Zissulescu To: CC: , , Subject: [PATCH 5/7] [ARC] Update (non)commutative_binary_comparison patterns. Date: Fri, 19 May 2017 12:31:00 +0200 Message-ID: <1495189862-20533-6-git-send-email-claziss@synopsys.com> In-Reply-To: <1495189862-20533-1-git-send-email-claziss@synopsys.com> References: <1495189862-20533-1-git-send-email-claziss@synopsys.com> MIME-Version: 1.0 gcc/ 2016-12-20 Claudiu Zissulescu * config/arc/arc.md (commutative_binary_comparison): Remove 'I' constraint. It is not valid for the pattern. (noncommutative_binary_comparison): Likewise. --- gcc/config/arc/arc.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/gcc/config/arc/arc.md b/gcc/config/arc/arc.md index c0ad86c..743a844 100644 --- a/gcc/config/arc/arc.md +++ b/gcc/config/arc/arc.md @@ -948,15 +948,15 @@ [(set (match_operand:CC_ZN 0 "cc_set_register" "") (match_operator:CC_ZN 5 "zn_compare_operator" [(match_operator:SI 4 "commutative_operator" - [(match_operand:SI 1 "register_operand" "%c,c,c") - (match_operand:SI 2 "nonmemory_operand" "cL,I,?Cal")]) + [(match_operand:SI 1 "register_operand" "%c,c") + (match_operand:SI 2 "nonmemory_operand" "cL,Cal")]) (const_int 0)])) - (clobber (match_scratch:SI 3 "=X,1,X"))] + (clobber (match_scratch:SI 3 "=X,X"))] "" "%O4.f 0,%1,%2" [(set_attr "type" "compare") (set_attr "cond" "set_zn") - (set_attr "length" "4,4,8")]) + (set_attr "length" "4,8")]) ; for flag setting 'add' instructions like if (a+b) { ...} ; the combiner needs this pattern @@ -1050,15 +1050,15 @@ [(set (match_operand:CC_ZN 0 "cc_set_register" "") (match_operator:CC_ZN 5 "zn_compare_operator" [(match_operator:SI 4 "noncommutative_operator" - [(match_operand:SI 1 "register_operand" "c,c,c") - (match_operand:SI 2 "nonmemory_operand" "cL,I,?Cal")]) + [(match_operand:SI 1 "register_operand" "c,c") + (match_operand:SI 2 "nonmemory_operand" "cL,Cal")]) (const_int 0)])) - (clobber (match_scratch:SI 3 "=X,1,X"))] + (clobber (match_scratch:SI 3 "=X,X"))] "TARGET_BARREL_SHIFTER || GET_CODE (operands[4]) == MINUS" "%O4.f 0,%1,%2" [(set_attr "type" "compare") (set_attr "cond" "set_zn") - (set_attr "length" "4,4,8")]) + (set_attr "length" "4,8")]) (define_expand "bic_f_zn" [(parallel