public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/114396] New: [14] RISC-V rv64gcv vector: Runtime mismatch at -O3 with -fwrapv
@ 2024-03-19 15:37 patrick at rivosinc dot com
  2024-03-19 15:40 ` [Bug target/114396] " patrick at rivosinc dot com
                   ` (24 more replies)
  0 siblings, 25 replies; 26+ messages in thread
From: patrick at rivosinc dot com @ 2024-03-19 15:37 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 114396
           Summary: [14] RISC-V rv64gcv vector: Runtime mismatch at -O3
                    with -fwrapv
           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: ---

Testcase:
short a = 0xF;
short b[16];
int main() {
  for (int e = 0; e < 9; e += 1)
    b[e] = a *= 0x5;
  __builtin_printf("decimal: %d\n", a);
  __builtin_printf("hex: %X\n", a);
}

Commands:
> /scratch/tc-testing/tc-mar-18/build-rv64gcv/bin/riscv64-unknown-linux-gnu-gcc -march=rv64gcv -O3 red.c -o red.out -fwrapv
> /scratch/tc-testing/tc-mar-18/build-rv64gcv/bin/qemu-riscv64 red.out
decimal: 32693
hex: 7FB5
> /scratch/tc-testing/tc-mar-18/build-rv64gcv/bin/riscv64-unknown-linux-gnu-gcc red.c -o red.out
> /scratch/tc-testing/tc-mar-18/build-rv64gcv/bin/qemu-riscv64 red.out
decimal: 2283
hex: 8EB

Discovered/tested using r14-9519-g3e3ad8eeb41 (not bisected)

Found using fuzzer.

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

end of thread, other threads:[~2024-03-22  2:19 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-19 15:37 [Bug target/114396] New: [14] RISC-V rv64gcv vector: Runtime mismatch at -O3 with -fwrapv patrick at rivosinc dot com
2024-03-19 15:40 ` [Bug target/114396] " patrick at rivosinc dot com
2024-03-19 16:58 ` rdapp at gcc dot gnu.org
2024-03-19 17:01 ` rdapp at gcc dot gnu.org
2024-03-19 17:07 ` redi at gcc dot gnu.org
2024-03-19 17:08 ` [Bug target/114396] [14 Regression] Vector: Runtime mismatch at -O2 " patrick at rivosinc dot com
2024-03-19 17:59 ` [Bug tree-optimization/114396] " pinskia at gcc dot gnu.org
2024-03-19 20:48 ` rdapp at gcc dot gnu.org
2024-03-20  6:12 ` rdapp at gcc dot gnu.org
2024-03-20  8:01 ` rguenth at gcc dot gnu.org
2024-03-20 11:10 ` [Bug tree-optimization/114396] [13/14 " sjames at gcc dot gnu.org
2024-03-20 11:12 ` sjames at gcc dot gnu.org
2024-03-20 11:41 ` sjames at gcc dot gnu.org
2024-03-20 11:42 ` [Bug tree-optimization/114396] [13/14 Regression] Vector: Runtime mismatch at -O2 with -fwrapv since r13-7988-g82919cf4cb2321 sjames at gcc dot gnu.org
2024-03-20 11:56 ` rguenth at gcc dot gnu.org
2024-03-20 12:36 ` liuhongt at gcc dot gnu.org
2024-03-20 12:40 ` liuhongt at gcc dot gnu.org
2024-03-21  3:25 ` liuhongt at gcc dot gnu.org
2024-03-21 10:01 ` cvs-commit at gcc dot gnu.org
2024-03-21 10:05 ` juzhe.zhong at rivai dot ai
2024-03-21 10:08 ` liuhongt at gcc dot gnu.org
2024-03-21 10:10 ` pinskia at gcc dot gnu.org
2024-03-21 11:17 ` cvs-commit at gcc dot gnu.org
2024-03-22  2:16 ` cvs-commit at gcc dot gnu.org
2024-03-22  2:18 ` cvs-commit at gcc dot gnu.org
2024-03-22  2:19 ` liuhongt 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).