This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH, i386, AVX, AVX-512] Extend ADDITION_REGISTER_NAMES to XMMs and YMMs.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]