From patchwork Wed May 31 10:43:44 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: 101352 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp2780717vqr; Wed, 31 May 2023 03:44:25 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5ent9vZlNmb2zuPa8/L6RYYLK4taypyTeOOFRMnC/VjhbVIFfk0JvWKOorOZpwTDPqWLAO X-Received: by 2002:a17:907:9621:b0:96a:f8ec:c311 with SMTP id gb33-20020a170907962100b0096af8ecc311mr5328264ejc.36.1685529864883; Wed, 31 May 2023 03:44:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685529864; cv=none; d=google.com; s=arc-20160816; b=a+8tvhpa8cgvcVYFQoJx4RZ/C7kuSMiOcOTKiBWY5DJchHpcoNc2ekcwrSjk5fklPW 1aurUYi1R+4i4+ZLMpjGxUEiPiX7Fs/JUhn3FFmqwuX6QWvp7z8eW1s+RuR3xUqKhceW yjVfR5koxChYhtH7CxdMjSXv7bSC9CxeUCqyD5TvaunTyFmfqxWznhMVq/PS/WmH+wJI V5usAGfE4VoTd+EL2WBRn/bRL74H1uKvqCg8LrmhgCH4i9hUW14JJ2p5qAk0e0l1hmHq TedbxWrgXf3eNQBgmsuaP5RzAKOvWNF8y6A1CU+r+5nxi3RHP7KtzJXR9NW5CKhHY4IM Dakw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender: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:delivered-to; bh=KwB6FvEq/MW66EAnl/QLg9tEErRRxl734tgTOkdwdYU=; b=GO1HkLQOuI6OCUkcww/hoWf2lV6XIU/kWu5Rl8IxeIe1igjxQyORDdaMYDQcpIb57L Z+C0HLZky9mFFNDAIjfWmtTJrnCQMWR9hE5OSuRVHz5RQncqOD51srb9KFNzIXB08dWW xACaFkT+KUCgBbN43eUhatFqMj7DGdzjZ0dkhh77C2kBZLxmr/xBGvT6Y4IvLoXNdKc8 zsUxM2rHRMnbKtH9HxYerQm9EwV7Tv9R+xgTP9hxsBarlHqafKrfL5tQdU5NR3tXCc5P uHj8DLBSqLf/lXrGYzQgRFKW1aPOUJXr4PTNXuBeP0RmRexpJPRMI7QgQ8EAFu16jGGS ThMA== ARC-Authentication-Results: i=1; mx.google.com; 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 sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id ju17-20020a17090798b100b0096f71ff835dsi9201099ejc.1023.2023.05.31.03.44.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 May 2023 03:44:24 -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; 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 ABE7538582AC for ; Wed, 31 May 2023 10:44:20 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtpbgbr2.qq.com (smtpbgbr2.qq.com [54.207.22.56]) by sourceware.org (Postfix) with ESMTPS id C182A3858CD1 for ; Wed, 31 May 2023 10:43:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C182A3858CD1 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: bizesmtp82t1685529827t3z2z9fo Received: from server1.localdomain ( [58.60.1.22]) by bizesmtp.qq.com (ESMTP) with id ; Wed, 31 May 2023 18:43:45 +0800 (CST) X-QQ-SSF: 01400000000000F0R000000A0000000 X-QQ-FEAT: HH6/KuQOBEbVIpEzi5I7LdrvXj3+zW6LT47cWVUm7OHpR4jdIVBiQaWdjWiCe R23hpG1go8rxj8NL9fKwWTcVu4+BZuohuwTOfuJT8snvj6rLHHoNT9IKou0c655SxRtFN5j 9ea/kgKDiUv5UoPKjIUVH7MEt7EOn12HXKycRZa5QaSJAN8iHNHimZB/jBOx/lJOrkNO0IB PlZDASya/i6wEuSXJpJJvh8OIbdKTJZqcAfURBmadWMLX6MjWj7BfiQXWTX3iFFyirqDqhJ xCFxe1seAyf6FQmoPElq+HLeIZoPz4CIr47NAj+vF/BUlvLqi81kUuCVr4niuEyYTqTixPp XlOIY3bgA9aZoh7AIZk0hA7iQwtGNs/xwgh0DctXzn2y53YOhPoW7rc+3RN0xLE7egfxpJ/ CP3sbtauX/L1vn8Khkk5NA== X-QQ-GoodBg: 2 X-BIZMAIL-ID: 11535008839078560105 From: juzhe.zhong@rivai.ai To: gcc-patches@gcc.gnu.org Cc: kito.cheng@gmail.com, kito.cheng@sifive.com, palmer@dabbelt.com, palmer@rivosinc.com, jeffreyalaw@gmail.com, rdapp.gcc@gmail.com, Juzhe-Zhong Subject: [PATCH] RISC-V: Remove FRM for vfwcvt.f.x.v (RVV integer to float widening conversion) Date: Wed, 31 May 2023 18:43:44 +0800 Message-Id: <20230531104344.136142-1-juzhe.zhong@rivai.ai> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:rivai.ai:qybglogicsvrgz:qybglogicsvrgz7a-one-0 X-Spam-Status: No, score=-10.3 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE 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.29 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 Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1767406163666327293?= X-GMAIL-MSGID: =?utf-8?q?1767406163666327293?= From: Juzhe-Zhong Base on the discussion here: https://github.com/riscv/riscv-v-spec/issues/884 vfwcvt.f.x.v doesn't depend on FRM. So remove FRM preparing for mode switching support. gcc/ChangeLog: * config/riscv/vector.md: Remove FRM. --- gcc/config/riscv/vector.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/gcc/config/riscv/vector.md b/gcc/config/riscv/vector.md index 28e7e63ce69..3c4565dc775 100644 --- a/gcc/config/riscv/vector.md +++ b/gcc/config/riscv/vector.md @@ -7159,10 +7159,8 @@ (match_operand 5 "const_int_operand" " i, i") (match_operand 6 "const_int_operand" " i, i") (match_operand 7 "const_int_operand" " i, i") - (match_operand 8 "const_int_operand" " i, i") (reg:SI VL_REGNUM) - (reg:SI VTYPE_REGNUM) - (reg:SI FRM_REGNUM)] UNSPEC_VPREDICATE) + (reg:SI VTYPE_REGNUM)] UNSPEC_VPREDICATE) (any_float:VF (match_operand: 3 "register_operand" " vr, vr")) (match_operand:VF 2 "vector_merge_operand" " vu, 0")))]