From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B50C53858C36; Wed, 15 Feb 2023 19:37:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B50C53858C36 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1676489865; bh=gF7hSZXhL5VyE57cXatIDKQB77PqGmgZ+VELS3GVRh4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=OTr2dCPXzIWJldXNdTm3d3Fy2zF1FAzdBBoQHGh8bYg0Gg/ptKJh5msqC3nM/GKkg jc2FrDKFpkXh6htevPZAPGzg14VXEcLrDcRDB1mMpT1tya8epiNs/Wh0faWAKCLVG/ A2cgALhflFbMp41cSMa3x6sYpdja/bghz0dusJzA= From: "ubizjak at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/108805] [13 Regression] ICE: in simplify_subreg, at simplify-rtx.cc:7400 at -O and above Date: Wed, 15 Feb 2023 19:37:45 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: ubizjak at gmail 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: target_milestone bug_status cf_reconfirmed_on component everconfirmed 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=3D108805 Uro=C5=A1 Bizjak changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |13.0 Status|UNCONFIRMED |NEW Last reconfirmed| |2023-02-15 Component|target |rtl-optimization Ever confirmed|0 |1 --- Comment #1 from Uro=C5=A1 Bizjak --- Confirmed, combine chokes itself with the RTX it cannot chew: (gdb) bt #0 internal_error (gmsgid=3Dgmsgid@entry=3D0x2614840 "in %s, at %s:%d") at ../../git/gcc/gcc/diagnostic.cc:2138 #1 0x0000000000891812 in fancy_abort (file=3Dfile@entry=3D0x20b75d8 "../../git/gcc/gcc/simplify-rtx.cc", line=3Dline@entry=3D7400,=20 function=3Dfunction@entry=3D0x20b74e8 "simplify_subreg") at ../../git/gcc/gcc/diagnostic.cc:2242 #2 0x00000000007653cb in simplify_context::simplify_subreg (this=3D0x7fffffffd2a8, outermode=3D, op=3D,= =20 innermode=3D, byte=3D...) at ../../git/gcc/gcc/simplify-rtx.cc:7400 #3 0x0000000000ecfee9 in simplify_context::simplify_gen_subreg (this=3D, outermode=3DE_V4QImode, op=3D0x7fffea209480,=20 innermode=3DE_VOIDmode, byte=3D...) at ../../git/gcc/gcc/simplify-rtx.c= c:7694 #4 0x0000000000ecfee9 in simplify_context::simplify_gen_subreg (this=3Dthis@entry=3D0x7fffffffd2a8,=20 outermode=3Doutermode@entry=3DE_V4QImode, op=3D0x7fffea3e4b58, innermode=3DE_DImode, byte=3D...) at ../../git/gcc/gcc/simplify-rtx.cc:7694 #5 0x0000000001c92bde in simplify_gen_subreg (byte=3D..., innermode=3D, op=3D, outermode=3DE_V4QImode) at ../../git/gcc/gcc/rtl.h:3408 #6 if_then_else_cond (x=3Dx@entry=3D0x7fffea3e4558, ptrue=3Dptrue@entry=3D0x7fffffffd328, pfalse=3Dpfalse@entry=3D0x7fffffffd33= 8) at ../../git/gcc/gcc/combine.cc:9375 #7 0x0000000001c929b1 in if_then_else_cond (x=3Dx@entry=3D0x7fffea3e42b8, ptrue=3Dptrue@entry=3D0x7fffffffd400,=20 pfalse=3Dpfalse@entry=3D0x7fffffffd408) at ../../git/gcc/gcc/combine.cc= :9240 #8 0x0000000001c9de0a in combine_simplify_rtx (x=3D0x7fffea3e42b8, op0_mode=3DE_V4QImode, in_dest=3D0, in_cond=3D0) at ../../git/gcc/gcc/combine.cc:5723 (gdb) f 3 #3 0x0000000000ecfee9 in simplify_context::simplify_gen_subreg (this=3D, outermode=3DE_V4QImode, op=3D0x7fffea209480,=20 innermode=3DE_VOIDmode, byte=3D...) at ../../git/gcc/gcc/simplify-rtx.c= c:7694 7694 newx =3D simplify_subreg (outermode, op, innermode, byte); (gdb) p debug_rtx (op) (const_int -1 [0xffffffffffffffff])=