From patchwork Mon Oct 23 02:13:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chenghui Pan X-Patchwork-Id: 156637 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce89:0:b0:403:3b70:6f57 with SMTP id p9csp1033666vqx; Sun, 22 Oct 2023 19:14:26 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH8HiU6QelloHIVImCg1UgAF4j3AXtvJ+vqigCLtmOQ8vuzWkXUCiq6T3c1Dv1SZmIg6Rkp X-Received: by 2002:a0c:fe92:0:b0:66c:fd38:2266 with SMTP id d18-20020a0cfe92000000b0066cfd382266mr14173692qvs.25.1698027266241; Sun, 22 Oct 2023 19:14:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1698027266; cv=pass; d=google.com; s=arc-20160816; b=AHNWS9edbnaTppiQRMMjANhL+rfV44ADU+s9nKO2VY+pzyjr7pg9wuRD6pJNjOntjA GzuuvEBk33Too+9oT6gC6vJq9vVrpgTjidNvTQCEi/s9/EjhVOlSBZ+60bb0Vhq/tIrA fNYIPw0bCz4yhZWklwqgdnG0CfwoLNTSrNRqx+1y/7ckdbWezOZWULI3pPY+eEMLSIlT M2pXNmDl7GX156NdvLrKb8cAJBBpXpdZ4ZkpvSz46990cH9YG/Ox3U9q25eEXQXBJIrN HYgTiizblLIoM99a3H6Y/HsENztGPOVdDoUPn4tSlaEssCpQ61c2RR2Enb/+3Np6bvmZ M3tg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:arc-filter :dmarc-filter:delivered-to; bh=nyq1mVVK9RBZ1HVUx1JNwXWEelpEJlfzCdvUOUOcnkU=; fh=RoXSwezpeLu9cFb0dma6iVihZESgUHyUydwp1Nxc0FM=; b=rkomP+5sVplFa7sYmCkyDyxKicFe4j11X4mDUWjf4e5Y3hyGY+pqirUiRC/PB/b8Zk h2v1shaBxmBDmLlwmB2miHLG3V0GLzh07ykWffSzKN889yHj6eW7No9CR/3YVkBYJJxz 80UJhVWVGQcJZWV+l125H+xjj3LifBt+P6s6yJlvs4RdG/hv/WYZdxn9ilzZcaEXTqz+ /ME9gjP0msNsaJ1VtbLOJ0liVcGn6ZFC3NzHVCc+glLIpuZ4Ec3PESqOWEQJ5km7ImWz bKajF2fkpHV6cUNEsz42MfzrcQkvotnjdkm55pXBk7/x9h7JvFc3T8ov1NTHJzCSCOcO 4KCw== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); 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 (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id vu7-20020a05620a560700b007759bc3be67si4831734qkn.91.2023.10.22.19.14.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Oct 2023 19:14:26 -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; arc=pass (i=1); 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 06FF53857838 for ; Mon, 23 Oct 2023 02:14:26 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10]) by sourceware.org (Postfix) with ESMTPS id EF0A43858D39 for ; Mon, 23 Oct 2023 02:13:59 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org EF0A43858D39 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=loongson.cn Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=loongson.cn ARC-Filter: OpenARC Filter v1.0.0 sourceware.org EF0A43858D39 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2001:470:142:3::10 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698027241; cv=none; b=SZearMydWoK7StXb58VPjZVhI44xV9QRZDMIy5yGytJ5G7TCrQgFlmT1KCLM5fzpS0gUlGisfktMrep++h9lBpMerRRDaygYo4t/57SRWRzwOBDTaSnqR/3YTglIa69TlSdzoJjC/9BDr4C7Zz+eCCiIhynq/7vvgLx0GP58E50= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698027241; c=relaxed/simple; bh=cZYRih3c2Rx1PQB8Mv/zhsKy/H0dCat6IBDF4kNwL8Y=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=gRZmEB14AqwDVfZ6/MtMO1+fSyLTOYandYwz1AWGKuiYfi/hQmncCbmBDO0sqS5NxJ5TFA2itsDQ518sjL+IPJn/tIGiftRxfqChap2OnxwPkOgOHAU0hvyxUr+/v5kKDV2ylGk7oxXVtcUJB/OxL9di+Yx+qfYmdzsXSLTIBuI= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from mail.loongson.cn ([114.242.206.163]) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qukS4-0000bU-Cb for gcc-patches@gcc.gnu.org; Sun, 22 Oct 2023 22:13:59 -0400 Received: from loongson.cn (unknown [10.2.6.5]) by gateway (Coremail) with SMTP id _____8DxPOvb1jVlxtUzAA--.29587S3; Mon, 23 Oct 2023 10:13:47 +0800 (CST) Received: from 5.5.5 (unknown [10.2.6.5]) by localhost.localdomain (Coremail) with SMTP id AQAAf8Axzy_V1jVlSLcuAA--.33452S4; Mon, 23 Oct 2023 10:13:47 +0800 (CST) From: Chenghui Pan To: gcc-patches@gcc.gnu.org Cc: xry111@xry111.site, i@xen0n.name, chenglulu@loongson.cn, xuchenghua@loongson.cn, Chenghui Pan Subject: [PATCH v1] LoongArch: Fix vfrint-releated comments in lsxintrin.h and lasxintrin.h Date: Mon, 23 Oct 2023 10:13:24 +0800 Message-Id: <20231023021324.2767717-1-panchenghui@loongson.cn> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-CM-TRANSID: AQAAf8Axzy_V1jVlSLcuAA--.33452S4 X-CM-SenderInfo: psdquxxhqjx33l6o00pqjv00gofq/1tbiAQANBGU0hqYCjAAAs3 X-Coremail-Antispam: 1Uk129KBj93XoW3Ar1fKry3tFWkKF15JFWrWFX_yoWxKFyfpF y8C3W3KF4UZrZIk3yUJFsF9r4a9FsxZF4jqry3KwnFka4Yqas3tFsYyr12yF98G3yYvr9F qrWrtFyxGFy3A3gCm3ZEXasCq-sJn29KB7ZKAUJUUUU8529EdanIXcx71UUUUU7KY7ZEXa sCq-sGcSsGvfJ3Ic02F40EFcxC0VAKzVAqx4xG6I80ebIjqfuFe4nvWSU5nxnvy29KBjDU 0xBIdaVrnRJUUUkFb4IE77IF4wAFF20E14v26r1j6r4UM7CY07I20VC2zVCF04k26cxKx2 IYs7xG6rWj6s0DM7CIcVAFz4kK6r106r15M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48v e4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_JFI_Gr1l84ACjcxK6xIIjxv20xvEc7CjxVAFwI 0_Cr0_Gr1UM28EF7xvwVC2z280aVAFwI0_Cr0_Gr1UM28EF7xvwVC2z280aVCY1x0267AK xVW8Jr0_Cr1UM2AIxVAIcxkEcVAq07x20xvEncxIr21l57IF6xkI12xvs2x26I8E6xACxx 1l5I8CrVACY4xI64kE6c02F40Ex7xfMcIj6xIIjxv20xvE14v26r1j6r18McIj6I8E87Iv 67AKxVWUJVW8JwAm72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IYc2Ij64vIr41l42xK82IYc2 Ij64vIr41l4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1lx2IqxVAqx4xG67AKxVWUJVWUGwC20s02 6x8GjcxK67AKxVWUGVWUWwC2zVAF1VAY17CE14v26r126r1DMIIYrxkI7VAKI48JMIIF0x vE2Ix0cI8IcVAFwI0_Jr0_JF4lIxAIcVC0I7IYx2IY6xkF7I0E14v26r1j6r4UMIIF0xvE 42xK8VAvwI8IcIk0rVWUJVWUCwCI42IY6I8E87Iv67AKxVWUJVW8JwCI42IY6I8E87Iv6x kF7I0E14v26r1j6r4UYxBIdaVFxhVjvjDU0xZFpf9x07j8yCJUUUUU= Received-SPF: pass client-ip=114.242.206.163; envelope-from=panchenghui@loongson.cn; helo=mail.loongson.cn X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Status: No, score=-13.0 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, SPF_FAIL, SPF_HELO_PASS, 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+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780510638951465257 X-GMAIL-MSGID: 1780510638951465257 The comment of vfrint-related intrinsic functions does not match the return value type in definition. This patch fixes these comments. gcc/ChangeLog: * config/loongarch/lasxintrin.h (__lasx_xvftintrnel_l_s): Fix comments. (__lasx_xvfrintrne_s): Ditto. (__lasx_xvfrintrne_d): Ditto. (__lasx_xvfrintrz_s): Ditto. (__lasx_xvfrintrz_d): Ditto. (__lasx_xvfrintrp_s): Ditto. (__lasx_xvfrintrp_d): Ditto. (__lasx_xvfrintrm_s): Ditto. (__lasx_xvfrintrm_d): Ditto. * config/loongarch/lsxintrin.h (__lsx_vftintrneh_l_s): Ditto. (__lsx_vfrintrne_s): Ditto. (__lsx_vfrintrne_d): Ditto. (__lsx_vfrintrz_s): Ditto. (__lsx_vfrintrz_d): Ditto. (__lsx_vfrintrp_s): Ditto. (__lsx_vfrintrp_d): Ditto. (__lsx_vfrintrm_s): Ditto. (__lsx_vfrintrm_d): Ditto. --- gcc/config/loongarch/lasxintrin.h | 16 ++++++++-------- gcc/config/loongarch/lsxintrin.h | 16 ++++++++-------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/gcc/config/loongarch/lasxintrin.h b/gcc/config/loongarch/lasxintrin.h index d3937992746..7bce2c757f1 100644 --- a/gcc/config/loongarch/lasxintrin.h +++ b/gcc/config/loongarch/lasxintrin.h @@ -3368,7 +3368,7 @@ __m256i __lasx_xvftintrnel_l_s (__m256 _1) } /* Assembly instruction format: xd, xj. */ -/* Data types in instruction templates: V8SI, V8SF. */ +/* Data types in instruction templates: V8SF, V8SF. */ extern __inline __attribute__((__gnu_inline__, __always_inline__, __artificial__)) __m256 __lasx_xvfrintrne_s (__m256 _1) { @@ -3376,7 +3376,7 @@ __m256 __lasx_xvfrintrne_s (__m256 _1) } /* Assembly instruction format: xd, xj. */ -/* Data types in instruction templates: V4DI, V4DF. */ +/* Data types in instruction templates: V4DF, V4DF. */ extern __inline __attribute__((__gnu_inline__, __always_inline__, __artificial__)) __m256d __lasx_xvfrintrne_d (__m256d _1) { @@ -3384,7 +3384,7 @@ __m256d __lasx_xvfrintrne_d (__m256d _1) } /* Assembly instruction format: xd, xj. */ -/* Data types in instruction templates: V8SI, V8SF. */ +/* Data types in instruction templates: V8SF, V8SF. */ extern __inline __attribute__((__gnu_inline__, __always_inline__, __artificial__)) __m256 __lasx_xvfrintrz_s (__m256 _1) { @@ -3392,7 +3392,7 @@ __m256 __lasx_xvfrintrz_s (__m256 _1) } /* Assembly instruction format: xd, xj. */ -/* Data types in instruction templates: V4DI, V4DF. */ +/* Data types in instruction templates: V4DF, V4DF. */ extern __inline __attribute__((__gnu_inline__, __always_inline__, __artificial__)) __m256d __lasx_xvfrintrz_d (__m256d _1) { @@ -3400,7 +3400,7 @@ __m256d __lasx_xvfrintrz_d (__m256d _1) } /* Assembly instruction format: xd, xj. */ -/* Data types in instruction templates: V8SI, V8SF. */ +/* Data types in instruction templates: V8SF, V8SF. */ extern __inline __attribute__((__gnu_inline__, __always_inline__, __artificial__)) __m256 __lasx_xvfrintrp_s (__m256 _1) { @@ -3408,7 +3408,7 @@ __m256 __lasx_xvfrintrp_s (__m256 _1) } /* Assembly instruction format: xd, xj. */ -/* Data types in instruction templates: V4DI, V4DF. */ +/* Data types in instruction templates: V4DF, V4DF. */ extern __inline __attribute__((__gnu_inline__, __always_inline__, __artificial__)) __m256d __lasx_xvfrintrp_d (__m256d _1) { @@ -3416,7 +3416,7 @@ __m256d __lasx_xvfrintrp_d (__m256d _1) } /* Assembly instruction format: xd, xj. */ -/* Data types in instruction templates: V8SI, V8SF. */ +/* Data types in instruction templates: V8SF, V8SF. */ extern __inline __attribute__((__gnu_inline__, __always_inline__, __artificial__)) __m256 __lasx_xvfrintrm_s (__m256 _1) { @@ -3424,7 +3424,7 @@ __m256 __lasx_xvfrintrm_s (__m256 _1) } /* Assembly instruction format: xd, xj. */ -/* Data types in instruction templates: V4DI, V4DF. */ +/* Data types in instruction templates: V4DF, V4DF. */ extern __inline __attribute__((__gnu_inline__, __always_inline__, __artificial__)) __m256d __lasx_xvfrintrm_d (__m256d _1) { diff --git a/gcc/config/loongarch/lsxintrin.h b/gcc/config/loongarch/lsxintrin.h index ec42069904d..29553c093fa 100644 --- a/gcc/config/loongarch/lsxintrin.h +++ b/gcc/config/loongarch/lsxintrin.h @@ -3412,7 +3412,7 @@ __m128i __lsx_vftintrneh_l_s (__m128 _1) } /* Assembly instruction format: vd, vj. */ -/* Data types in instruction templates: V4SI, V4SF. */ +/* Data types in instruction templates: V4SF, V4SF. */ extern __inline __attribute__((__gnu_inline__, __always_inline__, __artificial__)) __m128 __lsx_vfrintrne_s (__m128 _1) { @@ -3420,7 +3420,7 @@ __m128 __lsx_vfrintrne_s (__m128 _1) } /* Assembly instruction format: vd, vj. */ -/* Data types in instruction templates: V2DI, V2DF. */ +/* Data types in instruction templates: V2DF, V2DF. */ extern __inline __attribute__((__gnu_inline__, __always_inline__, __artificial__)) __m128d __lsx_vfrintrne_d (__m128d _1) { @@ -3428,7 +3428,7 @@ __m128d __lsx_vfrintrne_d (__m128d _1) } /* Assembly instruction format: vd, vj. */ -/* Data types in instruction templates: V4SI, V4SF. */ +/* Data types in instruction templates: V4SF, V4SF. */ extern __inline __attribute__((__gnu_inline__, __always_inline__, __artificial__)) __m128 __lsx_vfrintrz_s (__m128 _1) { @@ -3436,7 +3436,7 @@ __m128 __lsx_vfrintrz_s (__m128 _1) } /* Assembly instruction format: vd, vj. */ -/* Data types in instruction templates: V2DI, V2DF. */ +/* Data types in instruction templates: V2DF, V2DF. */ extern __inline __attribute__((__gnu_inline__, __always_inline__, __artificial__)) __m128d __lsx_vfrintrz_d (__m128d _1) { @@ -3444,7 +3444,7 @@ __m128d __lsx_vfrintrz_d (__m128d _1) } /* Assembly instruction format: vd, vj. */ -/* Data types in instruction templates: V4SI, V4SF. */ +/* Data types in instruction templates: V4SF, V4SF. */ extern __inline __attribute__((__gnu_inline__, __always_inline__, __artificial__)) __m128 __lsx_vfrintrp_s (__m128 _1) { @@ -3452,7 +3452,7 @@ __m128 __lsx_vfrintrp_s (__m128 _1) } /* Assembly instruction format: vd, vj. */ -/* Data types in instruction templates: V2DI, V2DF. */ +/* Data types in instruction templates: V2DF, V2DF. */ extern __inline __attribute__((__gnu_inline__, __always_inline__, __artificial__)) __m128d __lsx_vfrintrp_d (__m128d _1) { @@ -3460,7 +3460,7 @@ __m128d __lsx_vfrintrp_d (__m128d _1) } /* Assembly instruction format: vd, vj. */ -/* Data types in instruction templates: V4SI, V4SF. */ +/* Data types in instruction templates: V4SF, V4SF. */ extern __inline __attribute__((__gnu_inline__, __always_inline__, __artificial__)) __m128 __lsx_vfrintrm_s (__m128 _1) { @@ -3468,7 +3468,7 @@ __m128 __lsx_vfrintrm_s (__m128 _1) } /* Assembly instruction format: vd, vj. */ -/* Data types in instruction templates: V2DI, V2DF. */ +/* Data types in instruction templates: V2DF, V2DF. */ extern __inline __attribute__((__gnu_inline__, __always_inline__, __artificial__)) __m128d __lsx_vfrintrm_d (__m128d _1) {