public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/113690] New: [13/14 Regression] ICE: in as_a, at machmode.h:381 with -O2 -fno-dce -fno-forward-propagate -fno-split-wide-types -funroll-loops
@ 2024-01-31 20:40 zsojka at seznam dot cz
  2024-02-01  1:02 ` [Bug rtl-optimization/113690] " pinskia at gcc dot gnu.org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: zsojka at seznam dot cz @ 2024-01-31 20:40 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 113690
           Summary: [13/14 Regression] ICE: in as_a, at machmode.h:381
                    with -O2 -fno-dce -fno-forward-propagate
                    -fno-split-wide-types -funroll-loops
           Product: gcc
           Version: 14.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: x86_64-pc-linux-gnu

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

Compiler output:
$ x86_64-pc-linux-gnu-gcc -O2 -fno-dce -fno-forward-propagate
-fno-split-wide-types -funroll-loops testcase.c
during RTL pass: cse2
testcase.c: In function 'foo':
testcase.c:10:1: internal compiler error: in as_a, at machmode.h:381
   10 | }
      | ^
0x814e46 scalar_int_mode as_a<scalar_int_mode>(machine_mode)
        /repo/gcc-trunk/gcc/machmode.h:381
0x8196e0 scalar_mode as_a<scalar_mode>(machine_mode)
        /repo/gcc-trunk/gcc/simplify-rtx.cc:3179
0x8196e0 wi::int_traits<std::pair<rtx_def*, machine_mode>
>::get_precision(std::pair<rtx_def*, machine_mode> const&)
        /repo/gcc-trunk/gcc/rtl.h:2283
0x8196e0 unsigned int wi::get_precision<std::pair<rtx_def*, machine_mode>
>(std::pair<rtx_def*, machine_mode> const&)
        /repo/gcc-trunk/gcc/wide-int.h:2168
0x8196e0 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:1089
0x8196e0 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:847
0x8196e0 simplify_context::simplify_binary_operation_1(rtx_code, machine_mode,
rtx_def*, rtx_def*, rtx_def*, rtx_def*)
        /repo/gcc-trunk/gcc/simplify-rtx.cc:3338
0x14dd0ad simplify_context::simplify_binary_operation(rtx_code, machine_mode,
rtx_def*, rtx_def*)
        /repo/gcc-trunk/gcc/simplify-rtx.cc:2667
0x26c4a74 simplify_binary_operation(rtx_code, machine_mode, rtx_def*, rtx_def*)
        /repo/gcc-trunk/gcc/rtl.h:3493
0x26c4a74 fold_rtx
        /repo/gcc-trunk/gcc/cse.cc:3719
0x26c5ff2 canonicalize_insn
        /repo/gcc-trunk/gcc/cse.cc:4461
0x26c6511 cse_insn
        /repo/gcc-trunk/gcc/cse.cc:4544
0x26cc0e3 cse_extended_basic_block
        /repo/gcc-trunk/gcc/cse.cc:6574
0x26cc0e3 cse_main
        /repo/gcc-trunk/gcc/cse.cc:6719
0x26ccb00 rest_of_handle_cse2
        /repo/gcc-trunk/gcc/cse.cc:7617
0x26ccb00 execute
        /repo/gcc-trunk/gcc/cse.cc:7672
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-r14-8665-20240131161256-g3fed1609f61-checking-yes-rtl-df-extra-nobootstrap-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/14.0.1/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 --with-cloog --with-ppl --with-isl
--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 --disable-libstdcxx-pch
--prefix=/repo/gcc-trunk//binary-trunk-r14-8665-20240131161256-g3fed1609f61-checking-yes-rtl-df-extra-nobootstrap-amd64
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 14.0.1 20240131 (experimental) (GCC)

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2024-05-21  9:18 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-31 20:40 [Bug rtl-optimization/113690] New: [13/14 Regression] ICE: in as_a, at machmode.h:381 with -O2 -fno-dce -fno-forward-propagate -fno-split-wide-types -funroll-loops zsojka at seznam dot cz
2024-02-01  1:02 ` [Bug rtl-optimization/113690] " pinskia at gcc dot gnu.org
2024-02-01  1:09 ` [Bug target/113690] " pinskia at gcc dot gnu.org
2024-02-01  7:45 ` rguenth at gcc dot gnu.org
2024-02-01 14:28 ` hjl.tools at gmail dot com
2024-02-01 22:21 ` roger at nextmovesoftware dot com
2024-02-07 14:22 ` cvs-commit at gcc dot gnu.org
2024-02-16  9:07 ` [Bug target/113690] [13 " roger at nextmovesoftware dot com
2024-05-08 12:23 ` rguenth at gcc dot gnu.org
2024-05-21  9:18 ` jakub at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).