From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DE3A63858299; Tue, 30 Jan 2024 14:49:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DE3A63858299 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1706626162; bh=fEPpL0TtYKDnVBIkhMU69Y28PYPtgtRvD0yY5knEniQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=EuqZOYkyX2kYVY2twR+wrKOi9ti+4VT32726fb7yczovxpyjmpQfGMpHQibGDU5Wd HKtVhTg5PIwkHO8CHYMNbmr+nlIwPK/47PTN0AkMU+GmEn9pLE8iirnccd2GYn/rQY 6EKHgLVQsvJFuVWgtbMePaO7LJuNZRNoEyqIeL9M= From: "rguenther at suse dot de" 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 14:49:21 +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: rguenther at suse dot de 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 #23 from rguenther at suse dot de --- On Tue, 30 Jan 2024, xry111 at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D113622 >=20 > --- Comment #22 from Xi Ruoyao --- > On x86_64: >=20 > $ cat t.c > typedef float __attribute__ ((vector_size (16))) vec; > typedef int __attribute__ ((vector_size (16))) ivec; > register vec a asm("xmm0"), b asm("xmm1"); > register ivec c asm("xmm2"); >=20 > void > test (void) > { > for (int i =3D 0; i < 4; i++) > c[i] =3D a[i] < b[i] ? -1 : 1; > } > $ gcc/cc1 -msse2 t.c -O2 -fno-vect-cost-model -nostdinc -ffixed-xmm{0,1,2} > t.c: In function 'test': > t.c:7:1: internal compiler error: in expand_expr_addr_expr_1, at expr.cc:= 9139 > 7 | test (void) > | ^~~~ > 0x10e6d6e expand_expr_addr_expr_1 > ../../gcc/gcc/expr.cc:9139 > 0x10e76e2 expand_expr_addr_expr > ../../gcc/gcc/expr.cc:9252 > 0x10f73a7 expand_expr_real_1(tree_node*, rtx_def*, machine_mode, > expand_modifier, rtx_def**, bool) > ../../gcc/gcc/expr.cc:12585 > 0x10e7dc8 expand_expr_real(tree_node*, rtx_def*, machine_mode, expand_mod= ifier, > rtx_def**, bool) > ../../gcc/gcc/expr.cc:9440 > 0xef7346 expand_expr(tree_node*, rtx_def*, machine_mode, expand_modifier) > ../../gcc/gcc/expr.h:316 > 0x10e91fa expand_expr_real_2(separate_ops*, rtx_def*, machine_mode, > expand_modifier) > ../../gcc/gcc/expr.cc:9762 > 0x10ef77d expand_expr_real_gassign(gassign*, rtx_def*, machine_mode, > expand_modifier, rtx_def**, bool) > ../../gcc/gcc/expr.cc:11096 > 0xf2db31 expand_gimple_stmt_1 > ../../gcc/gcc/cfgexpand.cc:4010 > 0xf2ddd4 expand_gimple_stmt > ../../gcc/gcc/cfgexpand.cc:4071 > 0xf36844 expand_gimple_basic_block > ../../gcc/gcc/cfgexpand.cc:6127 > 0xf38ff8 execute > ../../gcc/gcc/cfgexpand.cc:6866 >=20 > Should I open a new ticket or add back 14 Regression to the subject? Please open a new ticked - this seems to be another vectorizer issue. We end up with the invalid _28 =3D (sizetype) &a;=