avx register variables

Ian Lance Taylor iant@google.com
Mon Jun 4 05:45:00 GMT 2012


Gábor Buella <gbuella@gmail.com> writes:

> register unsigned int something __asm__("xmm2") __attribute__
> ((__vector_size__ (32)));
>
> It seems to work, and also found out, that if I use -mno-vzeroupper ,
> I wont always lose the upper bits.
>
> BTW, I'm no expert in assembly at all, I can't figure out why is it
> XMM , why not YMM ?

Well, they are the same registers, after all.

Still, GCC ought to accept the YMM names.  Please file a bug report at
http://gcc.gnu.org/bugzilla/ for this.  Thanks.

Ian



More information about the Gcc-help mailing list