From: "Kewen.Lin" <linkw@linux.ibm.com>
To: Carl Love <cel@linux.ibm.com>
Cc: gcc-patches@gcc.gnu.org,
"bergner@linux.ibm.com" <bergner@linux.ibm.com>,
Segher Boessenkool <segher@kernel.crashing.org>
Subject: Re: [PATCH 04/11] rs6000, Update comment for the __builtin_vsx_vper*, built-ins.
Date: Wed, 28 Feb 2024 17:25:14 +0800 [thread overview]
Message-ID: <8ca60f48-56b8-f026-c640-e4cfbe265474@linux.ibm.com> (raw)
In-Reply-To: <d1a586b3-b1e9-4dba-9a9b-07f3dce4915b@linux.ibm.com>
Hi,
on 2024/2/21 01:56, Carl Love wrote:
> GCC maintainers:
>
> The patch expands an existing comment to document that the duplicates are covered by an overloaded built-in. I am wondering if we should just go ahead and remove the duplicates?
As the below comments Bill placed before, I think we should remove them, since
users should use the standard interface vec_perm which is defined by PVIPR.
They are not undocumented at all, in case some users are still using such builtins
they should switch to use vec_perm instead, so even if it's stage 4 now, it looks
still fine to drop them IMHO.
Segher & Peter, what do you think of this?
BR,
Kewen
>
> The patch has been tested on Power 10 with no regressions.
>
> Please let me know if this patch is acceptable for mainline. Thanks.
>
> Carl
>
> -----------------------------------------------------
> rs6000, Update comment for the __builtin_vsx_vper* built-ins.
>
> There is a comment about the __builtin_vsx_vper* built-ins being
> duplicates of the __builtin_altivec_* built-ins. The note says we
> should consider deprecation/removeal of the __builtin_vsx_vper*. Add a
> note that the _builtin_vsx_vper* built-ins are covered by the overloaded
> vec_perm built-ins which use the __builtin_altivec_* built-in definitions.
>
> gcc/ChangeLog:
> * config/rs6000/rs6000-builtins.def ( __builtin_vsx_vperm_*):
> Add comment to existing comment about the built-ins.
> ---
> gcc/config/rs6000/rs6000-builtins.def | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/gcc/config/rs6000/rs6000-builtins.def b/gcc/config/rs6000/rs6000-builtins.def
> index 96d095da2cb..4c95429f137 100644
> --- a/gcc/config/rs6000/rs6000-builtins.def
> +++ b/gcc/config/rs6000/rs6000-builtins.def
> @@ -1556,6 +1556,14 @@
> ; These are duplicates of __builtin_altivec_* counterparts, and are being
> ; kept for backwards compatibility. The reason for their existence is
> ; unclear. TODO: Consider deprecation/removal at some point.
> +; Note, __builtin_vsx_vperm_16qi, __builtin_vsx_vperm_16qi_uns,
> +; __builtin_vsx_vperm_1ti, __builtin_vsx_vperm_v1ti_uns,
> +; __builtin_vsx_vperm_2df, __builtin_vsx_vperm_2di, __builtin_vsx_vperm_2di,
> +; __builtin_vsx_vperm_2di_uns, __builtin_vsx_vperm_4sf,
> +; __builtin_vsx_vperm_4si, __builtin_vsx_vperm_4si_uns,
> +; __builtin_vsx_vperm_8hi, __builtin_altivec_vperm_8hi_uns
> +; are all covered by the overloaded vec_perm built-in which uses the
> +; __builtin_altivec_* built-in definitions.
> const vsc __builtin_vsx_vperm_16qi (vsc, vsc, vuc);
> VPERM_16QI_X altivec_vperm_v16qi {}
>
next prev parent reply other threads:[~2024-02-28 9:25 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-20 17:29 rs6000, built-in cleanup patch series Carl Love
2024-02-20 17:55 ` [PATCH 01/11] rs6000, Fix __builtin_vsx_cmple* args and documentation, builtins Carl Love
2024-02-28 9:22 ` Kewen.Lin
2024-02-28 16:41 ` Carl Love
2024-02-20 17:56 ` [PATCH 02/11] rs6000, fix arguments, add documentation for vector, element conversions Carl Love
2024-02-28 9:23 ` Kewen.Lin
2024-02-20 17:56 ` [PATCH 03/11] rs6000, remove duplicated built-ins Carl Love
2024-02-28 9:23 ` Kewen.Lin
2024-02-20 17:56 ` [PATCH 04/11] rs6000, Update comment for the __builtin_vsx_vper*, built-ins Carl Love
2024-02-28 9:25 ` Kewen.Lin [this message]
2024-02-20 17:56 ` [PATCH 05/11] rs6000, __builtin_vsx_xvneg[sp,dp] add documentation, and test cases Carl Love
2024-02-28 9:25 ` Kewen.Lin
2024-02-20 17:57 ` [PATCH 06/11] rs6000, __builtin_vsx_xxpermdi_1ti add documentation, and test case Carl Love
2024-02-28 9:26 ` Kewen.Lin
2024-02-20 17:57 ` [PATCH 07/11] rs6000, __builtin_vsx_xvcmpeq[sp, dp, sp_p] add, documentation " Carl Love
2024-02-28 9:26 ` Kewen.Lin
2024-02-20 17:57 ` [PATCH 08/11] rs6000, add tests and documentation for various, built-ins Carl Love
2024-02-29 5:11 ` Kewen.Lin
2024-02-20 17:57 ` [PATCH 09/11] rs6000, add test cases for the vec_cmpne built-ins Carl Love
2024-02-28 9:27 ` Kewen.Lin
2024-02-20 17:58 ` PATCH 10/11] rs6000, add test cases for __builtin_vec_init* and, __builtin_vec_set* Carl Love
2024-02-20 17:58 ` PATCH 11/11] rs6000, make test vec-cmpne.c a runnable test Carl Love
2024-02-28 9:29 ` Kewen.Lin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8ca60f48-56b8-f026-c640-e4cfbe265474@linux.ibm.com \
--to=linkw@linux.ibm.com \
--cc=bergner@linux.ibm.com \
--cc=cel@linux.ibm.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=segher@kernel.crashing.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).