https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110817

--- Comment #11 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Zdenek Sojka from comment #10)
> Probably related, even simpler testcase, failing everywhere at -O0:
> 
> $ cat testcase.c
> typedef unsigned long __attribute__((__vector_size__ (8))) V;
> 
> int
> main (void)
> {
>   V v = ~((V) { } <=0);
>   if (v[0])
>     __builtin_abort ();
>   return 0;
> }

But unsigned<=0 is always false and taking the bitwise not of that is always
-1.

Reply via email to