From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 132B83858C2A; Mon, 25 Sep 2023 11:55:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 132B83858C2A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1695642937; bh=mI7gLAM4AM7lIpxWYKbPL4v1h5hsUdhCNUzQWKwzejA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=uJ05+SgG1UigLggEDrKOuX7nzGpbgV2iciyBILIbRysuKnLiaHeJJs+vU70gZy361 MwEn6FQvdXfidvGOB4UZwdynK7OxN4T1aiBGbqr1nSBleS9ZFnNxQzWxaLsiVap1+A oWVEWaxSGs25Y6IsSEcus5/vDdlnJE9+iK/7vy1I= From: "malat at debian dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/111591] ppc64be: miscompilation with -mstrict-align / -O3 Date: Mon, 25 Sep 2023 11:55:36 +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: X-Bugzilla-Severity: normal X-Bugzilla-Who: malat at debian dot org X-Bugzilla-Status: UNCONFIRMED 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: attachments.created 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=3D111591 --- Comment #1 from Mathieu Malaterre --- Created attachment 55989 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D55989&action=3Dedit cvise reduced test case % g++ -std=3Dc++11 -o works -DHWY_COMPILE_ONLY_EMU128 -DHWY_BROKEN_EMU128= =3D0 -maltivec -mcpu=3Dpower8 -g -O3 alt.cc -Wall -Wextra -Werror -Wfatal-erro= rs % g++ -std=3Dc++11 -o fails -DHWY_COMPILE_ONLY_EMU128 -DHWY_BROKEN_EMU128= =3D0 -maltivec -mcpu=3Dpower8 -mstrict-align -g -O3 alt.cc -Wall -Wextra -Werror -Wfatal-errors should give: % ./works -> success but: % ./fails=20 fails: alt.cc:395: void hwy::detail::AssertArrayEqual(const TypeInfo&, const void*, const void*, size_t, const char*, const char*, int): Assertion `memcmp(a, b, c * ti.sizeof_t) =3D=3D 0' failed. zsh: abort ./fails=