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

            Bug ID: 91860
           Summary: [10 Regression] ICE: in decompose, at rtl.h:2279 with
                    -Og -fipa-cp -g --param=max-combine-insns=3
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zsojka at seznam dot cz
  Target Milestone: ---
              Host: x86_64-pc-linux-gnu
            Target: riscv64-unknown-linux-gnu

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

Compiler output:
$ riscv64-unknown-linux-gnu-gcc -Og -fipa-cp -g --param=max-combine-insns=3
testcase.c
during RTL pass: combine
testcase.c: In function 'bar.constprop':
testcase.c:9:1: internal compiler error: in decompose, at rtl.h:2279
    9 | }
      | ^
0xd99652 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
0xd99652 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
0xd7c605 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
0xd7c605 simplify_const_unary_operation(rtx_code, machine_mode, rtx_def*,
machine_mode)
        /repo/gcc-trunk/gcc/simplify-rtx.c:1900
0xd7cfbe simplify_unary_operation(rtx_code, machine_mode, rtx_def*,
machine_mode)
        /repo/gcc-trunk/gcc/simplify-rtx.c:868
0xd800f0 simplify_gen_unary(rtx_code, machine_mode, rtx_def*, machine_mode)
        /repo/gcc-trunk/gcc/simplify-rtx.c:367
0xd915b7 simplify_subreg(machine_mode, rtx_def*, machine_mode, poly_int<1u,
unsigned long>)
        /repo/gcc-trunk/gcc/simplify-rtx.c:6845
0xd91998 simplify_gen_subreg(machine_mode, rtx_def*, machine_mode, poly_int<1u,
unsigned long>)
        /repo/gcc-trunk/gcc/simplify-rtx.c:6873
0xd9314a 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
0x107e760 propagate_for_debug(rtx_insn*, rtx_insn*, rtx_def*, rtx_def*,
basic_block_def*)
        /repo/gcc-trunk/gcc/valtrack.c:219
0x13646ab try_combine
        /repo/gcc-trunk/gcc/combine.c:4539
0x1369edb combine_instructions
        /repo/gcc-trunk/gcc/combine.c:1326
0x1369edb rest_of_handle_combine
        /repo/gcc-trunk/gcc/combine.c:15066
0x1369edb 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.


$ riscv64-unknown-linux-gnu-gcc -v
Using built-in specs.
COLLECT_GCC=/repo/gcc-trunk/binary-latest-riscv64/bin/riscv64-unknown-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-276030-checking-yes-rtl-df-extra-riscv64/bin/../libexec/gcc/riscv64-unknown-linux-gnu/10.0.0/lto-wrapper
Target: riscv64-unknown-linux-gnu
Configured with: /repo/gcc-trunk//configure --enable-languages=c,c++
--enable-valgrind-annotations --disable-nls --enable-checking=yes,rtl,df,extra
--with-cloog --with-ppl --with-isl
--with-sysroot=/usr/riscv64-unknown-linux-gnu --build=x86_64-pc-linux-gnu
--host=x86_64-pc-linux-gnu --target=riscv64-unknown-linux-gnu
--with-ld=/usr/bin/riscv64-unknown-linux-gnu-ld
--with-as=/usr/bin/riscv64-unknown-linux-gnu-as --disable-multilib
--disable-libstdcxx-pch
--prefix=/repo/gcc-trunk//binary-trunk-276030-checking-yes-rtl-df-extra-riscv64
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 10.0.0 20190922 (experimental) (GCC)

Reply via email to