On 08/31/2012 06:20 PM, Marc Glisse wrote:
this patch copies some more vector extensions from the C front-end to
the C++ front-end. There seemed to be some reluctance to add those, but
I guess a patch is the best way to ask

What was the reluctance? It seems clear to me that if we support the type, we should support these operations. Following the OpenCL standard makes sense to me.

I have some issues with the vector-compare-2.c torture test. It passes a
vector by value (argument and return type), which is likely to warn
(although for some reason it doesn't for me, with today's compiler). And
it takes -Wno-psabi through a .x file, but those are not read in
c-c++-common, so I put it in dg-options.

That sounds fine.

I would have changed the
function to use pointers, but I don't know if it specifically wants to
test passing by value...

I don't know either.

+         if (TREE_TYPE (type0) != TREE_TYPE (type1))

I think this should use same_type_ignoring_top_level_qualifiers_p.

Jason

Reply via email to