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

--- Comment #4 from Zdenek Sojka <zsojka at seznam dot cz> ---
Created attachment 46947
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46947&action=edit
different testcase

$ riscv64-unknown-linux-gnu-gcc -Og -fexpensive-optimizations -fno-tree-fre -g
--param=max-combine-insns=4 testcase2.c
during RTL pass: combine
testcase2.c: In function 'foo':
testcase2.c:10:1: internal compiler error: in decompose, at rtl.h:2279
   10 | }
      | ^
0xd99782 wi::int_traits<std::pair<rtx_def*, machine_mode> >::decompose(long*,
unsigned int, std::pair<rtx_def*, machine_mode> const&)
        /repo/gcc-trunk/gcc/rtl.h:2277
0xd99782 wide_int_ref_storage<false,
true>::wide_int_ref_storage<std::pair<rtx_def*, machine_mode>
>(std::pair<rtx_def*, machine_mode> const&)
        /repo/gcc-trunk/gcc/wide-int.h:1022
0xd7c735 generic_wide_int<wide_int_ref_storage<false, true>
>::generic_wide_int<std::pair<rtx_def*, machine_mode> >(std::pair<rtx_def*,
machine_mode> const&)
        /repo/gcc-trunk/gcc/wide-int.h:782
0xd7c735 simplify_const_unary_operation(rtx_code, machine_mode, rtx_def*,
machine_mode)
        /repo/gcc-trunk/gcc/simplify-rtx.c:1900
0xd7d0ee simplify_unary_operation(rtx_code, machine_mode, rtx_def*,
machine_mode)
        /repo/gcc-trunk/gcc/simplify-rtx.c:868
0xd80220 simplify_gen_unary(rtx_code, machine_mode, rtx_def*, machine_mode)
        /repo/gcc-trunk/gcc/simplify-rtx.c:367
0xd916e7 simplify_subreg(machine_mode, rtx_def*, machine_mode, poly_int<1u,
unsigned long>)
        /repo/gcc-trunk/gcc/simplify-rtx.c:6845
0xd91ac8 simplify_gen_subreg(machine_mode, rtx_def*, machine_mode, poly_int<1u,
unsigned long>)
        /repo/gcc-trunk/gcc/simplify-rtx.c:6873
0xd9327a simplify_replace_fn_rtx(rtx_def*, rtx_def const*, rtx_def*
(*)(rtx_def*, rtx_def const*, void*), void*)
        /repo/gcc-trunk/gcc/simplify-rtx.c:479
0x107e690 propagate_for_debug(rtx_insn*, rtx_insn*, rtx_def*, rtx_def*,
basic_block_def*)
        /repo/gcc-trunk/gcc/valtrack.c:219
0x13653a8 try_combine
        /repo/gcc-trunk/gcc/combine.c:4557
0x136a789 combine_instructions
        /repo/gcc-trunk/gcc/combine.c:1461
0x136a789 rest_of_handle_combine
        /repo/gcc-trunk/gcc/combine.c:15066
0x136a789 execute
        /repo/gcc-trunk/gcc/combine.c:15111
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

Reply via email to