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 A4DB83858C27 for ; Wed, 25 Oct 2023 13:14:52 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A4DB83858C27 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 A4DB83858C27 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=1698239694; cv=none; b=G4IeW7IBUao6TYpjruLSH0y7ibP41sWmvnjbcGwdiMnP7m7vIGDKjZFrm0MgcPp66WCzi5F/YmbCwIX20GnmHhHheBbZL9By5Yf9YLPfzFkaa+iHEkk4+ssf6QwIP7llku3DHxSQ8VLaAsY5j+8YqVqL7pWM7Olz/QZMva79YIo= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698239694; c=relaxed/simple; bh=XHjSP9TPD/4Epamim4+KVCW/oGJdSg/XFqMZwDLCHlA=; h=Subject:To:From:Message-ID:Date:MIME-Version; b=XnO2PkHgolcirgD6nvb75J2wISAJkgawD+7OiP2L6i7sqpoSjJHd8mPkinQvtOToNZvBNGFXSpxyy0bwmp1udSoGPUe9AhB3JH+NQomDS6szuUoVd8u8FBfNh4aYaz4iKzyTzoNjaUU9/r2VXNe/U3lTGjjoFMI/Wm8LrxMZWz0= 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 1qvdij-0004R0-HW for gcc-patches@gcc.gnu.org; Wed, 25 Oct 2023 09:14:52 -0400 Received: from loongson.cn (unknown [117.129.62.44]) by gateway (Coremail) with SMTP id _____8DxBfHFFDllwIo0AA--.37258S3; Wed, 25 Oct 2023 21:14:45 +0800 (CST) Received: from [192.168.2.108] (unknown [117.129.62.44]) by localhost.localdomain (Coremail) with SMTP id AQAAf8DxiuTEFDlloyQyAA--.42465S3; Wed, 25 Oct 2023 21:14:44 +0800 (CST) Subject: Re: [pushed][PATCH v1] LoongArch: Fix vfrint-releated comments in lsxintrin.h and lasxintrin.h To: Chenghui Pan , gcc-patches@gcc.gnu.org Cc: xry111@xry111.site, i@xen0n.name, xuchenghua@loongson.cn References: <20231023021324.2767717-1-panchenghui@loongson.cn> From: chenglulu Message-ID: Date: Wed, 25 Oct 2023 21:14:44 +0800 User-Agent: Mozilla/5.0 (X11; Linux loongarch64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <20231023021324.2767717-1-panchenghui@loongson.cn> Content-Type: text/plain; charset=gbk; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-CM-TRANSID:AQAAf8DxiuTEFDlloyQyAA--.42465S3 X-CM-SenderInfo: xfkh0wpoxo3qxorr0wxvrqhubq/ X-Coremail-Antispam: 1Uk129KBj93XoW3Ar1fGryDur1rAF4UAF4rCrX_yoW3Gw4kpF yxC3WakF4UZrZFg3ykGrsF9r4a9r9xZF1jqry3KwnIka4jqas3JFs0yryIkas8K39Yvryj qrW5tFyfGFy5A3gCm3ZEXasCq-sJn29KB7ZKAUJUUUU8529EdanIXcx71UUUUU7KY7ZEXa sCq-sGcSsGvfJ3Ic02F40EFcxC0VAKzVAqx4xG6I80ebIjqfuFe4nvWSU5nxnvy29KBjDU 0xBIdaVrnRJUUUv2b4IE77IF4wAFF20E14v26r1j6r4UM7CY07I20VC2zVCF04k26cxKx2 IYs7xG6rWj6s0DM7CIcVAFz4kK6r106r15M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48v e4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_JFI_Gr1l84ACjcxK6xIIjxv20xvEc7CjxVAFwI 0_Jr0_Gr1l84ACjcxK6I8E87Iv67AKxVW8Jr0_Cr1UM28EF7xvwVC2z280aVCY1x0267AK xVW8Jr0_Cr1UM2AIxVAIcxkEcVAq07x20xvEncxIr21l57IF6xkI12xvs2x26I8E6xACxx 1l5I8CrVACY4xI64kE6c02F40Ex7xfMcIj6xIIjxv20xvE14v26r126r1DMcIj6I8E87Iv 67AKxVWUJVW8JwAm72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IY64vIr41lc7I2V7IY0VAS07 AlzVAYIcxG8wCF04k20xvY0x0EwIxGrwCFx2IqxVCFs4IE7xkEbVWUJVW8JwC20s026c02 F40E14v26r1j6r18MI8I3I0E7480Y4vE14v26r106r1rMI8E67AF67kF1VAFwI0_JF0_Jw 1lIxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67AKxVWUJVWUCwCI42IY6xIIjxv20xvEc7Cj xVAFwI0_Jr0_Gr1lIxAIcVCF04k26cxKx2IYs7xG6r1j6r1xMIIF0xvEx4A2jsIE14v26r 1j6r4UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Jr0_GrUvcSsGvfC2KfnxnUUI43ZEXa7IU8wN VDUUUUU== Received-SPF: pass client-ip=114.242.206.163; envelope-from=chenglulu@loongson.cn; helo=mail.loongson.cn X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9,MIME_CHARSET_FARAWAY=2.45,NICE_REPLY_A=-3.339,SPF_HELO_NONE=0.001,SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Status: No, score=-14.1 required=5.0 tests=BAYES_00,GIT_PATCH_0,KAM_DMARC_STATUS,MIME_CHARSET_FARAWAY,NICE_REPLY_A,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: Pushed to r14-4926. ÔÚ 2023/10/23 ÉÏÎç10:13, Chenghui Pan дµÀ: > 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) > {