From patchwork Sat Sep 9 04:30:26 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: 137820 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ab0a:0:b0:3f2:4152:657d with SMTP id m10csp945732vqo; Fri, 8 Sep 2023 21:31:14 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG19xeoMvqbeqLiptMAH+mgHWc/gRiwo4cG1We4UZyigMwy+d9tR3QLlepbhgPtFACeftgt X-Received: by 2002:a2e:9588:0:b0:2b9:4413:864e with SMTP id w8-20020a2e9588000000b002b94413864emr3330412ljh.53.1694233874070; Fri, 08 Sep 2023 21:31:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694233874; cv=none; d=google.com; s=arc-20160816; b=Oqzz0g9YY9cZFDRhhohZ/Hhm9OlyaJr0s3J3qPGjtWVLd8NX6QnS7aFGrdeDfkIo+R 5HxxcfACrXc3m7diH0FP2AM81qhuJ0v/rASZqRB3w/hkFUvjop1Gv6XpB8nA0s1sUuwv hq4y4UmP+pfUjSr7XlfpjzAehzIZHWgcc/yYHE/wI4GeoqnX4nWO78PIoIq7fbWtmkRj qmx8JtGEEubTQQz8UWe6TI9sRMPHNSKJJgNXV0CcrhzIgblqjLt6aBA3NtunKokfmLjz Kjoh3iJJTUkYeHmHxlaYPs5Til3Dr96cOGL5yYgTvwoFQI/bChBS1dJpJzepWgFLqhit baww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:feedback-id :content-transfer-encoding:mime-version:message-id:date:subject:to :from:dmarc-filter:delivered-to; bh=1nQCPKf2K35Ze24Fb04GHTdCt1MsVWN9SSVzXFJlFao=; fh=arl273cIQBNH1P6XLxHQvF0scgitfd773vOV+bwQx3o=; b=nFoXq6ZVWqiqwr3s8TnhTxvxj9pbbAq4h17yXIFXNUpR2lztO3fG+uuoAD025GeiMm n43ihj7Eeop4txbvPbmX/xMNbgofGgLQB3v6FhmHwVuP0VEKiuTQJ34uia1qk2lZmYgE Et+s8/mtF4qaAgsasgRpqagXTTPPIEuF7cULqoEiRIHxsUUg+KFH+X94H/SNHs33RBVS 5+o5tKolCi3g4hWbcRmps7WNfu8xZu+K7rVK91ZInqHN85rmq5FzSmirTBgUCoE7QpU9 yOs8i1oNrLLK8QU3DoNOazAm0GnUHna88cs8wLNAtNagnvEJaQV3bAGNdNEe/vypepSo 3rbQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id md13-20020a170906ae8d00b00992ac91eb76si2542264ejb.684.2023.09.08.21.31.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Sep 2023 21:31:14 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c 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 2AC463857036 for ; Sat, 9 Sep 2023 04:31:03 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtpbg151.qq.com (smtpbg151.qq.com [18.169.211.239]) by sourceware.org (Postfix) with ESMTPS id 5767B3858D35 for ; Sat, 9 Sep 2023 04:30:35 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5767B3858D35 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: bizesmtp82t1694233829tuz4ubh0 Received: from rios-cad122.hadoop.rioslab.org ( [58.60.1.26]) by bizesmtp.qq.com (ESMTP) with id ; Sat, 09 Sep 2023 12:30:27 +0800 (CST) X-QQ-SSF: 01400000000000G0V000000A0000000 X-QQ-FEAT: LE7C6P2vL8TSk1aXNN4h/EvEmhLV4SMQFi2MrmrWs4yRCRPt+VHmRBom358W3 6daUlgUu748WbqU2DeBzI9wu6qtLSZEvdrpBb6AIveA4Pl/4yUbNmorc+XRzq8l4sEdKsAT 9Lyd3UQ5DBlFZkSdLpld8Qpdjhwtydvos8xI0h6nNjufHqNluLH9/hGzkSibVeI19jLpNW1 800Md3IMvPUSBdJDed1+Q/tdj/r00vE9+F+9YKqA78baz5UfqQbbgFKI4um/LG2xJ4Znydg soWfwitPgr+75FIx6v62O6QRL6YatU3KxaeXCtAUAsc9p8+UBSUf+Ylwrssv9SSttygPlQn Q5l+D4xJ9O/6O8eAkkBJqdp7tZ5HCshmCPUFYj+BOFCa8+5eJU= X-QQ-GoodBg: 2 X-BIZMAIL-ID: 17092884742665872367 From: Juzhe-Zhong To: gcc-patches@gcc.gnu.org Subject: [Committed] RISC-V: Fix VLS floating-point operations predicate Date: Sat, 9 Sep 2023 12:30:26 +0800 Message-Id: <20230909043026.2001914-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=-10.6 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, 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: , Cc: kito.cheng@sifive.com, kito.cheng@gmail.com, Juzhe-Zhong Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1776532978896526498 X-GMAIL-MSGID: 1776532978896526498 VLS vfadd should depend on ZVFH instead of ZVFHMIN. Obvious fix and committed. gcc/ChangeLog: * config/riscv/vector-iterators.md: Fix floating-point operations predicate. --- gcc/config/riscv/vector-iterators.md | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/gcc/config/riscv/vector-iterators.md b/gcc/config/riscv/vector-iterators.md index caef8157e5a..baa93b776ad 100644 --- a/gcc/config/riscv/vector-iterators.md +++ b/gcc/config/riscv/vector-iterators.md @@ -456,18 +456,18 @@ (RVVM8DF "TARGET_VECTOR_ELEN_FP_64") (RVVM4DF "TARGET_VECTOR_ELEN_FP_64") (RVVM2DF "TARGET_VECTOR_ELEN_FP_64") (RVVM1DF "TARGET_VECTOR_ELEN_FP_64") - (V1HF "TARGET_VECTOR_VLS && TARGET_VECTOR_ELEN_FP_16") - (V2HF "TARGET_VECTOR_VLS && TARGET_VECTOR_ELEN_FP_16") - (V4HF "TARGET_VECTOR_VLS && TARGET_VECTOR_ELEN_FP_16") - (V8HF "TARGET_VECTOR_VLS && TARGET_VECTOR_ELEN_FP_16") - (V16HF "TARGET_VECTOR_VLS && TARGET_VECTOR_ELEN_FP_16") - (V32HF "TARGET_VECTOR_VLS && TARGET_VECTOR_ELEN_FP_16 && TARGET_MIN_VLEN >= 64") - (V64HF "TARGET_VECTOR_VLS && TARGET_VECTOR_ELEN_FP_16 && TARGET_MIN_VLEN >= 128") - (V128HF "TARGET_VECTOR_VLS && TARGET_VECTOR_ELEN_FP_16 && TARGET_MIN_VLEN >= 256") - (V256HF "TARGET_VECTOR_VLS && TARGET_VECTOR_ELEN_FP_16 && TARGET_MIN_VLEN >= 512") - (V512HF "TARGET_VECTOR_VLS && TARGET_VECTOR_ELEN_FP_16 && TARGET_MIN_VLEN >= 1024") - (V1024HF "TARGET_VECTOR_VLS && TARGET_VECTOR_ELEN_FP_16 && TARGET_MIN_VLEN >= 2048") - (V2048HF "TARGET_VECTOR_VLS && TARGET_VECTOR_ELEN_FP_16 && TARGET_MIN_VLEN >= 4096") + (V1HF "TARGET_VECTOR_VLS && TARGET_ZVFH") + (V2HF "TARGET_VECTOR_VLS && TARGET_ZVFH") + (V4HF "TARGET_VECTOR_VLS && TARGET_ZVFH") + (V8HF "TARGET_VECTOR_VLS && TARGET_ZVFH") + (V16HF "TARGET_VECTOR_VLS && TARGET_ZVFH") + (V32HF "TARGET_VECTOR_VLS && TARGET_ZVFH && TARGET_MIN_VLEN >= 64") + (V64HF "TARGET_VECTOR_VLS && TARGET_ZVFH && TARGET_MIN_VLEN >= 128") + (V128HF "TARGET_VECTOR_VLS && TARGET_ZVFH && TARGET_MIN_VLEN >= 256") + (V256HF "TARGET_VECTOR_VLS && TARGET_ZVFH && TARGET_MIN_VLEN >= 512") + (V512HF "TARGET_VECTOR_VLS && TARGET_ZVFH && TARGET_MIN_VLEN >= 1024") + (V1024HF "TARGET_VECTOR_VLS && TARGET_ZVFH && TARGET_MIN_VLEN >= 2048") + (V2048HF "TARGET_VECTOR_VLS && TARGET_ZVFH && TARGET_MIN_VLEN >= 4096") (V1SF "TARGET_VECTOR_VLS && TARGET_VECTOR_ELEN_FP_32") (V2SF "TARGET_VECTOR_VLS && TARGET_VECTOR_ELEN_FP_32") (V4SF "TARGET_VECTOR_VLS && TARGET_VECTOR_ELEN_FP_32")