From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BB23F386EC72; Tue, 2 Apr 2024 20:15:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BB23F386EC72 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1712088925; bh=x0CU9wJSn3iUFB4s4D2ZxWXhCsbc0ZBzatyXxzVTQtc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=SZ96Gw9LD3qobEbUjE5PL9XaHIzrtASzP3IP8EAxyQHEJXrgPp/ilATfAqREsxheN O07NxzXeeN+WInF3PVWNBFxTA7VbgNmsVGN+na0sq5JcPTRlJEZql3Bn7AlpRnV1iB DbdADPYa4wfxTyirxqCibO5ObvVT7zO3KIthTjxY= From: "yshuiv7 at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/114566] Misaligned vmovaps when compiling libvorbis for znver4 Date: Tue, 02 Apr 2024 20:15:25 +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: yshuiv7 at gmail dot com X-Bugzilla-Status: WAITING 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: 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 #3 from Yuxuan Shui --- Roughly reduced example: #include #include #define toOC(n) (log(n)*1.442695f-5.965784f) float *setup_tone_curves(float binHz, float center_decay_rate) { float workc[8][56]; float *ret =3D NULL; memset(workc, 0, sizeof(workc)); for (int j =3D 0; j < 8; j++) { for (int k =3D 0; k < 56; k++) { float adj =3D k * center_decay_rate; if (adj < 0.) adj =3D 0.; if (adj > 0.) adj =3D 0.; workc[j][k] +=3D adj; } } int lo_curve, bin =3D 0; lo_curve =3D ceil(toOC(bin * binHz + 1) * 2); return (ret); } int main() { setup_tone_curves(86.1328125, 0.625001); return 0; }=