[Bug target/126701] New: [17 Regression] ICE at -O2 on aarch64 during RTL pass: expand

xxs_chy at outlook dot com via Gcc-bugs <[email protected]>
Newsgroups gmane.comp.gcc.bugs
Message-ID <[email protected]/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126701

            Bug ID: 126701
           Summary: [17 Regression] ICE at -O2 on aarch64 during RTL pass:
                    expand
           Product: gcc
           Version: 17.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: xxs_chy at outlook dot com
  Target Milestone: ---

Created attachment 65261
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=65261&action=edit
reduced case

Reproducer: https://godbolt.org/z/c8ETbEcjG
Dump at -O2:
during RTL pass: expand
/tmp/tmp4_zw77gi/case.c:11369:31: internal compiler error: in
verify_partition_mem_exprs, at cfgexpand.cc:2486
11369 | __attribute__((hot)) uint16_t f30(uint64_t a0, _Bool a1, v16u64 a2,
void* a3) {
      |                               ^~~
0x274420d internal_error(char const*, ...)
       
/data/Projects/compiler-test-env/cte-work/src/gcc/gcc/diagnostic-global-context.cc:787
0xb137eb fancy_abort(char const*, int, char const*)
       
/data/Projects/compiler-test-env/cte-work/src/gcc/gcc/diagnostics/context.cc:1813
0x8edd9e verify_partition_mem_exprs
        /data/Projects/compiler-test-env/cte-work/src/gcc/gcc/cfgexpand.cc:2486
0x8edd9e execute
        /data/Projects/compiler-test-env/cte-work/src/gcc/gcc/cfgexpand.cc:7201
/data/Projects/compiler-test-env/cte-work/toolchains/gcc/aarch64-linux-musl/libexec/gcc/aarch64-linux-musl/17.0.0/cc1
-quiet /tmp/tmp4_zw77gi/case.c -mno-fix-cortex-a53-835769
-mno-fix-cortex-a53-843419 -quiet -dumpdir
/tmp/tmp4_zw77gi/prog-aarch64-armv9-a+sve-gcc-O2- -dumpbase case.c
-dumpbase-ext .c -march=armv9-a+sve -mlittle-endian -mabi=lp64 -O2 -Wall
-Wextra -Wno-unused -o /tmp/ccfjDJsq.s
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.