public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/115669] New: [15 Regression] rv64gcv -fwrapv miscompile since r15-1006-gd93353e6423
@ 2024-06-26 17:45 patrick at rivosinc dot com
  2024-06-26 17:56 ` [Bug tree-optimization/115669] " pinskia at gcc dot gnu.org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: patrick at rivosinc dot com @ 2024-06-26 17:45 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 115669
           Summary: [15 Regression] rv64gcv -fwrapv miscompile since
                    r15-1006-gd93353e6423
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: patrick at rivosinc dot com
  Target Milestone: ---

Testcase:
int a = 10;
unsigned b;
long long c[100];
int main() {
  long long *d = c;
  for (short e = 0; e < a; e++)
    b += ~(d ? d[e] : 0);
  __builtin_printf("%d\n", b);
}

Commands:
>  /scratch/tc-testing/tc-compiler-fuzz-trunk/build-gcv/bin/riscv64-unknown-linux-gnu-gcc red.c -march=rv64gcv -O3 -o red.out -fwrapv
> QEMU_CPU=rv64,vlen=256,v=true,vext_spec=v1.0,zve32f=true,zve64f=true timeout --verbose -k 0.1 4 /scratch/tc-testing/tc-compiler-fuzz-trunk/build-gcv/bin/qemu-riscv64 red.out
-8

>  /scratch/tc-testing/tc-compiler-fuzz-trunk/build-gcv/bin/riscv64-unknown-linux-gnu-gcc red.c -march=rv64gcv -O2 -o red.out -fwrapv
> QEMU_CPU=rv64,vlen=256,v=true,vext_spec=v1.0,zve32f=true,zve64f=true timeout --verbose -k 0.1 4 /scratch/tc-testing/tc-compiler-fuzz-trunk/build-gcv/bin/qemu-riscv64 red.out
-10

First bad commit: r15-1006-gd93353e6423

Found via fuzzer but Vineet bisected the 502.gcc_r benchmark breakage in
spec2017 for the riscv target to the same commit so this _might_ be the same
issue.

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

end of thread, other threads:[~2024-06-27 12:24 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-26 17:45 [Bug tree-optimization/115669] New: [15 Regression] rv64gcv -fwrapv miscompile since r15-1006-gd93353e6423 patrick at rivosinc dot com
2024-06-26 17:56 ` [Bug tree-optimization/115669] " pinskia at gcc dot gnu.org
2024-06-26 21:12 ` pinskia at gcc dot gnu.org
2024-06-26 21:15 ` pinskia at gcc dot gnu.org
2024-06-27  5:56 ` [Bug tree-optimization/115669] [15 Regression] rv64gcv/aarch64+sve " rguenth at gcc dot gnu.org
2024-06-27  6:30 ` rguenth at gcc dot gnu.org
2024-06-27  8:21 ` rguenth at gcc dot gnu.org
2024-06-27  8:32 ` rguenth at gcc dot gnu.org
2024-06-27 12:11 ` cvs-commit at gcc dot gnu.org
2024-06-27 12:12 ` rguenth at gcc dot gnu.org
2024-06-27 12:24 ` [Bug tree-optimization/115669] [12/13/14 " rguenth at gcc dot gnu.org

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).