From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6557C3858D28; Mon, 11 Dec 2023 17:53:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6557C3858D28 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1702317207; bh=x7UJ5uRWU5AP764AEHogIy0790Po2CXt2RNLBd6lgtI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=QYwVzX4/sPs2mHnYVVvVKTurmCK9Qilc2JYaguLS72jqUztOIpwsGuXADKFqpA+m8 A8MEkSRUKVK8nkPl9TRVo5yRzF7sKC1vpAr607q9kNQTXO8jMNpdBuRXD6Q9nWWUPu MTawbiUvDzgmg22ZrH8AuJcXH+UbmDPlyl80cPhg= From: "bergner at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/112822] [14 regression] ICE: invalid RHS for gimple memory store after r14-5831-gaae723d360ca26 Date: Mon, 11 Dec 2023 17:53:26 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: bergner at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: jamborm at gcc dot gnu.org X-Bugzilla-Target-Milestone: 14.0 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=3D112822 --- Comment #6 from Peter Bergner --- (In reply to Martin Jambor from comment #5) > The following should fix it. I'll try a bit more to come up with a testc= ase > that would not require __builtin_vec_vsx_st but so far my simple attempts > failed.=20 This patch to the small test case I attached still ICEs for me using the sa= me compiler options: @@ -84,7 +84,7 @@ template cj cp; template void cl(bu *cr, cj cs) { ct(cr, c= s); } typedef __attribute__((altivec(vector__))) double co; -void ct(double *cr, co cs) { __builtin_vec_vsx_st(cs, 0, cr); } +void ct(double *cr, co cs) { *(co *)cr =3D cs; } struct cq { co q; }; I'll give your patch a try.=