[Bug target/116086] RISC-V: Hash mismatch with vectorized 557.xz_r at zvl128b and LMUL=m2

2024-07-26 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116086 --- Comment #8 from Patrick O'Neill --- (In reply to Robin Dapp from comment #6) > Ah, thanks for reducing. I didn't get much further with cvise yesterday. > What were your settings for it? I used the normal settings (just --timeout to fail

[Bug target/116111] New: RISC-V: 'd' extension allowed with -mabi=ilp32e

2024-07-26 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116111 Bug ID: 116111 Summary: RISC-V: 'd' extension allowed with -mabi=ilp32e Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug target/116086] RISC-V: Hash mismatch with vectorized 557.xz_r at zvl128b and LMUL=m2

2024-07-25 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116086 --- Comment #5 from Patrick O'Neill --- Ah yep that was it :) Reduced testcase: long a; long b; long c[80]; int main() { for (int d = 0; d < 16; d++) c[d] = a; for (int d = 16; d < 80; d++) c[d] = c[d - 2]; for (int d = 0; d <

[Bug target/116086] RISC-V: Hash mismatch with vectorized 557.xz_r at zvl128b and LMUL=m2

2024-07-25 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116086 --- Comment #3 from Patrick O'Neill --- I'm having trouble reproducing the failure. Here's my commands: > /scratch/tc-testing/tc-compiler-fuzz-trunk/build-gcv/bin/riscv64-unknown-linux-gnu-gcc > -O3 -march=rv64gcv -mrvv-max-lmul=m2 red.c -o

[Bug target/116085] RISC-V: Miscompile at -O2 with zbb

2024-07-25 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116085 --- Comment #3 from Patrick O'Neill --- (In reply to Xi Ruoyao from comment #2) > Maybe add __attribute__((noipa)) for test() and merge the files. That worked, thanks! Testcase: int a = 2; unsigned b = 0x8000; int arr_5[2][23]; void

[Bug target/116085] RISC-V: Miscompile at -O2 with zbb

2024-07-25 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116085 --- Comment #1 from Patrick O'Neill --- Tested using r15-2276-gd2fc64c8578

[Bug target/116085] New: RISC-V: Miscompile at -O2 with zbb

2024-07-25 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116085 Bug ID: 116085 Summary: RISC-V: Miscompile at -O2 with zbb Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target

[Bug target/114665] [14/15 only] RISC-V rv64gcv: miscompile at -O3

2024-07-24 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114665 --- Comment #11 from Patrick O'Neill --- (In reply to Robin Dapp from comment #10) > Arg, no, disregard. I was just looking for FFB5 as a failure but I'm > actually still seeing FFB5 for -O2, -O3, rv64gc etc. Ah bummer. Hopefully

[Bug target/116035] [14/15] RISC-V: -march=rv64g_xtheadmemidx_zba generates illegal lwu insn

2024-07-24 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116035 --- Comment #8 from Patrick O'Neill --- (In reply to Sam James from comment #7) > (In reply to Patrick O'Neill from comment #5) ... > > Typically I use [14/15 Regression] if I'm sure it's a regression (ex. the > > feature exists in prior

[Bug target/116035] [14/15] RISC-V: -march=rv64g_xtheadmemidx_zba generates illegal lwu insn

2024-07-24 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116035 --- Comment #5 from Patrick O'Neill --- (In reply to Sam James from comment #3) > I assume this is a '[14/15 regression]', or does < 14 not support these > instructions and you're using it just to say what's affected? If the latter, > it's

[Bug target/116059] [14/15 Regression] Miscompile at -O2 since r14-6420-g85c5efcffed

2024-07-23 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116059 --- Comment #2 from Patrick O'Neill --- Thanks, I'll take a look at the riscv side and see what I can find out.

[Bug target/114665] [14] RISC-V rv64gcv: miscompile at -O3

2024-07-23 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114665 --- Comment #8 from Patrick O'Neill --- Bisected to r14-3840-g88a0a883960 but that isn't the offending patch. Can't find a baseline with --param=riscv-autovec-preference=scalable so I guess this isn't bisectable.

[Bug tree-optimization/116059] New: [14/15 Regression] Miscompile at -O2 since r14-6420-g85c5efcffed

2024-07-23 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116059 Bug ID: 116059 Summary: [14/15 Regression] Miscompile at -O2 since r14-6420-g85c5efcffed Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal

[Bug middle-end/114196] [13 Regression] Fixed length vector ICE: in vect_peel_nonlinear_iv_init, at tree-vect-loop.cc:9454

2024-07-23 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114196 Patrick O'Neill changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug target/114916] [14/15] RISC-V rv64gcv_zvl256b: miscompile at -O3 with -mrvv-vector-bits=zvl -fwhole-program

2024-07-23 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114916 Patrick O'Neill changed: What|Removed |Added Resolution|--- |FIXED Status|UNCONFIRMED

[Bug target/114665] [14] RISC-V rv64gcv: miscompile at -O3

2024-07-23 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114665 --- Comment #7 from Patrick O'Neill --- Retested using r15-2217-ga3f03891065. It's changed slightly but is still reproducible on my machine :-/ > /scratch/tc-testing/tc-compiler-fuzz-trunk/build-gcv/bin/riscv64-unknown-linux-gnu-gcc >

[Bug target/116039] New: [15] rv64gc miscompile at -O3 with -fno-strict-aliasing since r15-1901-g98914f9eba5

2024-07-22 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116039 Bug ID: 116039 Summary: [15] rv64gc miscompile at -O3 with -fno-strict-aliasing since r15-1901-g98914f9eba5 Product: gcc Version: 15.0 Status: UNCONFIRMED

[Bug target/116036] [14/15] RISCV: internal compiler error: in riscv_expand_mult_with_const_int with -march=rv64idv

2024-07-22 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116036 --- Comment #1 from Patrick O'Neill --- Here's the assert that gets triggered: /* We use multiplication for remaining cases. */ gcc_assert ( TARGET_MUL && "M-extension must be enabled to calculate the poly_int " "size/offset.");

[Bug target/116036] New: [14/15] RISCV: internal compiler error: in riscv_expand_mult_with_const_int with -march=rv64idv

2024-07-22 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116036 Bug ID: 116036 Summary: [14/15] RISCV: internal compiler error: in riscv_expand_mult_with_const_int with -march=rv64idv Product: gcc Version: 15.0 Status: UNCONFIRMED

[Bug target/116035] New: [14/15] RISC-V: -march=rv64g_xtheadmemidx_zba generates illegal lwu insn

2024-07-22 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116035 Bug ID: 116035 Summary: [14/15] RISC-V: -march=rv64g_xtheadmemidx_zba generates illegal lwu insn Product: gcc Version: 15.0 Status: UNCONFIRMED Severity:

[Bug target/116033] New: [14/15] RISC-V: -march=rv64gv_xtheadmemidx generates illegal vse8.v insn

2024-07-22 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116033 Bug ID: 116033 Summary: [14/15] RISC-V: -march=rv64gv_xtheadmemidx generates illegal vse8.v insn Product: gcc Version: 15.0 Status: UNCONFIRMED Severity:

[Bug tree-optimization/115959] New: [15 Regression] rv64gcv ICE: segfault during GIMPLE pass: vect

2024-07-16 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115959 Bug ID: 115959 Summary: [15 Regression] rv64gcv ICE: segfault during GIMPLE pass: vect Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal

[Bug middle-end/115703] New: [15 Regression] rv64gcv_zvl256b miscompile since r15-1579-g792f97b44ff

2024-06-28 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115703 Bug ID: 115703 Summary: [15 Regression] rv64gcv_zvl256b miscompile since r15-1579-g792f97b44ff Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal

[Bug tree-optimization/115669] New: [15 Regression] rv64gcv -fwrapv miscompile since r15-1006-gd93353e6423

2024-06-26 Thread patrick at rivosinc dot com via 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

[Bug rtl-optimization/115495] [15 Regression] ICE in smallest_mode_for_size, at stor-layout.cc:356 during combine on RISC-V rv64gcv_zvl256b at -O3 since r15-1042-g68b0742a49d

2024-06-20 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115495 Patrick O'Neill changed: What|Removed |Added Summary|[15 Regression] ICE in |[15 Regression] ICE in

[Bug rtl-optimization/115495] [15 Regression] ICE in smallest_mode_for_size, at stor-layout.cc:356 during combine on RISC-V rv64gcv_zvl256b at -O3

2024-06-19 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115495 --- Comment #4 from Patrick O'Neill --- This failure also appears when compiling glibc 2.39 with rv64gcv_zvl512b and rv64gcv_zvl1024b.

[Bug middle-end/115495] New: [15 Regression] ICE in smallest_mode_for_size, at stor-layout.cc:356 during combine on RISC-V rv64gcv_zvl256b at -O3

2024-06-14 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115495 Bug ID: 115495 Summary: [15 Regression] ICE in smallest_mode_for_size, at stor-layout.cc:356 during combine on RISC-V rv64gcv_zvl256b at -O3 Product: gcc

[Bug c/115441] New: Pointer/integer mismatch in __atomic_fetch-* not covered by -Wint-conversion

2024-06-11 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115441 Bug ID: 115441 Summary: Pointer/integer mismatch in __atomic_fetch-* not covered by -Wint-conversion Product: gcc Version: 15.0 Status: UNCONFIRMED Severity:

[Bug target/115375] New: [15 Regression] RISCV scan failures since 2024-05-04

2024-06-06 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115375 Bug ID: 115375 Summary: [15 Regression] RISCV scan failures since 2024-05-04 Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug target/115373] [15 Regression] RISCV slp-cond-2-big-array.c slp-cond-2.c scan-tree-dump fails since r15-859-geaaa4b88038

2024-06-06 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115373 --- Comment #1 from Patrick O'Neill --- Relevant postcommit issue: https://github.com/patrick-rivos/gcc-postcommit-ci/issues/999

[Bug target/115373] New: [15 Regression] RISCV slp-cond-2-big-array.c slp-cond-2.c scan-tree-dump fails since r15-859-geaaa4b88038

2024-06-06 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115373 Bug ID: 115373 Summary: [15 Regression] RISCV slp-cond-2-big-array.c slp-cond-2.c scan-tree-dump fails since r15-859-geaaa4b88038 Product: gcc Version: 15.0

[Bug target/115372] [15 Regression] RISCV pr97428.c scan-tree-dump-times after r15-812-gc71886f2ca2

2024-06-06 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115372 --- Comment #1 from Patrick O'Neill --- debug output: gcc.target/riscv/rvv/autovec/struct/struct_vect-4.c: vsseg3e64\\.v found 0 times FAIL: gcc.target/riscv/rvv/autovec/struct/struct_vect-4.c scan-assembler-times vsseg3e64\\.v 8

[Bug target/115372] New: [15 Regression] RISCV pr97428.c scan-tree-dump-times after r15-812-gc71886f2ca2

2024-06-06 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115372 Bug ID: 115372 Summary: [15 Regression] RISCV pr97428.c scan-tree-dump-times after r15-812-gc71886f2ca2 Product: gcc Version: 15.0 Status: UNCONFIRMED

[Bug middle-end/115346] New: [15] Volatile load elimination with packed struct bitfields at -O2

2024-06-04 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115346 Bug ID: 115346 Summary: [15] Volatile load elimination with packed struct bitfields at -O2 Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal

[Bug target/115336] [15] rv64gcv_zvl256b miscompile at -O3

2024-06-03 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115336 Patrick O'Neill changed: What|Removed |Added Keywords||wrong-code Target|

[Bug target/115336] New: [15] rv64gcv_zvl256b miscompile at -O3

2024-06-03 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115336 Bug ID: 115336 Summary: [15] rv64gcv_zvl256b miscompile at -O3 Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target

[Bug c++/115195] [12 Regression] Segfault when instantiating template

2024-05-22 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115195 --- Comment #4 from Patrick O'Neill --- Thanks Andrew

[Bug c++/115195] New: [12 Regression] Segfault when instantiating template

2024-05-22 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115195 Bug ID: 115195 Summary: [12 Regression] Segfault when instantiating template Product: gcc Version: 12.3.0 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug tree-optimization/115143] New: [14/15 Regression] tree check: expected class 'type', have 'exceptional' (error_mark) in useless_type_conversion_p, at gimple-expr.cc:85

2024-05-17 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115143 Bug ID: 115143 Summary: [14/15 Regression] tree check: expected class 'type', have 'exceptional' (error_mark) in useless_type_conversion_p, at gimple-expr.cc:85 Product:

[Bug target/115142] New: [14/15 Regression] Unrecognizable insn in extract_insn, at recog.cc:2812 with -ftree-ter

2024-05-17 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115142 Bug ID: 115142 Summary: [14/15 Regression] Unrecognizable insn in extract_insn, at recog.cc:2812 with -ftree-ter Product: gcc Version: 15.0 Status: UNCONFIRMED

[Bug target/115123] New: [15 Regression] RISCV vector scan-assembler failures

2024-05-16 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115123 Bug ID: 115123 Summary: [15 Regression] RISCV vector scan-assembler failures Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug rtl-optimization/115104] RISC-V: GCC-14 can combine vsext+vadd -> vwadd but Trunk GCC (GCC 15) Failed

2024-05-15 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115104 --- Comment #4 from Patrick O'Neill --- Relevant CI issue: https://github.com/patrick-rivos/gcc-postcommit-ci/issues/895 Commit Range:

[Bug target/114916] New: [14/15] RISC-V rv64gcv_zvl256b: miscompile at -O3 with -mrvv-vector-bits=zvl -fwhole-program

2024-05-01 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114916 Bug ID: 114916 Summary: [14/15] RISC-V rv64gcv_zvl256b: miscompile at -O3 with -mrvv-vector-bits=zvl -fwhole-program Product: gcc Version: 14.0 Status: UNCONFIRMED

[Bug target/114734] [11/12/13/14 regression] RISC-V rv64gcv_zvl256b miscompile with -flto -O3 -mrvv-vector-bits=zvl since r8-6047-g65dd1346027bb5

2024-04-30 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114734 --- Comment #14 from Patrick O'Neill --- I'll send a patch with the testcase in a few hours. Testing it now.

[Bug target/114756] New: [14] RISC-V rv32imc miscompile with -fdata-sections

2024-04-17 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114756 Bug ID: 114756 Summary: [14] RISC-V rv32imc miscompile with -fdata-sections Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug tree-optimization/114749] New: [14] RISC-V rv64gcv ICE: in vectorizable_load, at tree-vect-stmts.cc

2024-04-16 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114749 Bug ID: 114749 Summary: [14] RISC-V rv64gcv ICE: in vectorizable_load, at tree-vect-stmts.cc Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal

[Bug target/114734] New: [14] RISC-V rv64gcv_zvl256b miscompile with -flto -O3 -mrvv-vector-bits=zvl

2024-04-15 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114734 Bug ID: 114734 Summary: [14] RISC-V rv64gcv_zvl256b miscompile with -flto -O3 -mrvv-vector-bits=zvl Product: gcc Version: 14.0 Status: UNCONFIRMED Severity:

[Bug middle-end/114733] New: [14] Miscompile with -march=rv64gcv -O3 on riscv

2024-04-15 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114733 Bug ID: 114733 Summary: [14] Miscompile with -march=rv64gcv -O3 on riscv Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug target/114665] [14] RISC-V rv64gcv: miscompile at -O3

2024-04-15 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114665 --- Comment #6 from Patrick O'Neill --- Binutils: #binutils-2_42 (c7f28aad0c99d1d2fec4e52ebfa3735d90ceb8e9) QEMU_CPU=rv64,vlen=128,v=true,vext_spec=v1.0,zve32f=true,zve64f=true

[Bug target/114665] [14] RISC-V rv64gcv: miscompile at -O3

2024-04-15 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114665 --- Comment #4 from Patrick O'Neill --- Reran as requested in pr114668. Still present with that fix. I'll triage some other testcases and file those as well. Hopefully one of them is a duplicate to this one that is easily reproducible. GCC:

[Bug target/114665] [14] RISC-V rv64gcv: miscompile at -O3

2024-04-10 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114665 --- Comment #3 from Patrick O'Neill --- Created attachment 57922 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57922=edit Generated assembly files Hmm doesn't look like it from my side - maybe there's some stack related weirdness going

[Bug target/114671] New: [RISC-V] -fvar-tracking -gas-locview-support -ggdb emits a non-constant .uleb128

2024-04-09 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114671 Bug ID: 114671 Summary: [RISC-V] -fvar-tracking -gas-locview-support -ggdb emits a non-constant .uleb128 Product: gcc Version: 14.0 Status: UNCONFIRMED

[Bug target/114668] New: [14] RISC-V rv64gcv: miscompile at -O3

2024-04-09 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114668 Bug ID: 114668 Summary: [14] RISC-V rv64gcv: miscompile at -O3 Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target

[Bug middle-end/114666] New: [14 Regression] Signed single bit comparison miscompile at -O2

2024-04-09 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114666 Bug ID: 114666 Summary: [14 Regression] Signed single bit comparison miscompile at -O2 Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal

[Bug target/114665] New: [14] RISC-V rv64gcv: miscompile at -O3

2024-04-09 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114665 Bug ID: 114665 Summary: [14] RISC-V rv64gcv: miscompile at -O3 Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target

[Bug debug/114608] [14 Regression] Undefined reference in output asm with -fipa-reference -fipa-reference-addressable -fsection-anchors -gbtf

2024-04-05 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114608 --- Comment #2 from Patrick O'Neill --- (.BTF+0x88): undefined reference to `a' ^ This is the interesting failure line

[Bug debug/114608] [14 Regression] Undefined reference in output asm with -fipa-reference -fipa-reference-addressable -fsection-anchors -gbtf

2024-04-05 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114608 --- Comment #1 from Patrick O'Neill --- Command: > /scratch/tc-testing/tc-apr-4/build-rv64gcv/bin/riscv64-unknown-linux-gnu-gcc > -fipa-reference -fipa-reference-addressable -fsection-anchors -gbtf red.c -o > rv64gcv.out

[Bug debug/114608] New: [14 Regression] Undefined reference in output asm with -fipa-reference -fipa-reference-addressable -fsection-anchors -gbtf

2024-04-05 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114608 Bug ID: 114608 Summary: [14 Regression] Undefined reference in output asm with -fipa-reference -fipa-reference-addressable -fsection-anchors -gbtf Product: gcc

[Bug ipa/114247] RISC-V: miscompile at -O3 and IPA SRA

2024-04-04 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114247 --- Comment #8 from Patrick O'Neill --- Adjusted testcase: union a { unsigned short b; int c; signed short d; }; int e, f = 1, g; long h; const int **i; void j(union a k, int l, unsigned m) { const int *a[100]; i = [0]; h = k.d; }

[Bug tree-optimization/114485] New: [14] Wrong code with -O3 -march=rv64gcv on riscv

2024-03-26 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114485 Bug ID: 114485 Summary: [14] Wrong code with -O3 -march=rv64gcv on riscv Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug target/114476] New: [14] RISC-V rv64gcv vector: Runtime mismatch at -O3

2024-03-25 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114476 Bug ID: 114476 Summary: [14] RISC-V rv64gcv vector: Runtime mismatch at -O3 Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug target/114399] [14] RISC-V rv32i miscompile

2024-03-19 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114399 Patrick O'Neill changed: What|Removed |Added Resolution|INVALID |FIXED --- Comment #3 from Patrick

[Bug target/114399] New: [14] RISC-V rv32i miscompile

2024-03-19 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114399 Bug ID: 114399 Summary: [14] RISC-V rv32i miscompile Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target

[Bug target/114396] [14 Regression] Vector: Runtime mismatch at -O2 with -fwrapv

2024-03-19 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114396 Patrick O'Neill changed: What|Removed |Added Target|x86_64-*-* riscv*-*-* |riscv*-*-* aarch64-*-*

[Bug target/114396] [14] RISC-V rv64gcv vector: Runtime mismatch at -O3 with -fwrapv

2024-03-19 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114396 --- Comment #1 from Patrick O'Neill --- Here's the result when running with -fwrapv on rv64gcv at O2: > /scratch/tc-testing/tc-mar-18/build-rv64gcv/bin/riscv64-unknown-linux-gnu-gcc > -march=rv64gcv -O2 red.c -o red.out -fwrapv >

[Bug target/114396] New: [14] RISC-V rv64gcv vector: Runtime mismatch at -O3 with -fwrapv

2024-03-19 Thread patrick at rivosinc dot com via 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

[Bug tree-optimization/114386] [11/12/13 Regression] Miscompile at -O1

2024-03-18 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114386 --- Comment #4 from Patrick O'Neill --- (In reply to Patrick O'Neill from comment #0) > ... > Issue is not present when targeting risc-v. This was in reference to tip-of-tree gcc - forgot to update this when I determined the upper bound of the

[Bug target/114386] New: [10/11/12 Regression] Miscompile at -O1

2024-03-18 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114386 Bug ID: 114386 Summary: [10/11/12 Regression] Miscompile at -O1 Product: gcc Version: 12.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug tree-optimization/113281] [11/12/13 Regression] Latent wrong code due to vectorization of shift reduction and missing promotions since r9-1590

2024-03-13 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113281 --- Comment #27 from Patrick O'Neill --- (In reply to Andrew Pinski from comment #26) > (In reply to Edwin Lu from comment #25) > > It's still persisting on trunk (at least for pr113281-1.c > > https://godbolt.org/z/M9EK44hKe) > > I looked

[Bug c/114314] New: [14 Regression] ICE: in common_handle_option, at opts.cc:3356 with -fno-multiflags

2024-03-11 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114314 Bug ID: 114314 Summary: [14 Regression] ICE: in common_handle_option, at opts.cc:3356 with -fno-multiflags Product: gcc Version: 14.0 Status: UNCONFIRMED

[Bug middle-end/114198] [14] RISC-V fixed-length vector -flto ICE: in vectorizable_load, at tree-vect-stmts.cc:10570

2024-03-11 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114198 Patrick O'Neill changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug middle-end/114198] [14] RISC-V fixed-length vector -flto ICE: in vectorizable_load, at tree-vect-stmts.cc:10570

2024-03-11 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114198 --- Comment #3 from Patrick O'Neill --- Fixed!

[Bug middle-end/114195] [14] RISC-V vector ICE: in vectorizable_store, at tree-vect-stmts.cc:8690

2024-03-11 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114195 Patrick O'Neill changed: What|Removed |Added Resolution|--- |FIXED Status|UNCONFIRMED

[Bug middle-end/114196] [13/14 Regression] Fixed length vector ICE: in vect_peel_nonlinear_iv_init, at tree-vect-loop.cc:9454

2024-03-08 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114196 Patrick O'Neill changed: What|Removed |Added Resolution|FIXED |--- Status|RESOLVED

[Bug middle-end/114196] [13/14 Regression] Fixed length vector ICE: in vect_peel_nonlinear_iv_init, at tree-vect-loop.cc:9454

2024-03-08 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114196 Patrick O'Neill changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug rtl-optimization/114261] [13/14 Regression] Scheduling takes excessive time (97%)

2024-03-06 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114261 Patrick O'Neill changed: What|Removed |Added Attachment #57640|0 |1 is obsolete|

[Bug rtl-optimization/114261] [13/14 Regression] Scheduling takes excessive time (97%)

2024-03-06 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114261 --- Comment #2 from Patrick O'Neill --- Created attachment 57641 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57641=edit unreduced preprocessed testcase

[Bug rtl-optimization/114261] [13/14 Regression] Scheduling takes excessive time (97%)

2024-03-06 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114261 --- Comment #1 from Patrick O'Neill --- Created attachment 57640 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57640=edit Raw testcase and headers

[Bug rtl-optimization/114261] New: [13/14 Regression] Scheduling takes excessive time (97%)

2024-03-06 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114261 Bug ID: 114261 Summary: [13/14 Regression] Scheduling takes excessive time (97%) Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal

[Bug target/114200] [14] RISC-V fixed-length vector miscompile at -O3

2024-03-06 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114200 Patrick O'Neill changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug tree-optimization/114249] [14 regression] ICE when building lvm2-2.03.22 (error: invalid types in nop conversion)

2024-03-06 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114249 Patrick O'Neill changed: What|Removed |Added CC||patrick at rivosinc dot com ---

[Bug tree-optimization/114259] [14 Regression] ICE during GIMPLE pass: slp: internal compiler error: tree check: expected class 'type', have 'exceptional' (error_mark) in useless_type_conversion_p, at

2024-03-06 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114259 Patrick O'Neill changed: What|Removed |Added Resolution|--- |DUPLICATE

[Bug tree-optimization/114259] New: [14 Regression] ICE during GIMPLE pass: slp: internal compiler error: tree check: expected class 'type', have 'exceptional' (error_mark) in useless_type_conversion

2024-03-06 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114259 Bug ID: 114259 Summary: [14 Regression] ICE during GIMPLE pass: slp: internal compiler error: tree check: expected class 'type', have 'exceptional' (error_mark) in

[Bug target/114247] New: RISC-V: miscompile at -O3

2024-03-05 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114247 Bug ID: 114247 Summary: RISC-V: miscompile at -O3 Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target

[Bug middle-end/114198] [14] RISC-V fixed-length vector -flto ICE: in vectorizable_load, at tree-vect-stmts.cc:10570

2024-03-04 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114198 --- Comment #2 from Patrick O'Neill --- (In reply to Richard Biener from comment #1) > Probably also with -fwhole-program instead of -flto Thanks! Updated args (--param=riscv-autovec-preference=fixed-vlmax was recently removed):

[Bug target/114202] [14] RISC-V rv64gcv: miscompile at -O3

2024-03-01 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114202 --- Comment #1 from Patrick O'Neill --- Looks similar to pr114200 so it might be related/duplicate.

[Bug target/114202] New: [14] RISC-V rv64gcv: miscompile at -O3

2024-03-01 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114202 Bug ID: 114202 Summary: [14] RISC-V rv64gcv: miscompile at -O3 Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target

[Bug target/114200] New: [14] RISC-V fixed-length vector miscompile at -O3

2024-03-01 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114200 Bug ID: 114200 Summary: [14] RISC-V fixed-length vector miscompile at -O3 Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug middle-end/114198] New: [14] RISC-V fixed-length vector -flto ICE: in vectorizable_load, at tree-vect-stmts.cc:10570

2024-03-01 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114198 Bug ID: 114198 Summary: [14] RISC-V fixed-length vector -flto ICE: in vectorizable_load, at tree-vect-stmts.cc:10570 Product: gcc Version: 14.0 Status: UNCONFIRMED

[Bug middle-end/114197] [14] middle-end: ICE in verify_dominators

2024-03-01 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114197 --- Comment #2 from Patrick O'Neill --- found via fuzzer

[Bug middle-end/114196] New: [13/14 Regression] Fixed length vector ICE: in vect_peel_nonlinear_iv_init, at tree-vect-loop.cc:9454

2024-03-01 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114196 Bug ID: 114196 Summary: [13/14 Regression] Fixed length vector ICE: in vect_peel_nonlinear_iv_init, at tree-vect-loop.cc:9454 Product: gcc Version: 14.0 Status:

[Bug target/114195] New: [14] RISC-V vector ICE: in vectorizable_store, at tree-vect-stmts.cc:8690

2024-03-01 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114195 Bug ID: 114195 Summary: [14] RISC-V vector ICE: in vectorizable_store, at tree-vect-stmts.cc:8690 Product: gcc Version: 14.0 Status: UNCONFIRMED Severity:

[Bug target/114028] [14] RISC-V rv64gcv_zvl256b: miscompile at -O3

2024-02-26 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114028 Patrick O'Neill changed: What|Removed |Added Resolution|--- |FIXED Status|UNCONFIRMED

[Bug middle-end/112971] [14] RISC-V rv64gcv_zvl256b vector -O3: internal compiler error: Segmentation fault signal terminated program cc1

2024-02-22 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112971 Patrick O'Neill changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug target/114028] New: [14] RISC-V rv64gcv_zvl256b: miscompile at -O3

2024-02-20 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114028 Bug ID: 114028 Summary: [14] RISC-V rv64gcv_zvl256b: miscompile at -O3 Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug target/114027] New: [14] RISC-V vector: miscompile at -O3

2024-02-20 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114027 Bug ID: 114027 Summary: [14] RISC-V vector: miscompile at -O3 Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target

[Bug target/113796] New: [14] RISC-V rv64gcv vector: Runtime mismatch at -O2

2024-02-06 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113796 Bug ID: 113796 Summary: [14] RISC-V rv64gcv vector: Runtime mismatch at -O2 Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug middle-end/113607] [14] RISC-V rv64gcv vector: Runtime mismatch at -O3

2024-02-02 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113607 Patrick O'Neill changed: What|Removed |Added Resolution|--- |FIXED Status|UNCONFIRMED

[Bug target/113607] [14] RISC-V rv64gcv vector: Runtime mismatch at -O3

2024-01-26 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113607 --- Comment #6 from Patrick O'Neill --- I think I may have messed up when copy/pasting the testcase. Please try this testcase: struct { signed b; } c, d = {6}; short e, f; int g[1000]; signed char h; int i, j; long k, l; long m(long n, long

[Bug target/113607] [14] RISC-V rv64gcv vector: Runtime mismatch at -O3

2024-01-26 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113607 --- Comment #5 from Patrick O'Neill --- Hmm that's odd. I just reproduced with tip-of-tree GCC. > /scratch/tc-testing/tc-jan-25-reconfirm/build-rv64gcv/bin/riscv64-unknown-linux-gnu-gcc > -O3 -march=rv64gcv red.c -o user-config-o3.out >

  1   2   3   4   >