From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 7939) id 890C0385800A; Tue, 12 Sep 2023 16:33:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 890C0385800A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1694536399; bh=4etK+4l3hGkO98Y3VoC56ZuN8ZTksbhbRfLu0OYInjg=; h=From:To:Subject:Date:From; b=qKushWIn5uOfUKakW4XvlV0uCDYtllxsqUejdTPTW2gPwfBXMtE3mQcskm4ErpWM7 GzXKqpB3mRSwoqGYM8/kamwGiiWZnRxj/dsCDwlNIXTuok/+s/hFj1f5IAgQzO3lZX QHkwk3Cqaxu9Nog/qZVn1hnjf1fJCGxX2JBSwvv0= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Edwin Lu To: gcc-cvs@gcc.gnu.org Subject: [gcc r14-3904] RISC-V: Finish Typing Un-Typed Instructions and Turn on Assert X-Act-Checkin: gcc X-Git-Author: Edwin Lu X-Git-Refname: refs/heads/master X-Git-Oldrev: 52f65d17c85fa513887a3bb31e3c3c329d9ace58 X-Git-Newrev: 360c8cad6a727d5afd43017ca1ce9a84c6db61c5 Message-Id: <20230912163319.890C0385800A@sourceware.org> Date: Tue, 12 Sep 2023 16:33:19 +0000 (GMT) List-Id: https://gcc.gnu.org/g:360c8cad6a727d5afd43017ca1ce9a84c6db61c5 commit r14-3904-g360c8cad6a727d5afd43017ca1ce9a84c6db61c5 Author: Edwin Lu Date: Tue Sep 12 09:31:40 2023 -0700 RISC-V: Finish Typing Un-Typed Instructions and Turn on Assert Updates autovec instruction that was added after last patch and turns on the assert statement to ensure all new instructions have a type. * config/riscv/autovec-opt.md: Update type * config/riscv/riscv.cc (riscv_sched_variable_issue): Enable assert Reviewed-by: Jeff Law Signed-off-by: Edwin Lu Diff: --- gcc/config/riscv/autovec-opt.md | 3 ++- gcc/config/riscv/riscv.cc | 2 -- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/gcc/config/riscv/autovec-opt.md b/gcc/config/riscv/autovec-opt.md index 58e80044f1ee..f1d058ce911b 100644 --- a/gcc/config/riscv/autovec-opt.md +++ b/gcc/config/riscv/autovec-opt.md @@ -649,7 +649,8 @@ gen_int_mode (GET_MODE_NUNITS (mode), Pmode)}; riscv_vector::expand_cond_len_unop (icode, ops); DONE; -}) +} +[(set_attr "type" "vector")]) ;; Combine vlmax neg and UNSPEC_VCOPYSIGN (define_insn_and_split "*copysign_neg" diff --git a/gcc/config/riscv/riscv.cc b/gcc/config/riscv/riscv.cc index 0ecda795b388..9d04ddd69e07 100644 --- a/gcc/config/riscv/riscv.cc +++ b/gcc/config/riscv/riscv.cc @@ -7721,11 +7721,9 @@ riscv_sched_variable_issue (FILE *, int, rtx_insn *insn, int more) if (get_attr_type (insn) == TYPE_GHOST) return 0; -#if 0 /* If we ever encounter an insn with an unknown type, trip an assert so we can find and fix this problem. */ gcc_assert (get_attr_type (insn) != TYPE_UNKNOWN); -#endif return more - 1; }