public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/112971] New: [14] RISC-V rv64gcv_zvl256b vector -O3: internal compiler error: Segmentation fault signal terminated program cc1
@ 2023-12-11 21:47 patrick at rivosinc dot com
  2023-12-11 22:17 ` [Bug target/112971] " juzhe.zhong at rivai dot ai
                   ` (23 more replies)
  0 siblings, 24 replies; 25+ messages in thread
From: patrick at rivosinc dot com @ 2023-12-11 21:47 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 112971
           Summary: [14] RISC-V rv64gcv_zvl256b vector -O3: internal
                    compiler error: Segmentation fault signal terminated
                    program cc1
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: patrick at rivosinc dot com
  Target Milestone: ---

> /scratch/tc-testing/tc-dec-11-trunk/build-rv64gcv/bin/riscv64-unknown-linux-gnu-gcc -march=rv64gcv_zvl256b -mabi=lp64d -O3 red.c -S
riscv64-unknown-linux-gnu-gcc: internal compiler error: Segmentation fault
signal terminated program cc1
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
See <https://gcc.gnu.org/bugs/> for instructions.

Testcase:
int a;
short b[9];
char c, d;
void e() {
  d = 0;
  for (;; d++) {
    if (b[d])
      break;
    a = 8;
    for (; a >= 0; a--) {
      char *f = &c;
      *f &= d == (a & d);
    }
  }
}

-freport bug doesn't seem to be working, so here's the GCC -v output:
> /scratch/tc-testing/tc-dec-11-trunk/build-rv64gcv/bin/riscv64-unknown-linux-gnu-gcc -v
Using built-in specs.
COLLECT_GCC=/scratch/tc-testing/tc-dec-11-trunk/build-rv64gcv/bin/riscv64-unknown-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/scratch/tc-testing/tc-dec-11-trunk/build-rv64gcv/libexec/gcc/riscv64-unknown-linux-gnu/14.0.0/lto-wrapper
Target: riscv64-unknown-linux-gnu
Configured with:
/scratch/tc-testing/tc-dec-11-trunk/build-rv64gcv/../gcc/configure
--target=riscv64-unknown-linux-gnu
--prefix=/scratch/tc-testing/tc-dec-11-trunk/build-rv64gcv
--with-sysroot=/scratch/tc-testing/tc-dec-11-trunk/build-rv64gcv/sysroot
--with-pkgversion=geea25179d8d --with-system-zlib --enable-shared --enable-tls
--enable-languages=c,c++,fortran --disable-libmudflap --disable-libssp
--disable-libquadmath --disable-libsanitizer --disable-nls --disable-bootstrap
--src=../../gcc --enable-multilib --with-abi=lp64d --with-arch=rv64imafdc
--with-tune=rocket --with-isa-spec=20191213 'CFLAGS_FOR_TARGET=-O2   
-mcmodel=medlow' 'CXXFLAGS_FOR_TARGET=-O2    -mcmodel=medlow'
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 14.0.0 20231211 (experimental) (geea25179d8d)

The issue goes away if I use --param=riscv-autovec-preference=fixed-vlmax.

Godbolt: https://godbolt.org/z/4ovbT6d77

^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2024-02-22 21:37 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-11 21:47 [Bug target/112971] New: [14] RISC-V rv64gcv_zvl256b vector -O3: internal compiler error: Segmentation fault signal terminated program cc1 patrick at rivosinc dot com
2023-12-11 22:17 ` [Bug target/112971] " juzhe.zhong at rivai dot ai
2023-12-12 12:11 ` rdapp at gcc dot gnu.org
2023-12-12 13:14 ` rdapp at gcc dot gnu.org
2023-12-12 13:15 ` juzhe.zhong at rivai dot ai
2023-12-12 13:18 ` rdapp at gcc dot gnu.org
2023-12-12 17:48 ` [Bug middle-end/112971] " pinskia at gcc dot gnu.org
2023-12-12 17:50 ` pinskia at gcc dot gnu.org
2023-12-12 18:18 ` rdapp at gcc dot gnu.org
2023-12-12 18:25 ` pinskia at gcc dot gnu.org
2023-12-12 18:25 ` pinskia at gcc dot gnu.org
2023-12-12 18:30 ` pinskia at gcc dot gnu.org
2023-12-14 22:08 ` juzhe.zhong at rivai dot ai
2023-12-14 22:15 ` pinskia at gcc dot gnu.org
2023-12-14 22:18 ` juzhe.zhong at rivai dot ai
2023-12-14 22:22 ` patrick at rivosinc dot com
2023-12-14 22:26 ` patrick at rivosinc dot com
2023-12-14 22:56 ` juzhe.zhong at rivai dot ai
2023-12-14 22:59 ` pinskia at gcc dot gnu.org
2023-12-14 23:02 ` juzhe.zhong at rivai dot ai
2023-12-15  3:36 ` juzhe.zhong at rivai dot ai
2024-01-10 13:35 ` juzhe.zhong at rivai dot ai
2024-01-10 13:37 ` rdapp at gcc dot gnu.org
2024-01-25 15:54 ` cvs-commit at gcc dot gnu.org
2024-02-22 21:37 ` patrick at rivosinc dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).