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



--- Comment #6 from Marc Glisse <glisse at gcc dot gnu.org> 2013-01-03 08:56:47 
UTC ---

(In reply to comment #5)

> I've slightly adjusted the testcase, so that it at least doesn't violate 
> strict

> aliasing, unfortunately without the uninitialized c it doesn't trigger.  And I

> couldn't find a way to create ABS_EXPR of vectors using vector types directly.



I would also like a way to generate ABS_EXPR and MAX_EXPR for vectors, but for

this specific bug, it is probably easier to stick to unsigned types:



typedef unsigned long vec __attribute__((vector_size(16)));



void f(vec* x){

  *x = (*x >= 0) ? *x : 0;

}

Reply via email to