public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/112561] New: [14 Regression] Segfault only on RISC-V vector
@ 2023-11-16  8:06 patrick at rivosinc dot com
  2023-11-16  9:01 ` [Bug target/112561] " juzhe.zhong at rivai dot ai
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: patrick at rivosinc dot com @ 2023-11-16  8:06 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 112561
           Summary: [14 Regression] Segfault only on RISC-V vector
           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: ---

This testcase used to run successfully on rv64gcv but now fails with a
segmentation fault:

Testcase:
int printf(char *, ...);
int a, b, c, e;
short d[7][7] = {};
void main() {
  short f;
  c = 0;
  for (; c <= 6; c++) {
    e |= d[c][c] & 1;
    b &= f & 3;
  }
  printf("%X\n", a);
}

GCC command:
./bin/riscv64-unknown-linux-gnu-gcc -march=rv64gcv -mabi=lp64d -ftree-vectorize
-O3 --param riscv-autovec-preference=fixed-vlmax ../testcase.c -o rv64gcv.out

QEMU v8.1.2 output:
> QEMU_CPU="rv64,vlen=128,v=true,vext_spec=v1.0,Zve32f=true,Zve64f=true" /scratch/tc-testing/tc-nov-13-trunk/build-rv64gcv/bin/qemu-riscv64 rv64gcv.out
zsh: segmentation fault (core dumped) 
QEMU_CPU="rv64,vlen=128,v=true,vext_spec=v1.0,Zve32f=true,Zve64f=true"

Bisected to: r14-5151-g0c42741ad95

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

end of thread, other threads:[~2023-11-20 18:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-16  8:06 [Bug target/112561] New: [14 Regression] Segfault only on RISC-V vector patrick at rivosinc dot com
2023-11-16  9:01 ` [Bug target/112561] " juzhe.zhong at rivai dot ai
2023-11-16 12:48 ` rguenth at gcc dot gnu.org
2023-11-19  2:44 ` cvs-commit at gcc dot gnu.org
2023-11-20 18:50 ` 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).