From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 94E583858407; Mon, 29 Jan 2024 08:58:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 94E583858407 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1706518691; bh=zScW2RopIZdLRZOfM1Z7q6Duu6nXR/7Uu66/XljahEQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=rRExgjZ+czmRyxVXHfq0Cm+cTcsC5AZNKVw9rFTVOSleZCOBvJg4L7uzGOjVv+kcc 0TaG06ZMV+ZKdt2I6A2Qmpusge3UGghIh29QxrfI1AZ6NZWp/8LlnUse4LOGN5s2Io d+k3WTy3gL0pYKQa+vha2XDXL3zUujOwEvE2LGxg= From: "xry111 at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/113622] [11/12/13/14 Regression] ICE with vectors in named registers Date: Mon, 29 Jan 2024 08:58:07 +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 #12 from Xi Ruoyao --- (In reply to Jakub Jelinek from comment #11) > I think it is most important we don't ICE and generate correct code. I > doubt this is used too much in real-world code, otherwise it would have b= een > reported years ago, so how efficient it will be is less important. Hmm, but for another test case (LoongArch): typedef double __attribute__ ((vector_size (32))) vec; register vec a asm("f25"), b asm("f26"), c asm("f27"); void test (void) { for (int i =3D 0; i < 4; i++) c[i] =3D __builtin_isless (a[i], b[i]) ? 0.1 : 0.2; } I'll have to write a loop (because __builtin_isless does not work on vector= s).=20 Or is there a vector built-in I'm missing?=