From patchwork Wed May 31 10:47:03 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: 101353 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp2782265vqr; Wed, 31 May 2023 03:47:44 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4M22txsIDVVTws1Z8hgXrL7Z+Ks5+H6yfBEZguwQa40o5YcsrRsysDMTbGg6GVYg6lEwaU X-Received: by 2002:a17:907:2da6:b0:94e:ec32:ba28 with SMTP id gt38-20020a1709072da600b0094eec32ba28mr4839491ejc.29.1685530064167; Wed, 31 May 2023 03:47:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685530064; cv=none; d=google.com; s=arc-20160816; b=1JRXNZuLnpjNJkRqEhbiH1jJxd/YrboLPtcTyUV85VOekXt/sWGUGi0jAFU0sYXibe oTsCEhRwCI0EbiiMsWLUF5DjKu8OpwKn8dOTtojqbv9xTN4ZwvrqJ3Y7lXVAORuVuHeA K8b8NhpIE7WicDGD24LLoctANI3iquwhmG6Xp9mqCGDyYJEiFNLu3AIpRirfiQWq47Xl +kHJtga35j7n/qKviNhnZJVuBcuZHn3T0NM/a4QzJ2HYm2rRcY7jXRAKzggBi9VhLkEc 9iAnWi3zmTiCiVRbCNvm91gt7NYD3rDdq1dd0b5yxL+YDFpf1Af5lkG0uOo1jdQAFMxt R4Ew== 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=VERdfx6LdT3ApD++uIrOl9tvPEypGahsb4+hrmzDb/Q=; b=miYNWhaF40dhmLHzbULKbOHpHqn4/oI1lC0hPrn7pWedbncF0eNrIBp9VWOcq8Y/Zp BldpVzwQi86PgW3bHnfiq0vcelDiAKr89/tUQOft2ckIY/v83ePQr+ttTUq1AklkSJXl /px55CQ5N3sgwAGwBX6/K4DoisTebbt2V2R6xbSfL4P7LR27QSJSWI7bgQS5ux0NgCoD WeABGowJNE4oNPqfjvQtv+Yag0xE4Q1ZTgSt/aMQl1l6niRuESqq73BcX+WU5uLPcfAL 4+RefhCX/4aZBFapqEKhB7VAdC27K50ri+3nJvoDPOLymxILWX8z+cqGcaa1S2nQdEUX e+Mw== 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 az18-20020a170907905200b009659769ca47si7105516ejc.707.2023.05.31.03.47.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 May 2023 03:47:44 -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 9BA263857B8E for ; Wed, 31 May 2023 10:47:39 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtpbg154.qq.com (smtpbg154.qq.com [15.184.224.54]) by sourceware.org (Postfix) with ESMTPS id 98FBB3858D20 for ; Wed, 31 May 2023 10:47:12 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 98FBB3858D20 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: bizesmtp70t1685530025twjnhou9 Received: from server1.localdomain ( [58.60.1.22]) by bizesmtp.qq.com (ESMTP) with id ; Wed, 31 May 2023 18:47:04 +0800 (CST) X-QQ-SSF: 01400000000000F0R000000A0000000 X-QQ-FEAT: +ynUkgUhZJlFawijYMuXmbeTx+bWIzgqyttZLr4+jB59KXdFTyjD6fWk+z7mI xDwxvjmq5MdzvEGb+kwY4e7dBCgli8LlIazNHdpCJeI5Y0M55Ps8HbQIyquL9F/c5QjFmZx OPsaSXf1SdPdHC83TAFQJLs3nPDykGNW8mTLV7TVPSV/6ZnSTBA9aRHuizf5qh97BhrR1xJ 8vN1dcRoEnX7YoVhBL/3KPusbK/R1PwBIcDJcPjLJi/2BgaGgaFV/uWgrjvlFiAQ5+OL4h3 U8RcLlq+kM685V6SPiNPrQGgc9hFwCdD/b8Yqm8nztQpX9niuwlBtvACcg6W/fUDIFx+Ztk ze7dgU0W1eZVBMuwWRVcvGWDbhvlaPB5GWiMYW/UpNJV/AwBVuQOeQSmiWeFOcVTeE+MMX1 xujntmBuPZQ= X-QQ-GoodBg: 2 X-BIZMAIL-ID: 18316967518258817052 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 vfncvt.rod instruction Date: Wed, 31 May 2023 18:47:03 +0800 Message-Id: <20230531104703.208291-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?1767406372346839548?= X-GMAIL-MSGID: =?utf-8?q?1767406372346839548?= From: Juzhe-Zhong Apparently, vfncvt.rod rounding mode is encoded, so we don't need FRM. 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 3c4565dc775..cd41ebbb24f 100644 --- a/gcc/config/riscv/vector.md +++ b/gcc/config/riscv/vector.md @@ -7286,10 +7286,8 @@ (match_operand 5 "const_int_operand" " i, i, i, i, i, i") (match_operand 6 "const_int_operand" " i, i, i, i, i, i") (match_operand 7 "const_int_operand" " i, i, i, i, i, i") - (match_operand 8 "const_int_operand" " i, i, i, i, i, i") (reg:SI VL_REGNUM) - (reg:SI VTYPE_REGNUM) - (reg:SI FRM_REGNUM)] UNSPEC_VPREDICATE) + (reg:SI VTYPE_REGNUM)] UNSPEC_VPREDICATE) (unspec: [(float_truncate: (match_operand:VWEXTF 3 "register_operand" " 0, 0, 0, 0, vr, vr"))] UNSPEC_ROD)