[Bug tree-optimization/110817] [14 Regression] wrong code with vector compares and vector lowering

zsojka at seznam dot cz gcc-bugzilla@gcc.gnu.org
Fri Sep 1 10:29:13 GMT 2023


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

--- Comment #10 from Zdenek Sojka <zsojka at seznam dot cz> ---
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;
}
$ x86_64-pc-linux-gnu-gcc testcase.c && ./a.out
Aborted
$ aarch64-unknown-linux-gnu-gcc testcase.c -static && ./a.out
qemu: uncaught target signal 6 (Aborted) - core dumped
Aborted


More information about the Gcc-bugs mailing list