public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/112813] New: [14 Regression] RISCV ICE: vsetvl pass: in merge at config/riscv/riscv-vsetvl.cc:1968 on rv32gcv_zvl256b
@ 2023-12-01 19:50 patrick at rivosinc dot com
  2023-12-03  3:25 ` [Bug target/112813] " juzhe.zhong at rivai dot ai
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: patrick at rivosinc dot com @ 2023-12-01 19:50 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 112813
           Summary: [14 Regression] RISCV ICE: vsetvl pass: in merge at
                    config/riscv/riscv-vsetvl.cc:1968 on rv32gcv_zvl256b
           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: ---

Created attachment 56757
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56757&action=edit
-freport-bug output

> /scratch/tc-testing/tc-nov-30-trunk/build-rv64gcv/bin/riscv64-unknown-linux-gnu-gcc -march=rv32gcv_zvl256b -mabi=ilp32d -O3 red.c -S -freport-bug
during RTL pass: vsetvl
red.c: In function 'k':
red.c:21:1: internal compiler error: in merge, at
config/riscv/riscv-vsetvl.cc:1968
   21 | }
      | ^
0xac3d86 demand_system::merge(vsetvl_info&, vsetvl_info const&)
        ../../../gcc/gcc/config/riscv/riscv-vsetvl.cc:1968
0xac3d86 pre_vsetvl::earliest_fuse_vsetvl_info()
        ../../../gcc/gcc/config/riscv/riscv-vsetvl.cc:2992
0x1733d79 pass_vsetvl::lazy_vsetvl()
        ../../../gcc/gcc/config/riscv/riscv-vsetvl.cc:3472
0x17340df pass_vsetvl::execute(function*)
        ../../../gcc/gcc/config/riscv/riscv-vsetvl.cc:3519
0x17340df pass_vsetvl::execute(function*)
        ../../../gcc/gcc/config/riscv/riscv-vsetvl.cc:3502
Please submit a full bug report, with preprocessed source.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
Preprocessed source stored into /scratch/tmp/ccoSwl1N.out file, please attach
this to your bugreport.

creduced testcase:
int a, c, d, f, j;
int b[7];
long e;
char *g;
int *h;
long long *i;
void k() {
  int l[][1] = {{}, {1}, {1}};
  int *m = &d, *n = &l[0][0];
  for (; e;) {
    f = 3;
    for (; f >= 0; f--) {
      *m &= b[f] >= 0;
      j = a >= 2 ? 0 : 1 >> a;
      *i |= j;
    }
    for (; c;)
      *g = 0;
  }
  h = n;
}

I've attached the -freport-bug output.

Compiler explorer: https://godbolt.org/z/G49a3P8Ef

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

* [Bug target/112813] [14 Regression] RISCV ICE: vsetvl pass: in merge at config/riscv/riscv-vsetvl.cc:1968 on rv32gcv_zvl256b
  2023-12-01 19:50 [Bug target/112813] New: [14 Regression] RISCV ICE: vsetvl pass: in merge at config/riscv/riscv-vsetvl.cc:1968 on rv32gcv_zvl256b patrick at rivosinc dot com
@ 2023-12-03  3:25 ` juzhe.zhong at rivai dot ai
  2023-12-04  3:01 ` juzhe.zhong at rivai dot ai
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: juzhe.zhong at rivai dot ai @ 2023-12-03  3:25 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from JuzheZhong <juzhe.zhong at rivai dot ai> ---
I think it's probably fixed on the trunk by my recent patch:
https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=923a67f17badcbe6e2b2e5d3570a265443258c8e


If it has been fixed, plz verify it  and send a patch with testcase directly.

Thanks.

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

* [Bug target/112813] [14 Regression] RISCV ICE: vsetvl pass: in merge at config/riscv/riscv-vsetvl.cc:1968 on rv32gcv_zvl256b
  2023-12-01 19:50 [Bug target/112813] New: [14 Regression] RISCV ICE: vsetvl pass: in merge at config/riscv/riscv-vsetvl.cc:1968 on rv32gcv_zvl256b patrick at rivosinc dot com
  2023-12-03  3:25 ` [Bug target/112813] " juzhe.zhong at rivai dot ai
@ 2023-12-04  3:01 ` juzhe.zhong at rivai dot ai
  2023-12-04  6:45 ` rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: juzhe.zhong at rivai dot ai @ 2023-12-04  3:01 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from JuzheZhong <juzhe.zhong at rivai dot ai> ---
https://godbolt.org/z/8bovzxYox

Confirm it has been fixed now.

Could you send a patch with test pr112813.c ? To avoid future regression.

Thanks.

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

* [Bug target/112813] [14 Regression] RISCV ICE: vsetvl pass: in merge at config/riscv/riscv-vsetvl.cc:1968 on rv32gcv_zvl256b
  2023-12-01 19:50 [Bug target/112813] New: [14 Regression] RISCV ICE: vsetvl pass: in merge at config/riscv/riscv-vsetvl.cc:1968 on rv32gcv_zvl256b patrick at rivosinc dot com
  2023-12-03  3:25 ` [Bug target/112813] " juzhe.zhong at rivai dot ai
  2023-12-04  3:01 ` juzhe.zhong at rivai dot ai
@ 2023-12-04  6:45 ` rguenth at gcc dot gnu.org
  2023-12-04  8:11 ` cvs-commit at gcc dot gnu.org
  2023-12-04 17:58 ` patrick at rivosinc dot com
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-12-04  6:45 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |14.0

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

* [Bug target/112813] [14 Regression] RISCV ICE: vsetvl pass: in merge at config/riscv/riscv-vsetvl.cc:1968 on rv32gcv_zvl256b
  2023-12-01 19:50 [Bug target/112813] New: [14 Regression] RISCV ICE: vsetvl pass: in merge at config/riscv/riscv-vsetvl.cc:1968 on rv32gcv_zvl256b patrick at rivosinc dot com
                   ` (2 preceding siblings ...)
  2023-12-04  6:45 ` rguenth at gcc dot gnu.org
@ 2023-12-04  8:11 ` cvs-commit at gcc dot gnu.org
  2023-12-04 17:58 ` patrick at rivosinc dot com
  4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-12-04  8:11 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Pan Li <panli@gcc.gnu.org>:

https://gcc.gnu.org/g:462ccc3b9d5625cdc6104322a417bcd1ff1a8ff4

commit r14-6110-g462ccc3b9d5625cdc6104322a417bcd1ff1a8ff4
Author: Pan Li <pan2.li@intel.com>
Date:   Mon Dec 4 16:06:14 2023 +0800

    RISC-V: Add test case for bug PR112813

    The bugzilla 112813 has been fixed recently, add below test
    case for the bug.

            PR target/112813

    gcc/testsuite/ChangeLog:

            * gcc.target/riscv/rvv/vsetvl/pr112813-1.c: New test.

    Signed-off-by: Pan Li <pan2.li@intel.com>

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

* [Bug target/112813] [14 Regression] RISCV ICE: vsetvl pass: in merge at config/riscv/riscv-vsetvl.cc:1968 on rv32gcv_zvl256b
  2023-12-01 19:50 [Bug target/112813] New: [14 Regression] RISCV ICE: vsetvl pass: in merge at config/riscv/riscv-vsetvl.cc:1968 on rv32gcv_zvl256b patrick at rivosinc dot com
                   ` (3 preceding siblings ...)
  2023-12-04  8:11 ` cvs-commit at gcc dot gnu.org
@ 2023-12-04 17:58 ` patrick at rivosinc dot com
  4 siblings, 0 replies; 6+ messages in thread
From: patrick at rivosinc dot com @ 2023-12-04 17:58 UTC (permalink / raw)
  To: gcc-bugs

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

Patrick O'Neill <patrick at rivosinc dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #4 from Patrick O'Neill <patrick at rivosinc dot com> ---
Fixed, thanks!

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

end of thread, other threads:[~2023-12-04 17:58 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-01 19:50 [Bug target/112813] New: [14 Regression] RISCV ICE: vsetvl pass: in merge at config/riscv/riscv-vsetvl.cc:1968 on rv32gcv_zvl256b patrick at rivosinc dot com
2023-12-03  3:25 ` [Bug target/112813] " juzhe.zhong at rivai dot ai
2023-12-04  3:01 ` juzhe.zhong at rivai dot ai
2023-12-04  6:45 ` rguenth at gcc dot gnu.org
2023-12-04  8:11 ` cvs-commit at gcc dot gnu.org
2023-12-04 17:58 ` 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).