[Bug tree-optimization/110817] [14 Regression] wrong code with vector compares and vector lowering
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Jul 27 20:42:10 GMT 2023
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110817
--- Comment #9 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Here is a reduced testcase that does not need -mno-sse or any other option but
fails everywhere:
```
typedef unsigned __attribute__((__vector_size__ (1*sizeof(unsigned)))) V;
V v;
unsigned char c;
int
main (void)
{
V x = (v > 0) > (v != c);
volatile signed int t = x[0];
if (t)
__builtin_abort ();
return 0;
}
```
t in this case is -2
More information about the Gcc-bugs
mailing list