From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 Content-Transfer-Encoding: 8bit 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 List-Id: 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) { -- 2.36.0