From patchwork Wed May 31 10:35:10 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: 101345 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp2776959vqr; Wed, 31 May 2023 03:36:27 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5lNH0w05uYxB+1JWgNLVmWdBXJen8CIcRm+PWKMGjuaXpJDhTCOiD/aX1HAYNlSWMqwZRI X-Received: by 2002:a17:907:d25:b0:968:1102:1fb7 with SMTP id gn37-20020a1709070d2500b0096811021fb7mr5666396ejc.6.1685529387455; Wed, 31 May 2023 03:36:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685529387; cv=none; d=google.com; s=arc-20160816; b=dpofnTCA2FJnLl5dcmJbafokw4c9E1FIT0V0IZwHB2qxATtJl3WOIZG72bZ8z43ISN 2Ol9Jnyalhx7gGBYGbEZvDLr0w8TcdHhwFxl3vEgZ5jfEzx5qSfCGwaaGWjHyUtwEEIW O1gfYerfyX+910tt3yKAjegSOE4H8wBrOzoybI8y6X0UzLQ3YekephF6TckENOTxXIZA k3v5t3GDhGbZBy0KUNcXBCWrJ0hB1/pB4zr4U4VEQ2JaQZbGCBnl/FXzjdiR6T1q1DWo 01EwHUK9iE316JGat2AQ7XoYC6CDtuVmuW7aykpQwhI+gkDGL/8CccaOtsWJIyrIgc6P ksxw== 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=AMK5wA1Qsp0p+94cvXAlTgihEux+/+fQzNBPSlM88Xk=; b=ocXCYYwcn8D6hpRurXDTBzOKLS0tU/iEA93Y4HLgK++msrw6n1kM653FNvHRw7h6En MaeRwiUgdTZ3Cvp+RfxVAi/rjJXoOuiiZz9Soh1DDFY6NtQiyu0YlWPTiLMJzS6kb17Z jharQ5r4v4Le5kekOO+ItZUWtuV+6uTNajBr4SU45jxysFdv7a+v5tU76oixb8cpvfhB t0raBklgrT6HSGJN29rbvnUq2PsNyFmZDrCEleI9i94xCDO2wu6V2prXX/W0hQhIEWF6 2aLz/A/VMM49GgYouWc9uPiAo9dTtwxb3F/zzoJB4VIMby0wRlQG57WrJWBt2QafANFW t0UA== 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 (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id p12-20020a170906a00c00b009614fd83fddsi455555ejy.654.2023.05.31.03.36.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 May 2023 03:36:27 -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 6AD0C385559E for ; Wed, 31 May 2023 10:35:58 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtpbguseast2.qq.com (smtpbguseast2.qq.com [54.204.34.130]) by sourceware.org (Postfix) with ESMTPS id 5B88B3858CD1 for ; Wed, 31 May 2023 10:35:20 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5B88B3858CD1 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: bizesmtp68t1685529313th2exfdz Received: from server1.localdomain ( [58.60.1.22]) by bizesmtp.qq.com (ESMTP) with id ; Wed, 31 May 2023 18:35:12 +0800 (CST) X-QQ-SSF: 01400000000000F0R000000A0000000 X-QQ-FEAT: rZJGTgY0+YMcb4+tsoMlBaD4mCu+Prq53BXGh4JIzPQqhB7AazYLPncJtCXcX gqmIp0TcaZ2zrEDst340jTrXYOEtaJ5XOWYyQlxA6JyuEy8UcD6e7OHGrU1a47JzD/GFd3k lIVT4n/VsqZfFsEInrvYnU0F4JxEiGiGo145AQnRXS0dPZ/ML28hTf18FSVEkG7vyl368i7 mTMISjFHBPvbCdevl2DGWRzHYQUErWw9F48VIcNS1mj7xgc2DhllF6vZ+mVqCvXe2SSjXcU hwEUoZrejXBdGJBxtT4n41bBJmz/VpwceAq+WDhyWEnKIDlJAd1iuvf5ZvfDNP6QxiIw0Rl QB72ywMFhJiEclOb1sTe0sB2K9SkdDenE3H7qS7zFQziYTI8+1VDSDbRl3kIm/Hz/XcKGA4 V/zq554k5qg= X-QQ-GoodBg: 2 X-BIZMAIL-ID: 17282584189136717054 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 (RVV float to float widening conversion) Date: Wed, 31 May 2023 18:35:10 +0800 Message-Id: <20230531103510.211726-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.8 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, TXREP, T_SCC_BODY_TEXT_LINE, T_SPF_HELO_TEMPERROR, T_SPF_TEMPERROR 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?1767405662707907713?= X-GMAIL-MSGID: =?utf-8?q?1767405662707907713?= From: Juzhe-Zhong Base on the discussion here: https://github.com/riscv/riscv-v-spec/issues/884 vfwcvt 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 cd696da5d89..28e7e63ce69 100644 --- a/gcc/config/riscv/vector.md +++ b/gcc/config/riscv/vector.md @@ -7180,10 +7180,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) (float_extend:VWEXTF (match_operand: 3 "register_operand" " vr, vr")) (match_operand:VWEXTF 2 "vector_merge_operand" " vu, 0")))]