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

            Bug ID: 111927
           Summary: RISC-V: internal compiler error: in merge, at
                    config/riscv/riscv-vsetvl.cc:1997
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: fanghuaqi at vip dot qq.com
  Target Milestone: ---

Created attachment 56173
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56173&action=edit
bug file compiled by risc-v rvv compiler

Hi, I met an issue when compile code attached using risc-v gcc
compiler(-march=rv64imafc_zve64f  -mabi=lp64f -O2) from master branch, and it
throw issue like below:

during RTL pass: vsetvl
<source>: In function 'riscv_lms_f32':
<source>:240:1: internal compiler error: in merge, at
config/riscv/riscv-vsetvl.cc:1997
  240 | }
      | ^
0x7ff32c9c0082 __libc_start_main
        ???:0
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
Compiler returned: 1

Checked with gcc 13.2.0 and clang truck it both works well.

You can also check it in https://godbolt.org/z/4drnazzaf

Reply via email to