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

            Bug ID: 123523
           Summary: [15/16 Regression] ICE: in decompose, at rtl.h:2330
                    with -mavx10.1
           Product: gcc
           Version: 16.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 63312
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=63312&action=edit
reduced testcase

Compiler output:
$ x86_64-pc-linux-gnu-gcc -O -mavx10.1 -m32 testcase.c
during RTL pass: cse1
testcase.c: In function 'foo':
testcase.c:20:1: internal compiler error: in decompose, at rtl.h:2330
   20 | }
      | ^
0x2c8b28d internal_error(char const*, ...)
        /repo/gcc-trunk/gcc/diagnostic-global-context.cc:787
0xe29f6f fancy_abort(char const*, int, char const*)
        /repo/gcc-trunk/gcc/diagnostics/context.cc:1805
0x11450eb 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:2330
0x11450eb wide_int_ref_storage<false,
false>::wide_int_ref_storage<std::pair<rtx_def*, machine_mode>
>(std::pair<rtx_def*, machine_mode> const&)
        /repo/gcc-trunk/gcc/wide-int.h:1089
0x11450eb generic_wide_int<wide_int_ref_storage<false, false>
>::generic_wide_int<std::pair<rtx_def*, machine_mode> >(std::pair<rtx_def*,
machine_mode> const&)
        /repo/gcc-trunk/gcc/wide-int.h:847
0x11450eb wide_int_storage::wide_int_storage<std::pair<rtx_def*, machine_mode>
>(std::pair<rtx_def*, machine_mode> const&)
        /repo/gcc-trunk/gcc/wide-int.h:1189
0x15fec61
generic_wide_int<wide_int_storage>::generic_wide_int<std::pair<rtx_def*,
machine_mode> >(std::pair<rtx_def*, machine_mode> const&)
        /repo/gcc-trunk/gcc/wide-int.h:847
0x15fec61 simplify_const_binary_operation(rtx_code, machine_mode, rtx_def*,
rtx_def*)
        /repo/gcc-trunk/gcc/simplify-rtx.cc:5866
0x15fd6c9 simplify_context::simplify_binary_operation(rtx_code, machine_mode,
rtx_def*, rtx_def*)
        /repo/gcc-trunk/gcc/simplify-rtx.cc:2764
0x15fe50e simplify_binary_operation(rtx_code, machine_mode, rtx_def*, rtx_def*)
        /repo/gcc-trunk/gcc/rtl.h:3559
0x15fe50e simplify_const_binary_operation(rtx_code, machine_mode, rtx_def*,
rtx_def*)
        /repo/gcc-trunk/gcc/simplify-rtx.cc:5623
0x15fd6c9 simplify_context::simplify_binary_operation(rtx_code, machine_mode,
rtx_def*, rtx_def*)
        /repo/gcc-trunk/gcc/simplify-rtx.cc:2764
0x29f269d simplify_binary_operation(rtx_code, machine_mode, rtx_def*, rtx_def*)
        /repo/gcc-trunk/gcc/rtl.h:3559
0x29f269d fold_rtx
        /repo/gcc-trunk/gcc/cse.cc:3728
0x29f2416 fold_rtx
        /repo/gcc-trunk/gcc/cse.cc:3227
0x29f431f cse_insn
        /repo/gcc-trunk/gcc/cse.cc:4676
0x29f9d73 cse_extended_basic_block
        /repo/gcc-trunk/gcc/cse.cc:6583
0x29f9d73 cse_main
        /repo/gcc-trunk/gcc/cse.cc:6736
0x29fa906 rest_of_handle_cse
        /repo/gcc-trunk/gcc/cse.cc:7577
0x29fa906 execute
        /repo/gcc-trunk/gcc/cse.cc:7622
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.

$ x86_64-pc-linux-gnu-gcc -v
Using built-in specs.
COLLECT_GCC=/repo/gcc-trunk/binary-latest-amd64/bin/x86_64-pc-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-20260110085537-r16-6676-g00b6346d5374ef-checking-yes-rtl-df-extra-nobootstrap-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/16.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /repo/gcc-trunk//configure --enable-languages=c,c++
--enable-valgrind-annotations --disable-nls --enable-checking=yes,rtl,df,extra
--disable-bootstrap --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu
--target=x86_64-pc-linux-gnu --with-ld=/usr/bin/x86_64-pc-linux-gnu-ld
--with-as=/usr/bin/x86_64-pc-linux-gnu-as --enable-libsanitizer
--disable-libstdcxx-pch
--prefix=/repo/gcc-trunk//binary-trunk-20260110085537-r16-6676-g00b6346d5374ef-checking-yes-rtl-df-extra-nobootstrap-amd64
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 16.0.0 20260110 (experimental) (GCC)

Reply via email to