From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6ABDA3857831; Tue, 30 Jan 2024 13:22:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6ABDA3857831 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1706620955; bh=utjlkvFhGQXwTEXxND+72+YV4TRTwJB09cNX2khTmEA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=hsRnwFETXlBBgWpaFuoZCWdNAGhlcqtQh6ukmPQ/8KJOiqVc+/Q0cW9Vlt+j7/RGw +ADmt+1pCp3AtaRzfI8ZwQfCKotCiKrWoMJnibTz70a/4dgmU+q0mNA/NBRYro0VF0 RjoZfzN+EL5S1oh4D9MXYv8VpZ5IYg5fZOHlQkCg= From: "xry111 at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/113622] [11/12/13 Regression] ICE with vectors in named registers Date: Tue, 30 Jan 2024 13:22:32 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: ice-on-valid-code, testsuite-fail X-Bugzilla-Severity: normal X-Bugzilla-Who: xry111 at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.5 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=3D113622 --- Comment #21 from Xi Ruoyao --- This still blows up on LoongArch even after r14-8498: typedef float __attribute__ ((vector_size (16))) vec; typedef int __attribute__ ((vector_size (16))) ivec; register vec a asm("f25"), b asm("f26"); register ivec c asm("f27"); void test (void) { for (int i =3D 0; i < 4; i++) c[i] =3D a[i] < b[i] ? -1 : 1; } $ gcc/cc1 -msimd=3Dlsx t.c -O2 -fno-vect-cost-model -nostdinc t.c: In function =E2=80=98test=E2=80=99: t.c:7:1: internal compiler error: in expand_expr_addr_expr_1, at expr.cc:91= 39 7 | test (void) | ^~~~ 0x102d7cb expand_expr_addr_expr_1 ../../gcc/gcc/expr.cc:9139 0x102e13e expand_expr_addr_expr ../../gcc/gcc/expr.cc:9252 0x103df07 expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) ../../gcc/gcc/expr.cc:12585 0x102e824 expand_expr_real(tree_node*, rtx_def*, machine_mode, expand_modif= ier, rtx_def**, bool) ../../gcc/gcc/expr.cc:9440 0xe45096 expand_expr(tree_node*, rtx_def*, machine_mode, expand_modifier) ../../gcc/gcc/expr.h:316 0x102fc56 expand_expr_real_2(separate_ops*, rtx_def*, machine_mode, expand_modifier) ../../gcc/gcc/expr.cc:9762 0x10361c9 expand_expr_real_gassign(gassign*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) ../../gcc/gcc/expr.cc:11096 0xe798de expand_gimple_stmt_1 ../../gcc/gcc/cfgexpand.cc:4010 0xe79b81 expand_gimple_stmt ../../gcc/gcc/cfgexpand.cc:4071 0xe825e3 expand_gimple_basic_block ../../gcc/gcc/cfgexpand.cc:6127 0xe84b95 execute ../../gcc/gcc/cfgexpand.cc:6866 Interestingly -fno-vect-cost-model is needed to trigger the ICE.=