From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0A9E23858401; Wed, 31 Jan 2024 20:40:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0A9E23858401 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1706733608; bh=NCSkJ2sCfOvNcvfT0mQfItGx4UteGYllcI85gzZuv+w=; h=From:To:Subject:Date:From; b=t/uhckOCntrX2KzzdYy/AdTvM3WMy/ohAQlG4xZWtrIBArBUZiGB7CQ4Jh3QZYUi1 n9gEuYla6V7v686xKiDyDX+CvY/WbMR5ifyIUmN5SLVE36p6ty1aPrRO23pRetvyb6 lC0rNwbdKTUMlJ506Bbux2epLImJCAJTcEt8h47g= From: "zsojka at seznam dot cz" To: gcc-bugs@gcc.gnu.org Subject: [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 Date: Wed, 31 Jan 2024 20:40:06 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: zsojka at seznam dot cz X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone cf_gcchost cf_gcctarget attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D113690 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=3D57271&action=3Dedit 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(machine_mode) /repo/gcc-trunk/gcc/machmode.h:381 0x8196e0 scalar_mode as_a(machine_mode) /repo/gcc-trunk/gcc/simplify-rtx.cc:3179 0x8196e0 wi::int_traits >::get_precision(std::pair const&) /repo/gcc-trunk/gcc/rtl.h:2283 0x8196e0 unsigned int wi::get_precision >(std::pair const&) /repo/gcc-trunk/gcc/wide-int.h:2168 0x8196e0 wide_int_ref_storage::wide_int_ref_storage >(std::pair const&) /repo/gcc-trunk/gcc/wide-int.h:1089 0x8196e0 generic_wide_int >::generic_wide_int >(std::pair const&) /repo/gcc-trunk/gcc/wide-int.h:847 0x8196e0 simplify_context::simplify_binary_operation_1(rtx_code, machine_mo= de, 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_mod= e, rtx_def*, rtx_def*) /repo/gcc-trunk/gcc/simplify-rtx.cc:2667 0x26c4a74 simplify_binary_operation(rtx_code, machine_mode, rtx_def*, rtx_d= ef*) /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 for instructions. $ x86_64-pc-linux-gnu-gcc -v Using built-in specs. COLLECT_GCC=3D/repo/gcc-trunk/binary-latest-amd64/bin/x86_64-pc-linux-gnu-g= cc COLLECT_LTO_WRAPPER=3D/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=3Dc,c++ --enable-valgrind-annotations --disable-nls --enable-checking=3Dyes,rtl,df,= extra --disable-bootstrap --with-cloog --with-ppl --with-isl --build=3Dx86_64-pc-linux-gnu --host=3Dx86_64-pc-linux-gnu --target=3Dx86_64-pc-linux-gnu --with-ld=3D/usr/bin/x86_64-pc-linux-gnu-ld --with-as=3D/usr/bin/x86_64-pc-linux-gnu-as --disable-libstdcxx-pch --prefix=3D/repo/gcc-trunk//binary-trunk-r14-8665-20240131161256-g3fed1609f= 61-checking-yes-rtl-df-extra-nobootstrap-amd64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 14.0.1 20240131 (experimental) (GCC)=