[discuss] x86-64 abi, regarding vector types

Arnd Bergmann arnd@arndb.de
Sun Dec 19 12:27:00 GMT 2004


On Sünndag 19 Dezember 2004 03:40, Jan Hubicka wrote:
> > However, that leaves, exhaustively, the 2 and 4 byte vector types
> > 
> >       typedef char v2qi __attribute__((vector_size (2)));
> >       typedef char v4hi __attribute__((vector_size (4)));
> >       typedef short v2hi __attribute__((vector_size (4)));
> > 
> > My thought is that these should be treated the same as if they
> > were an array in the classification phase, which would put them
> > squarely in class INTEGER.
> 
> This seems to make sense for me.

I'm probably missing the obvious here, but what is the advantage
of this over putting all vector types up to 16 bytes into class
SSE? I'd expect most operations on vectors to require them in
xmm registers anyway.

 Arnd <><
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: signature
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20041219/e3ee3a81/attachment.sig>


More information about the Gcc mailing list