------- Comment #2 from pinskia at gcc dot gnu dot org  2006-12-14 17:29 -------
(In reply to comment #1)
> Builtin vmuloub has always returned "wrong" types, because it derives its 
> types
> simply from the modes of the altivec_vmuloub pattern. 
Except that is wrong.  Look at the altivec PIM and you will see it returns
vector unsigned short.
Take the following testcase:
#include <altivec.h>
vector unsigned short f(vector unsigned char a, vector unsigned char b)
{
 return vec_vmuloub(a, b);
}

This should work even if we cannot assign from vector signed short to vector
unsigend short.

I think this whole type issue is a mess and needs some improvement.
Maybe next week I can get to that.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2006-12-14 17:29:55
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30210

Reply via email to