From 7f5c4d23db82f3cf499de144894615c84e4e7f64 Mon Sep 17 00:00:00 2001 From: "Maciej W. Rozycki" Date: Fri, 8 Jan 2021 01:51:13 +0000 Subject: [PATCH] VAX: Remove a duplicate `cc' mode attribute 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(-) diff --git a/gcc/config/vax/vax.md b/gcc/config/vax/vax.md index 49d3eab8a20..0a2c86cef9a 100644 --- a/gcc/config/vax/vax.md +++ b/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) -- 2.30.2