This is the mail archive of the gcc@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: AltiVec in gcc-current: questions.


Am Sam, 2002-08-10 um 09.57 schrieb Matt Thomas:

>          vmrghh dst,zero,src
 
> where dst is a vector unsigned int and src is a vector unsigned short.
> (dst could equally be a vector signed int).  But the builtins say
> that vmrg[hl]h only result in V8HI.

This is correct. The result of the vec_merge* operations is always the
same type as the arguments.

> This wouldn't be so bad if I could cast the vectors but the compiler
> seems to disallow that.

Where did that fail? Casting vectors should be fine...
 
-- 
Servus,
       Daniel


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