From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 836D3383DB93; Thu, 6 Oct 2022 16:03:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 836D3383DB93 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1665072228; bh=21FXiLUHtQuOxubRoDOLMSSkyQj2w78t5hOzsPx9oBA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=tkbmtwr1YSjeDnM9gvNS6VZcxZemklS55MjEDRc1ATwpj0wqfD0x76BBe73ARqSJI wueKujin5+cY0OoxB8VWmonb7lWHjfuyGYKYIqo20VLdHWiwna5rMF6YelB2U6Ucch C1UywulxHQi+s1xEwLaauoeJza9WvluDAg17vgMk= From: "asolokha at gmx dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/106933] [13 Regression] ICE in extract_insn, at recog.cc:2791 (error: unrecognizable insn) since r13-2049-g6f94923dea21bd92 Date: Thu, 06 Oct 2022 16:03:47 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: asolokha at gmx dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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=3D106933 --- Comment #4 from Arseny Solokha --- JFTR, I've just got an ICE that I presume to be another manifestation of the same issue. The current gcc trunk snapshots ICE the way reported in comment= 0 on the following testcase w/ -msse4 -Os: __int128 n; __int128 empty (void) { } int foo (void) { n =3D empty (); return n =3D=3D 0; } while replacing the last return statement w/ "return n =3D=3D 1;" gives the following: % x86_64-unknown-linux-gnu-gcc-13.0.0 -msse4 -Os -c lr4kukze.c during RTL pass: cse2 lr4kukze.c: In function 'foo': lr4kukze.c:14:1: internal compiler error: in as_a, at machmode.h:365 14 | } | ^ 0x73665b scalar_int_mode as_a(machine_mode) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220925/work/gcc-13-20220925/gcc/ma= chmode.h:365 0x736783 scalar_mode as_a(machine_mode) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220925/work/gcc-13-20220925/gcc/rt= l.h:2288 0x736783 wi::int_traits >::get_precision(std::pair const&) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220925/work/gcc-13-20220925/gcc/rt= l.h:2273 0x736783 unsigned int wi::get_precision >(std::pair const&) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220925/work/gcc-13-20220925/gcc/wi= de-int.h:1794 0x736783 wide_int_ref_storage::wide_int_ref_storage >(std::pair const&) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220925/work/gcc-13-20220925/gcc/wi= de-int.h:1024 0x736783 generic_wide_int >::generic_wide_int >(std::pair const&) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220925/work/gcc-13-20220925/gcc/wi= de-int.h:782 0x736783 poly_int<1u, generic_wide_int > >::poly_int >(std::pair const&) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220925/work/gcc-13-20220925/gcc/po= ly-int.h:670 0x736783 wi::to_poly_wide(rtx_def const*, machine_mode) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220925/work/gcc-13-20220925/gcc/rt= l.h:2373 0x736783 neg_poly_int_rtx =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220925/work/gcc-13-20220925/gcc/si= mplify-rtx.cc:57 0xec311e simplify_context::simplify_binary_operation_1(rtx_code, machine_mo= de, rtx_def*, rtx_def*, rtx_def*, rtx_def*) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220925/work/gcc-13-20220925/gcc/si= mplify-rtx.cc:3118 0xec501d simplify_context::simplify_binary_operation(rtx_code, machine_mode, rtx_def*, rtx_def*) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220925/work/gcc-13-20220925/gcc/si= mplify-rtx.cc:2626 0xed00c2 simplify_binary_operation(rtx_code, machine_mode, rtx_def*, rtx_de= f*) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220925/work/gcc-13-20220925/gcc/rt= l.h:3475 0xed00c2 simplify_const_relational_operation(rtx_code, machine_mode, rtx_de= f*, rtx_def*) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220925/work/gcc-13-20220925/gcc/si= mplify-rtx.cc:6112 0xec948b simplify_context::simplify_relational_operation(rtx_code, machine_mode, machine_mode, rtx_def*, rtx_def*) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220925/work/gcc-13-20220925/gcc/si= mplify-rtx.cc:5704 0x1cfed28 simplify_relational_operation(rtx_code, machine_mode, machine_mod= e, rtx_def*, rtx_def*) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220925/work/gcc-13-20220925/gcc/rt= l.h:3490 0x1cfed28 fold_rtx =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220925/work/gcc-13-20220925/gcc/cs= e.cc:3385 0x1cfffb3 cse_insn =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220925/work/gcc-13-20220925/gcc/cs= e.cc:4669 0x1d04e24 cse_extended_basic_block =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220925/work/gcc-13-20220925/gcc/cs= e.cc:6566 0x1d04e24 cse_main =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220925/work/gcc-13-20220925/gcc/cs= e.cc:6711 0x1d05750 rest_of_handle_cse2 =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220925/work/gcc-13-20220925/gcc/cs= e.cc:7600=