From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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-Archive: List-Post: List-Help: Sender: gcc-patches-owner@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 10:34:00 -0000 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 Content-Type: text/plain X-SW-Source: 2017-05/txt/msg01540.txt.bz2 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 -- 1.9.1