From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 34E2C3858414; Thu, 4 Apr 2024 16:57:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 34E2C3858414 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1712249853; bh=kczE+HaD0s0wHPr6EHL6U0O1Vkn2SELG6qH0iHiK2sU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=rLuk1Z+HLkAWwRu6IHUuzEBjq/PUx6Soezr7ARbb7PToIRTOb4n/srvyjIJw+HrWU OgviJwexZ2L32l50IJBpxuvNJl9o73e+x1Hty/ReOPEd7yiGi4KRgBJxq4yx9oya6l oxjvvOfDRjScSmhQsSIhROV9R6sQGL1HqaOR2bjk= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/114566] [11/12/13 Regression] Misaligned vmovaps when compiling with stack-protector-strong for znver4 Date: Thu, 04 Apr 2024 16:57:30 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 13.2.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned 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=3D114566 --- Comment #13 from Jakub Jelinek --- Ah, vect_analyze_data_refs_alignment -> vect_compute_data_ref_alignment actually checks for this case 1136 if (max_alignment < vect_align_c 1137 || !vect_can_force_dr_alignment_p (base, 1138 vect_align_c * BITS_PER_UNIT)) and vect_can_force_dr_alignment_p returns true that the base (aka VAR_DECL = a) can be forced to have dr alignment. But then nothing actually increases the alignment of the VAR_DECL. For vect_can_force_dr_alignment_p static VAR_DECLs there is the increase_alignment IPA pass (though just for -fsection-anchors?), and for automatic vars there is ensure_base_align, but for some reason that doesn't trigger.=