From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 45E3A3857815; Mon, 21 Dec 2020 11:22:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 45E3A3857815 From: "zsojka at seznam dot cz" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/98287] [10/11 Regression] ICE: in expand_expr_real_2, at expr.c:10000 with -O2 -fno-tree-ccp -fno-tree-forwprop Date: Mon, 21 Dec 2020 11:22:23 +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: 11.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: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 10.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created 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: Mon, 21 Dec 2020 11:22:24 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D98287 --- Comment #2 from Zdenek Sojka --- Created attachment 49818 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D49818&action=3Dedit another testcase $ x86_64-pc-linux-gnu-gcc -Og -fipa-cp another_testcase.c during RTL pass: expand another_testcase.c: In function 'bar.constprop': another_testcase.c:7:23: internal compiler error: in expand_expr_real_2, at expr.c:10000 7 | return v << (s & 3) >> (s & 3); | ~~~~~~~~~~~~~^~~~~~~~~~ 0x667803 expand_expr_real_2(separate_ops*, rtx_def*, machine_mode, expand_modifier) /repo/gcc-trunk/gcc/expr.c:10000 0xc280cb expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) /repo/gcc-trunk/gcc/expr.c:10201 0xaf2b5b expand_expr /repo/gcc-trunk/gcc/expr.h:282 0xaf2b5b expand_return /repo/gcc-trunk/gcc/cfgexpand.c:3764 0xaf2b5b expand_gimple_stmt_1 /repo/gcc-trunk/gcc/cfgexpand.c:3873 0xaf2b5b expand_gimple_stmt /repo/gcc-trunk/gcc/cfgexpand.c:3999 0xaf80fb expand_gimple_basic_block /repo/gcc-trunk/gcc/cfgexpand.c:6036 0xaf9c76 execute /repo/gcc-trunk/gcc/cfgexpand.c:6720 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions.=