This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, i386, AVX, AVX-512] Extend ADDITION_REGISTER_NAMES to XMMs and YMMs.
- From: Jakub Jelinek <jakub at redhat dot com>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>
- Cc: Kirill Yukhin <kirill dot yukhin at gmail dot com>, Uros Bizjak <ubizjak at gmail dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 17 Mar 2014 19:43:13 +0100
- Subject: Re: [PATCH, i386, AVX, AVX-512] Extend ADDITION_REGISTER_NAMES to XMMs and YMMs.
- Authentication-results: sourceware.org; auth=none
- References: <20140317115336 dot GC65059 at msticlxl57 dot ims dot intel dot com> <CAMe9rOrVpAYuNxSYSXb-htVpcTdAKshV3pY0+4g7fiE8KOizAA at mail dot gmail dot com> <CAFULd4ZjhQdBu9H-3-X8Ok_Rq7yCaeHKODSjTeVf9kj1osQe-A at mail dot gmail dot com> <CAMe9rOqAh3QX-K8ayWKLakkJHdkkFXT9eSv58j3VAZeMkJDH+A at mail dot gmail dot com> <CAMe9rOpArEnXx_mMMFkCmE5F0Xv7c7j2=kLQDajr8=XAACUFiQ at mail dot gmail dot com> <20140317173727 dot GF65059 at msticlxl57 dot ims dot intel dot com> <CAMe9rOo0zPF=Y1nqp8BEP5wd2K_HVOJhrRuAR2L_5zRU9oG8RQ at mail dot gmail dot com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Mon, Mar 17, 2014 at 11:26:58AM -0700, H.J. Lu wrote:
> On Mon, Mar 17, 2014 at 10:37 AM, Kirill Yukhin <kirill.yukhin@gmail.com> wrote:
> > On 17 Mar 10:16, H.J. Lu wrote:
> >> BTW, in glibc, there are
> >>
> >> asm volatile ("vmovdqa64 %0, %%zmm0" : : "x" (zmm) : "xmm0" );
> > Maybe. But I belive that this is much more clear to have instead:
> > asm volatile ("vmovdqa64 %0, %%zmm0" : : "x" (zmm) : "zmm0" );
> >
>
> My issue is this is a user-visible change. Code using ymm which
> works with GCC 4.9 won't work with the installed GCC 4.6/4.7/4.8.
> This change introduces GCC portability issues without significant
> benefit.
It is up to the user to decide if they want to be portable to older
compilers or not. But it is useful and more intuitive if we allow
specifying also the ymm and zmm forms.
Jakub
- References:
- [PATCH, i386, AVX, AVX-512] Extend ADDITION_REGISTER_NAMES to XMMs and YMMs.
- Re: [PATCH, i386, AVX, AVX-512] Extend ADDITION_REGISTER_NAMES to XMMs and YMMs.
- Re: [PATCH, i386, AVX, AVX-512] Extend ADDITION_REGISTER_NAMES to XMMs and YMMs.
- Re: [PATCH, i386, AVX, AVX-512] Extend ADDITION_REGISTER_NAMES to XMMs and YMMs.
- Re: [PATCH, i386, AVX, AVX-512] Extend ADDITION_REGISTER_NAMES to XMMs and YMMs.
- Re: [PATCH, i386, AVX, AVX-512] Extend ADDITION_REGISTER_NAMES to XMMs and YMMs.
- Re: [PATCH, i386, AVX, AVX-512] Extend ADDITION_REGISTER_NAMES to XMMs and YMMs.