From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 89B283943548; Sat, 19 Jun 2021 07:54:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 89B283943548 From: "xry111 at mengyan1223 dot wang" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/101132] New: [11/12 regression] [MIPS/MSA] internal compiler error: in do_store_flag, at expr.c:12541 Date: Sat, 19 Jun 2021 07:54:46 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: xry111 at mengyan1223 dot wang 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 bug_severity priority component assigned_to reporter target_milestone 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 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: Sat, 19 Jun 2021 07:54:46 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D101132 Bug ID: 101132 Summary: [11/12 regression] [MIPS/MSA] internal compiler error: in do_store_flag, at expr.c:12541 Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: xry111 at mengyan1223 dot wang Target Milestone: --- Reproducer: int r_0, q_0; void bar() { int i; for (i =3D 0; i < 96; i++) { r_0 =3D i << i ? 2 + i : -i; q_0 =3D r_0 > 2 ?: i; } } Error message: testcase.i: In function =E2=80=98bar=E2=80=99: testcase.i:2:6: internal compiler error: in do_store_flag, at expr.c:12541 2 | void bar() { | ^~~ 0xdacde9 do_store_flag ../../gcc/gcc/expr.c:12541 0xd9fecd expand_expr_real_2(separate_ops*, rtx_def*, machine_mode, expand_modifier) ../../gcc/gcc/expr.c:9859 0xda2748 expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) ../../gcc/gcc/expr.c:10409 0xd9aa61 expand_expr_real(tree_node*, rtx_def*, machine_mode, expand_modifi= er, rtx_def**, bool) ../../gcc/gcc/expr.c:8642 0xf0da1a expand_normal ../../gcc/gcc/expr.h:307 0xf18702 expand_vec_cond_optab_fn ../../gcc/gcc/internal-fn.c:2802 0xf1d85e expand_VCOND ../../gcc/gcc/internal-fn.def:143 0xf1f330 expand_internal_call(internal_fn, gcall*) ../../gcc/gcc/internal-fn.c:4093 0xf1f35b expand_internal_call(gcall*) ../../gcc/gcc/internal-fn.c:4101 0xbf2f30 expand_call_stmt ../../gcc/gcc/cfgexpand.c:2752 0xbf6fcf expand_gimple_stmt_1 ../../gcc/gcc/cfgexpand.c:3850 0xbf7659 expand_gimple_stmt ../../gcc/gcc/cfgexpand.c:4014 0xbff943 expand_gimple_basic_block ../../gcc/gcc/cfgexpand.c:6056 0xc01bea execute ../../gcc/gcc/cfgexpand.c:6782 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. It looks very similar to PR95830, but I'm not sure if they are really relat= ed.=