From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from cvs.linux-mips.org (eddie.linux-mips.org [148.251.95.138]) by sourceware.org (Postfix) with ESMTP id B74483971C15 for ; Fri, 8 Jan 2021 01:51:14 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org B74483971C15 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=linux-mips.org Authentication-Results: sourceware.org; spf=none smtp.mailfrom=macro@linux-mips.org Received: from localhost.localdomain ([127.0.0.1]:40000 "EHLO localhost" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S23993160AbhAHBvNHyCXI (ORCPT ); Fri, 8 Jan 2021 02:51:13 +0100 Date: Fri, 8 Jan 2021 01:51:13 +0000 (GMT) From: "Maciej W. Rozycki" To: Jeff Law , Paul Koning , Richard Sandiford , gcc-patches@gcc.gnu.org Subject: [PATCH 4/4] VAX: Remove a duplicate `cc' mode attribute In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, KHOP_HELO_FCRDNS, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Jan 2021 01:51:16 -0000 Remove the `cc' mode attribute that duplicates the implicitly defined `mode' attribute. No change to semantics. gcc/ * config/vax/vax.md (cc): Remove mode attribute. (subst_, subst_f): Rename to... (subst_, subst_f): ... these respectively. (*cbranch4_): Update for `cc' removal. (*cbranch4_): Likewise. (*branch_, *branch__reversed): Likewise. --- gcc/config/vax/vax.md | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) gcc-vax-cc-mode.diff Index: gcc/gcc/config/vax/vax.md =================================================================== --- gcc.orig/gcc/config/vax/vax.md +++ gcc/gcc/config/vax/vax.md @@ -58,7 +58,6 @@ (define_mode_iterator VAXcc [CC CCN CCNZ CCZ]) (define_mode_iterator VAXccnz [CCN CCNZ CCZ]) -(define_mode_attr cc [(CC "cc") (CCN "ccn") (CCNZ "ccnz") (CCZ "ccz")]) (define_code_iterator any_extract [sign_extract zero_extract]) @@ -67,7 +66,7 @@ (include "predicates.md") ;; Make instructions that set the N, N+Z, and Z condition codes respectively. -(define_subst "subst_" +(define_subst "subst_" [(set (match_operand 0 "") (match_operand 1 "")) (clobber (reg:CC VAX_PSL_REGNUM))] @@ -78,7 +77,7 @@ (set (match_dup 0) (match_dup 1))]) -(define_subst "subst_f" +(define_subst "subst_f" [(set (match_operand:VAXfp 0 "") (match_operand:VAXfp 1 "")) (clobber (reg:CC VAX_PSL_REGNUM))] @@ -2174,7 +2173,7 @@ (define_insn_and_split "*cbranch4_" [(set (pc) (if_then_else - (match_operator 0 "vax__comparison_operator" + (match_operator 0 "vax__comparison_operator" [(match_operand:VAXint 1 "general_operand" "nrmT") (match_operand:VAXint 2 "general_operand" "nrmT")]) (label_ref (match_operand 3 "" "")) @@ -2206,7 +2205,7 @@ (define_insn_and_split "*cbranch4_" [(set (pc) (if_then_else - (match_operator 0 "vax__comparison_operator" + (match_operator 0 "vax__comparison_operator" [(match_operand:VAXfp 1 "general_operand" "gF") (match_operand:VAXfp 2 "general_operand" "gF")]) (label_ref (match_operand 3 "" "")) @@ -2226,7 +2225,7 @@ (define_insn "*branch_" [(set (pc) - (if_then_else (match_operator 0 "vax__comparison_operator" + (if_then_else (match_operator 0 "vax__comparison_operator" [(reg:VAXcc VAX_PSL_REGNUM) (const_int 0)]) (label_ref (match_operand 1 "" "")) @@ -2237,7 +2236,7 @@ ;; Recognize reversed jumps. (define_insn "*branch__reversed" [(set (pc) - (if_then_else (match_operator 0 "vax__comparison_operator" + (if_then_else (match_operator 0 "vax__comparison_operator" [(reg:VAXcc VAX_PSL_REGNUM) (const_int 0)]) (pc)