From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B745B385AC22; Thu, 21 Apr 2022 11:19:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B745B385AC22 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/105333] [10/11/12 Regression] ICE: in simplify_subreg, at simplify-rtx.cc:7346 with -Og -fno-tree-coalesce-vars -fno-tree-fre Date: Thu, 21 Apr 2022 11:19:28 +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: 12.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 10.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_reconfirmed_on bug_status everconfirmed cc target_milestone priority 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Apr 2022 11:19:28 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D105333 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2022-04-21 Status|UNCONFIRMED |NEW Ever confirmed|0 |1 CC| |segher at gcc dot gnu.org Target Milestone|--- |10.4 Priority|P3 |P2 --- Comment #1 from Richard Biener --- Confirmed. #1 0x000000000142c6af in simplify_context::simplify_subreg ( this=3D0x7fffffffb3b8, outermode=3DE_SImode, op=3D0x7ffff668b5d0,=20 innermode=3DE_VOIDmode, byte=3D...) (gdb) p debug_rtx( op) (const_wide_int 0x0fffffffffffffffe) (gdb) bt #0 fancy_abort ( file=3D0x2e7a200 "/home/rguenther/src/gcc3/gcc/simplify-rtx.cc", line= =3D7346,=20 function=3D0x2e7e100 )::__FUNCTION__> "simplify_subreg") at /home/rguenther/src/gcc3/gcc/diagnostic.cc:2024 #1 0x000000000142c6af in simplify_context::simplify_subreg ( this=3D0x7fffffffb3b8, outermode=3DE_SImode, op=3D0x7ffff668b5d0,=20 innermode=3DE_VOIDmode, byte=3D...) at /home/rguenther/src/gcc3/gcc/simplify-rtx.cc:7346 #2 0x000000000142cf56 in simplify_context::simplify_subreg ( this=3D0x7fffffffb3b8, outermode=3DE_SImode, op=3D0x7ffff668b660,=20 innermode=3DE_DImode, byte=3D...) at /home/rguenther/src/gcc3/gcc/simplify-rtx.cc:7444 #3 0x000000000142dfd9 in simplify_context::simplify_gen_subreg ( this=3D0x7fffffffb3b8, outermode=3DE_SImode, op=3D0x7ffff668b660,=20 innermode=3DE_DImode, byte=3D...) at /home/rguenther/src/gcc3/gcc/simplify-rtx.cc:7624 ... #7 0x00000000028becb7 in gen_lowpart_for_combine (omode=3DE_SImode,=20 x=3D0x7ffff668b660) at /home/rguenther/src/gcc3/gcc/combine.cc:11684 11684 result =3D gen_lowpart_common (omode, x); #8 0x0000000001410622 in simplify_context::simplify_unary_operation_1 ( this=3D0x7fffffffc988, code=3DTRUNCATE, mode=3DE_SImode, op=3D0x7ffff66= 8b660) at /home/rguenther/src/gcc3/gcc/simplify-rtx.cc:1243 which does if (GET_MODE (op) !=3D VOIDmode) { temp =3D simplify_truncation (mode, op, GET_MODE (op)); if (temp) return temp; } /* If we know that the value is already truncated, we can replace the TRUNCATE with a SUBREG. */ if (known_eq (GET_MODE_NUNITS (mode), 1) && (TRULY_NOOP_TRUNCATION_MODES_P (mode, GET_MODE (op)) || truncated_to_mode (mode, op))) { temp =3D rtl_hooks.gen_lowpart_no_emit (mode, op); so we know 'op' is VOIDmode here but gen_lowpart_for_combine isn't prepared for this?=