From patchwork Fri Oct 6 02:38:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Li, Pan2" X-Patchwork-Id: 1844207 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=WgN3ZN0c; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4S1t0s6fBhz1yqF for ; Fri, 6 Oct 2023 13:39:09 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id CC3AE385701C for ; Fri, 6 Oct 2023 02:39:07 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.151]) by sourceware.org (Postfix) with ESMTPS id D5396385800C for ; Fri, 6 Oct 2023 02:38:54 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D5396385800C Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1696559934; x=1728095934; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=DX3PAraUuekbWH1uK6OlCZxyr+KxqPrYX56rXpNWb5k=; b=WgN3ZN0cLwIQUGNlnfux7I52Nmer+Oa9UDYD5VXDUXysohLL1ibo7tWu +slW7D8iicYZ+a94EiCqXgt1ed3P5XVh5nXil0pIrGOTWeb4nqQRrl4Bg 3AS93hYBTH5rbKzQVPJtHKbVPdM2GdrKpZGtfattXFMZsqKCWagrox9v4 wnluyl6MgyoBLUuu2pRj9vXJJFSU6GDZDrUT5cMzUMlsYZxkS1jov9Afb kf/DmhsJT56jkWvkNg494raM3lo6nCJygK3EYuVrW//AJbRTuY/q/tiF/ MXkPu42Ko++qZSAhboFf6+cLADPO+kF4VR91DV0/sN+yZr2bWMyhar7KK Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10854"; a="363943967" X-IronPort-AV: E=Sophos;i="6.03,203,1694761200"; d="scan'208";a="363943967" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Oct 2023 19:38:52 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10854"; a="842665454" X-IronPort-AV: E=Sophos;i="6.03,203,1694761200"; d="scan'208";a="842665454" Received: from shvmail03.sh.intel.com ([10.239.245.20]) by FMSMGA003.fm.intel.com with ESMTP; 05 Oct 2023 19:38:50 -0700 Received: from pli-ubuntu.sh.intel.com (pli-ubuntu.sh.intel.com [10.239.159.47]) by shvmail03.sh.intel.com (Postfix) with ESMTP id EDA551005705; Fri, 6 Oct 2023 10:38:49 +0800 (CST) From: pan2.li@intel.com To: gcc-patches@gcc.gnu.org Cc: juzhe.zhong@rivai.ai, pan2.li@intel.com, yanzhang.wang@intel.com, kito.cheng@gmail.com Subject: [PATCH v1] RISC-V: Update comments for FP rounding related autovec Date: Fri, 6 Oct 2023 10:38:47 +0800 Message-Id: <20231006023847.428045-1-pan2.li@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-10.8 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_ASCII_DIVIDERS, SPF_HELO_NONE, SPF_NONE, TXREP 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+incoming=patchwork.ozlabs.org@gcc.gnu.org From: Pan Li Some comment is out of date, this patch would like to fix it. gcc/ChangeLog: * config/riscv/autovec.md: Update comments. Signed-off-by: Pan Li Signed-off-by: Pan Li > --- gcc/config/riscv/autovec.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/config/riscv/autovec.md b/gcc/config/riscv/autovec.md index 056f2c352f6..53e9d34eea1 100644 --- a/gcc/config/riscv/autovec.md +++ b/gcc/config/riscv/autovec.md @@ -2229,12 +2229,16 @@ (define_expand "avg3_ceil" }) ;; ------------------------------------------------------------------------- -;; ---- [FP] Math.h. +;; ---- [FP] Rounding. ;; ------------------------------------------------------------------------- ;; Includes: ;; - ceil/ceilf ;; - floor/floorf ;; - nearbyint/nearbyintf +;; - rint/rintf +;; - round/roundf +;; - trunc/truncf +;; - roundeven/roundevenf ;; ------------------------------------------------------------------------- (define_expand "ceil2" [(match_operand:V_VLSF 0 "register_operand")