From patchwork Sat Oct 14 03:06:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "juzhe.zhong@rivai.ai" X-Patchwork-Id: 152886 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp2275858vqb; Fri, 13 Oct 2023 20:06:42 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGIgSgPzOgJhXJEMJsKfv8aixiEokgj4yYV2Gt3gV2s2UEnkKuNkVAcU9QaAjVd0VINGDPZ X-Received: by 2002:a05:620a:2996:b0:775:ed1e:2b14 with SMTP id r22-20020a05620a299600b00775ed1e2b14mr29451690qkp.54.1697252802127; Fri, 13 Oct 2023 20:06:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1697252802; cv=pass; d=google.com; s=arc-20160816; b=Mv0u78vB+EoLgIgFPcm66BtD81WA2WwaDJYo0bODPUhV4penBFDoc2RPeW/9nqEpLd POxCP75HjSXEbD6Aqm0f0OLoNwPcMI44e6ePueMwQrwPMB+LO2AMN/LYcEX20MB0LlPe iC2Sf3tbrU/WreAQvfA6FTgClFVPzy7TQGJdTJ/2hlwt4pFISqDIPuyIYKTTt6dO9lyV ipf0wsx1I77oD1hGgM4SgmUxgbqprCfh2ITSDhHYI/GsVmQUjjedYLh+xJS0ddGCp48a /1yioFl4Qqt4SK+zu1tu91pXECb/rJwltAd2of6BUnt2EfRdX0QrbFSGiNHb4Ncqx6Lc hw+A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:feedback-id :content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dmarc-filter:arc-filter:delivered-to; bh=rutBqV8yrUhajPoYvErY/4G/5NM9iPXJscWvxsXaL0A=; fh=12MRPJmZ1mgDpHqWoogMKqnaGRGM2b7lcuJroqfjJiw=; b=N1eTXhLBVGJXd3sfAN5QlQERT3F0MwQ4IS61Y9vfgkTG96VzWRLa4VUOc9+ppvlwqn 9s3zuQ3bLGQ/7KaaubdyqemF1MSx71QuDHEYLurw5Ca7QKTdE+QtatPalH/kKmhRs2ZN QE+6xJoXr2OsMbcEJnJJjGuKWg1yBnju5Wqql6orK1R70QtVSauzmhZnPHy1FOfUChh4 vOsJE8VNPsZn5rEMIXYnK8wEBV+yOfcnPh46AHErXRd5oAFbQn0EtKCqgcYUzvEjHxsj H3v8ZTePBLkNhDQ/HshEHslrvDV26KEg8wRr1Wl/qwYvWHvCEqWjGJkPvRaN0t7iqbUK SnTg== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id md18-20020a056214589200b0065b21eef93asi2257514qvb.568.2023.10.13.20.06.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 20:06:42 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id A1F2F3857707 for ; Sat, 14 Oct 2023 03:06:41 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtpbgbr1.qq.com (smtpbgbr1.qq.com [54.207.19.206]) by sourceware.org (Postfix) with ESMTPS id BF3823858D28 for ; Sat, 14 Oct 2023 03:06:13 +0000 (GMT) ARC-Filter: OpenARC Filter v1.0.0 sourceware.org BF3823858D28 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=54.207.19.206 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1697252778; cv=none; b=KTRo+fgldPwZgHZ42dbd+vNtBNYue/cQtDZIHiiajzROYjCAXhkitnGzEJOb62HULehqZ2tdTXmI//4o0RiAAUaxWrD5C4mr1x+dlhOCbVJuJv2FEpR8+w1r0tfx2EeN8kUvGYwztC23dWwscgze7mKvpX8/iCminX1yguuLiSk= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1697252778; c=relaxed/simple; bh=7Zro9vRz1FsmNFVXDe4uqedWo+9Ub7w9EHouJ2m1GXw=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=MFzO2b6ZnNaX/XQMo0mqGqC1m+nV92jx8I7oZEBvcWXAyLd2MF5FPN0pCQKnbHi7lSE84/4YDNXFQjdQLHnwzaUrEMe3Gj7GYd7BzoqREQr4KF56CUeUnvL4MS5BMh3H851UO9Ft96Gd3EA1Swb4vWo4V9NqXC5d2ijkxQEtNS8= ARC-Authentication-Results: i=1; server2.sourceware.org DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org BF3823858D28 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=rivai.ai Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=rivai.ai X-QQ-mid: bizesmtp73t1697252764t1ndzhf3 Received: from rios-cad121.hadoop.rioslab.org ( [58.60.1.9]) by bizesmtp.qq.com (ESMTP) with id ; Sat, 14 Oct 2023 11:06:03 +0800 (CST) X-QQ-SSF: 01400000000000G0V000000A0000000 X-QQ-FEAT: 90EFqYDyPxC0PuqZ/w0Su5XLzLE2oJFAWtCFO6vygu+QgVZfk9WzMlfbRNa+D OOxR2GWXB6YVJSuCNFkPmIFiGtr54EtDH5vY0FFHi7H8eKthIige5B8172JrIX113hMyaKo olVWe22uhvLhnEiF+P2nzrivvSnqKrTDk1vAKhsn0+AaT1AJJy6eH0olBz/6OpqmZasdTbh tTTOoFOAxVUfOEnSpQ8l9ucFKc511d4aRwN3pSr3JjFhWfNNk2MIFaGMtEn9K6D6MPTvuuG SjUWt10ReqdqMZrpAvb9EMyhTFFRGa+xdu403dJCHx2MuUkVAS9N54fD/TzciuSD6BibOtc aaeYi0eNKNQ8M/QC4Q0nvLXswE+CQGdC3WF8c0RZNowWfKsHvsGteElulBJ4A== X-QQ-GoodBg: 2 X-BIZMAIL-ID: 7677330706544782529 From: Juzhe-Zhong To: gcc-patches@gcc.gnu.org Cc: kito.cheng@gmail.com, kito.cheng@sifive.com, jeffreyalaw@gmail.com, rdapp.gcc@gmail.com, Juzhe-Zhong Subject: [Committed] RISC-V: Remove redundant iterators. Date: Sat, 14 Oct 2023 11:06:02 +0800 Message-Id: <20231014030602.3813735-1-juzhe.zhong@rivai.ai> X-Mailer: git-send-email 2.36.3 MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:rivai.ai:qybglogicsvrgz:qybglogicsvrgz7a-one-0 X-Spam-Status: No, score=-12.6 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_PASS, TXREP, UPPERCASE_50_75 autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779698554302373526 X-GMAIL-MSGID: 1779698554302373526 These iterators are redundant, removed and commmitted. gcc/ChangeLog: * config/riscv/vector-iterators.md: Remove redundant iterators. --- gcc/config/riscv/vector-iterators.md | 110 --------------------------- 1 file changed, 110 deletions(-) diff --git a/gcc/config/riscv/vector-iterators.md b/gcc/config/riscv/vector-iterators.md index 96ddd34c958..6800f8d3d76 100644 --- a/gcc/config/riscv/vector-iterators.md +++ b/gcc/config/riscv/vector-iterators.md @@ -295,83 +295,6 @@ RVVM1QI RVVMF2QI RVVMF4QI (RVVMF8QI "TARGET_MIN_VLEN > 32") ]) -(define_mode_iterator VLMULEXT2 [ - RVVM4QI RVVM2QI RVVM1QI RVVMF2QI RVVMF4QI (RVVMF8QI "TARGET_MIN_VLEN > 32") - - RVVM4HI RVVM2HI RVVM1HI RVVMF2HI (RVVMF4HI "TARGET_MIN_VLEN > 32") - - (RVVM4HF "TARGET_VECTOR_ELEN_FP_16") (RVVM2HF "TARGET_VECTOR_ELEN_FP_16") - (RVVM1HF "TARGET_VECTOR_ELEN_FP_16") (RVVMF2HF "TARGET_VECTOR_ELEN_FP_16") - (RVVMF4HF "TARGET_VECTOR_ELEN_FP_16 && TARGET_MIN_VLEN > 32") - - RVVM4SI RVVM2SI RVVM1SI (RVVMF2SI "TARGET_MIN_VLEN > 32") - - (RVVM4SF "TARGET_VECTOR_ELEN_FP_32") (RVVM2SF "TARGET_VECTOR_ELEN_FP_32") - (RVVM1SF "TARGET_VECTOR_ELEN_FP_32") (RVVMF2SF "TARGET_VECTOR_ELEN_FP_32 && TARGET_MIN_VLEN > 32") - - (RVVM4DI "TARGET_VECTOR_ELEN_64") (RVVM2DI "TARGET_VECTOR_ELEN_64") (RVVM1DI "TARGET_VECTOR_ELEN_64") - - (RVVM4DF "TARGET_VECTOR_ELEN_FP_64") (RVVM2DF "TARGET_VECTOR_ELEN_FP_64") (RVVM1DF "TARGET_VECTOR_ELEN_FP_64") -]) - -(define_mode_iterator VLMULEXT4 [ - RVVM2QI RVVM1QI RVVMF2QI RVVMF4QI (RVVMF8QI "TARGET_MIN_VLEN > 32") - - RVVM2HI RVVM1HI RVVMF2HI (RVVMF4HI "TARGET_MIN_VLEN > 32") - - (RVVM2HF "TARGET_VECTOR_ELEN_FP_16") (RVVM1HF "TARGET_VECTOR_ELEN_FP_16") (RVVMF2HF "TARGET_VECTOR_ELEN_FP_16") - (RVVMF4HF "TARGET_VECTOR_ELEN_FP_16 && TARGET_MIN_VLEN > 32") - - RVVM2SI RVVM1SI (RVVMF2SI "TARGET_MIN_VLEN > 32") - - (RVVM2SF "TARGET_VECTOR_ELEN_FP_32") (RVVM1SF "TARGET_VECTOR_ELEN_FP_32") (RVVMF2SF "TARGET_VECTOR_ELEN_FP_32 && TARGET_MIN_VLEN > 32") - - (RVVM2DI "TARGET_VECTOR_ELEN_64") (RVVM1DI "TARGET_VECTOR_ELEN_64") - - (RVVM2DF "TARGET_VECTOR_ELEN_FP_64") (RVVM1DF "TARGET_VECTOR_ELEN_FP_64") -]) - -(define_mode_iterator VLMULEXT8 [ - RVVM1QI RVVMF2QI RVVMF4QI (RVVMF8QI "TARGET_MIN_VLEN > 32") - - RVVM1HI RVVMF2HI (RVVMF4HI "TARGET_MIN_VLEN > 32") - - (RVVM1HF "TARGET_VECTOR_ELEN_FP_16") (RVVMF2HF "TARGET_VECTOR_ELEN_FP_16") - (RVVMF4HF "TARGET_VECTOR_ELEN_FP_16 && TARGET_MIN_VLEN > 32") - - RVVM1SI (RVVMF2SI "TARGET_MIN_VLEN > 32") - - (RVVM1SF "TARGET_VECTOR_ELEN_FP_32") (RVVMF2SF "TARGET_VECTOR_ELEN_FP_32 && TARGET_MIN_VLEN > 32") - - (RVVM1DI "TARGET_VECTOR_ELEN_64") - - (RVVM1DF "TARGET_VECTOR_ELEN_FP_64") -]) - -(define_mode_iterator VLMULEXT16 [ - RVVMF2QI RVVMF4QI (RVVMF8QI "TARGET_MIN_VLEN > 32") - - RVVMF2HI (RVVMF4HI "TARGET_MIN_VLEN > 32") - - (RVVMF2HF "TARGET_VECTOR_ELEN_FP_16") (RVVMF4HF "TARGET_VECTOR_ELEN_FP_16 && TARGET_MIN_VLEN > 32") - - (RVVMF2SI "TARGET_MIN_VLEN > 32") - - (RVVMF2SF "TARGET_VECTOR_ELEN_FP_32 && TARGET_MIN_VLEN > 32") -]) - -(define_mode_iterator VLMULEXT32 [ - RVVMF4QI (RVVMF8QI "TARGET_MIN_VLEN > 32") - - (RVVMF4HI "TARGET_MIN_VLEN > 32") - - (RVVMF4HF "TARGET_VECTOR_ELEN_FP_16 && TARGET_MIN_VLEN > 32") -]) - -(define_mode_iterator VLMULEXT64 [ - (RVVMF8QI "TARGET_MIN_VLEN > 32") -]) - (define_mode_iterator VEI16 [ RVVM4QI RVVM2QI RVVM1QI RVVMF2QI RVVMF4QI (RVVMF8QI "TARGET_MIN_VLEN > 32") @@ -1579,39 +1502,6 @@ RVVM4x2QI ]) -(define_mode_iterator VQI [ - RVVM8QI RVVM4QI RVVM2QI RVVM1QI RVVMF2QI RVVMF4QI (RVVMF8QI "TARGET_MIN_VLEN > 32") -]) - -(define_mode_iterator VHI [ - RVVM8HI RVVM4HI RVVM2HI RVVM1HI RVVMF2HI (RVVMF4HI "TARGET_MIN_VLEN > 32") -]) - -(define_mode_iterator VSI [ - RVVM8SI RVVM4SI RVVM2SI RVVM1SI (RVVMF2SI "TARGET_MIN_VLEN > 32") -]) - -(define_mode_iterator VDI [ - (RVVM8DI "TARGET_VECTOR_ELEN_64") (RVVM4DI "TARGET_VECTOR_ELEN_64") - (RVVM2DI "TARGET_VECTOR_ELEN_64") (RVVM1DI "TARGET_VECTOR_ELEN_64") -]) - -(define_mode_iterator VHF [ - (RVVM8HF "TARGET_ZVFH") (RVVM4HF "TARGET_ZVFH") (RVVM2HF "TARGET_ZVFH") - (RVVM1HF "TARGET_ZVFH") (RVVMF2HF "TARGET_ZVFH") - (RVVMF4HF "TARGET_ZVFH && TARGET_MIN_VLEN > 32") -]) - -(define_mode_iterator VSF [ - (RVVM8SF "TARGET_VECTOR_ELEN_FP_32") (RVVM4SF "TARGET_VECTOR_ELEN_FP_32") (RVVM2SF "TARGET_VECTOR_ELEN_FP_32") - (RVVM1SF "TARGET_VECTOR_ELEN_FP_32") (RVVMF2SF "TARGET_VECTOR_ELEN_FP_32 && TARGET_MIN_VLEN > 32") -]) - -(define_mode_iterator VDF [ - (RVVM8DF "TARGET_VECTOR_ELEN_FP_64") (RVVM4DF "TARGET_VECTOR_ELEN_FP_64") - (RVVM2DF "TARGET_VECTOR_ELEN_FP_64") (RVVM1DF "TARGET_VECTOR_ELEN_FP_64") -]) - (define_mode_attr V_LMUL1 [ (RVVM8QI "RVVM1QI") (RVVM4QI "RVVM1QI") (RVVM2QI "RVVM1QI") (RVVM1QI "RVVM1QI") (RVVMF2QI "RVVM1QI") (RVVMF4QI "RVVM1QI") (RVVMF8QI "RVVM1QI")