From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 49953 invoked by alias); 6 Jun 2017 15:57:28 -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 49909 invoked by uid 89); 6 Jun 2017 15:57:28 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-23.9 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,KAM_LAZY_DOMAIN_SECURITY,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy= X-HELO: gcc1-power7.osuosl.org Received: from gcc1-power7.osuosl.org (HELO gcc1-power7.osuosl.org) (140.211.15.137) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 06 Jun 2017 15:57:25 +0000 Received: by gcc1-power7.osuosl.org (Postfix, from userid 10019) id D44221C06BC; Tue, 6 Jun 2017 15:57:27 +0000 (UTC) From: Segher Boessenkool To: gcc-patches@gcc.gnu.org Cc: dje.gcc@gmail.com, Segher Boessenkool Subject: [PATCH 04/14] rs6000: Remove rs6000_cbranch_operator Date: Tue, 06 Jun 2017 15:57:00 -0000 Message-Id: In-Reply-To: References: In-Reply-To: References: X-IsSubscribed: yes X-SW-Source: 2017-06/txt/msg00329.txt.bz2 rs6000_cbranch_operator now is just comparison_operator, so just use that directly. 2017-06-06 Segher Boessenkool * config/rs6000/predicated.md (rs6000_cbranch_operator): Delete. * config/rs6000/rs6000.md: Replace rs6000_cbranch_operator by comparison_operator. --- gcc/config/rs6000/predicates.md | 4 ---- gcc/config/rs6000/rs6000.md | 8 ++++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/gcc/config/rs6000/predicates.md b/gcc/config/rs6000/predicates.md index dd961a7..11aecbd 100644 --- a/gcc/config/rs6000/predicates.md +++ b/gcc/config/rs6000/predicates.md @@ -1238,10 +1238,6 @@ (define_predicate "branch_comparison_operator" GET_MODE (XEXP (op, 0))), 1")))) -;; Return 1 if OP is a valid comparison operator for "cbranch" instructions. -(define_predicate "rs6000_cbranch_operator" - (match_operand 0 "comparison_operator")) - ;; Return 1 if OP is an unsigned comparison operator. (define_predicate "unsigned_comparison_operator" (match_code "ltu,gtu,leu,geu")) diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md index efca26c..108ad8f 100644 --- a/gcc/config/rs6000/rs6000.md +++ b/gcc/config/rs6000/rs6000.md @@ -11430,7 +11430,7 @@ (define_insn "probe_stack_range" ;; insns, and branches. (define_expand "cbranch4" - [(use (match_operator 0 "rs6000_cbranch_operator" + [(use (match_operator 0 "comparison_operator" [(match_operand:GPR 1 "gpc_reg_operand" "") (match_operand:GPR 2 "reg_or_short_operand" "")])) (use (match_operand 3 ""))] @@ -11453,7 +11453,7 @@ (define_expand "cbranch4" }") (define_expand "cbranch4" - [(use (match_operator 0 "rs6000_cbranch_operator" + [(use (match_operator 0 "comparison_operator" [(match_operand:FP 1 "gpc_reg_operand" "") (match_operand:FP 2 "gpc_reg_operand" "")])) (use (match_operand 3 ""))] @@ -11683,7 +11683,7 @@ (define_expand "cstore4_unsigned_imm" }) (define_expand "cstore4" - [(use (match_operator 1 "rs6000_cbranch_operator" + [(use (match_operator 1 "comparison_operator" [(match_operand:GPR 2 "gpc_reg_operand") (match_operand:GPR 3 "reg_or_short_operand")])) (clobber (match_operand:GPR 0 "gpc_reg_operand"))] @@ -11746,7 +11746,7 @@ (define_expand "cstore4" }) (define_expand "cstore4" - [(use (match_operator 1 "rs6000_cbranch_operator" + [(use (match_operator 1 "comparison_operator" [(match_operand:FP 2 "gpc_reg_operand") (match_operand:FP 3 "gpc_reg_operand")])) (clobber (match_operand:SI 0 "gpc_reg_operand"))] -- 1.9.3