From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 73EF43858C60; Fri, 26 Jan 2024 20:23:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 73EF43858C60 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1706300615; bh=LamkefLtiNIJJDcAoldAOtVDbyB7YwECohnZipJkKRU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=gQMzBouZzbFlnWyXFZwwCuuRCi4O3CVFveDptw3yePRP9Kbq8dvDoqafeJiEZajX3 cp0pda9LSSrveURZeTNGd7sxU8X7PIrJK2Qxf+PnouRLOeQC2vUm8v69xkKLulyrVm sYtl0JMs+oInHzkOdow5JLZEZXf1sojCWn/86+HE= From: "xry111 at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/113622] r14-8450 regression: ICE with vectors in named registers Date: Fri, 26 Jan 2024 20:23:35 +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: NEW 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: cf_reconfirmed_on everconfirmed bug_status 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 Xi Ruoyao changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2024-01-26 Ever confirmed|0 |1 Status|UNCONFIRMED |NEW --- Comment #1 from Xi Ruoyao --- On x86_64 it's reproducible likewise: typedef double __attribute__ ((vector_size (32))) vec; register vec a asm("ymm2"), b asm("ymm0"), c asm("ymm1"); void test (void) { for (int i =3D 0; i < 4; i++) c[i] =3D a[i] < b[i] ? 0.1 : 0.2; } $ gcc/cc1 t.c -mavx2 t.c:8:10: internal compiler error: in expand_assignment, at expr.cc:6073 8 | c[i] =3D a[i] < b[i] ? 0.1 : 0.2; | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ 0x10d9759 expand_assignment(tree_node*, tree_node*, bool) ../../gcc/gcc/expr.cc:6073 0xf2e9c0 expand_gimple_stmt_1 ../../gcc/gcc/cfgexpand.cc:3992 0xf2ed4e expand_gimple_stmt ../../gcc/gcc/cfgexpand.cc:4071 0xf377be expand_gimple_basic_block ../../gcc/gcc/cfgexpand.cc:6127 0xf39f72 execute ../../gcc/gcc/cfgexpand.cc:6866 Self-confirming.=