https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119131
Bug ID: 119131 Summary: [15 Regression] ICE: in get_attr_type, at config/aarch64/aarch64.md:17054 at -O2 Product: gcc Version: 15.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: zsojka at seznam dot cz Target Milestone: --- Host: x86_64-pc-linux-gnu Target: aarch64-unknown-linux-gnu Created attachment 60662 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60662&action=edit reduced testcase Compiler output: $ aarch64-unknown-linux-gnu-gcc -O2 testcase.c -Wall -W testcase.c: In function 'foo': testcase.c:14:7: warning: division by zero [-Wdiv-by-zero] 14 | b /= 0; | ^~ testcase.c:16:1: error: unrecognizable insn: 16 | } | ^ (insn 239 27 198 4 (set (reg:SD 47 v15 [207]) (const_double:SD 0E-101 [N/A])) -1 (nil)) during RTL pass: sched_fusion testcase.c:16:1: internal compiler error: in get_attr_type, at config/aarch64/aarch64.md:17054 0x282e921 internal_error(char const*, ...) /repo/gcc-trunk/gcc/diagnostic-global-context.cc:517 0xcb0631 fancy_abort(char const*, int, char const*) /repo/gcc-trunk/gcc/diagnostic.cc:1722 0x8c9d85 _fatal_insn(char const*, rtx_def const*, char const*, int, char const*) /repo/gcc-trunk/gcc/rtl-error.cc:108 0x8c9e02 _fatal_insn_not_found(rtx_def const*, char const*, int, char const*) /repo/gcc-trunk/gcc/rtl-error.cc:116 0xa1ec54 get_attr_type(rtx_insn*) /repo/gcc-trunk/gcc/config/aarch64/aarch64.md:17054 0x18ab0f6 aarch64_sched_variable_issue /repo/gcc-trunk/gcc/config/aarch64/aarch64.cc:16300 0x25adfdd schedule_block(basic_block_def**, void*) /repo/gcc-trunk/gcc/haifa-sched.cc:6928 0x13f092a schedule_region /repo/gcc-trunk/gcc/sched-rgn.cc:3213 0x13f092a schedule_insns() /repo/gcc-trunk/gcc/sched-rgn.cc:3535 0x13f0ce0 schedule_insns() /repo/gcc-trunk/gcc/sched-rgn.cc:3946 0x13f0ce0 rest_of_handle_sched_fusion /repo/gcc-trunk/gcc/sched-rgn.cc:3770 0x13f0ce0 execute /repo/gcc-trunk/gcc/sched-rgn.cc:3948 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.