https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88905
Bug ID: 88905
Summary: [8/9 Regression] ICE: in decompose, at rtl.h:2253 with
-mabm and __builtin_popcountll
Product: gcc
Version: 9.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: i686-pc-linux-gnu
Created attachment 45459
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45459&action=edit
reduced testcase
Compiler output:
$ i686-pc-linux-gnu-gcc -Og -fno-tree-ccp -mabm testcase.c
during RTL pass: cse1
testcase.c: In function 'foo':
testcase.c:16:1: internal compiler error: in decompose, at rtl.h:2266
16 | }
| ^
0xc79fa0 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:2264
0xc79fa0 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:1004
0xc79fa0 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:780
0xc79fa0 simplify_const_unary_operation(rtx_code, machine_mode, rtx_def*,
machine_mode)
/repo/gcc-trunk/gcc/simplify-rtx.c:1797
0xc74320 simplify_unary_operation(rtx_code, machine_mode, rtx_def*,
machine_mode)
/repo/gcc-trunk/gcc/simplify-rtx.c:873
0x16d8047 fold_rtx
/repo/gcc-trunk/gcc/cse.c:3347
0x16da79a canonicalize_insn
/repo/gcc-trunk/gcc/cse.c:4489
0x16da79a cse_insn
/repo/gcc-trunk/gcc/cse.c:4581
0x16e1838 cse_extended_basic_block
/repo/gcc-trunk/gcc/cse.c:6662
0x16e1838 cse_main
/repo/gcc-trunk/gcc/cse.c:6841
0x16e2806 rest_of_handle_cse
/repo/gcc-trunk/gcc/cse.c:7678
0x16e2806 execute
/repo/gcc-trunk/gcc/cse.c:7721
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.
$ i686-pc-linux-gnu-gcc -v
Using built-in specs.
COLLECT_GCC=/repo/gcc-trunk/binary-latest-i686/bin/i686-pc-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-268059-checking-yes-rtl-df-extra-i686/bin/../libexec/gcc/i686-pc-linux-gnu/9.0.0/lto-wrapper
Target: i686-pc-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/i686-pc-linux-gnu
--build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu
--target=i686-pc-linux-gnu --with-ld=/usr/bin/i686-pc-linux-gnu-ld
--with-as=/usr/bin/i686-pc-linux-gnu-as --disable-libstdcxx-pch
--prefix=/repo/gcc-trunk//binary-trunk-268059-checking-yes-rtl-df-extra-i686
Thread model: posix
gcc version 9.0.0 20190118 (experimental) (GCC)