From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3B8143854142; Mon, 4 Jul 2022 16:23:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3B8143854142 From: "mathieu.malaterre at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/106187] New: armhf: Miscompilation with -O2 Date: Mon, 04 Jul 2022 16:23:07 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 11.3.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mathieu.malaterre at gmail dot com 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jul 2022 16:23:07 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D106187 Bug ID: 106187 Summary: armhf: Miscompilation with -O2 Product: gcc Version: 11.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: mathieu.malaterre at gmail dot com Target Milestone: --- I can trigger an assertion in highway unit test suite on armhf when using -= O2 (does not happen at -O0). Symptoms: % tests/mul_test "--gtest_filter=3DHwyMulTestGroup/HwyMulTest.TestAllMulAdd/Emu128" "--gtest_also_run_disabled_tests" Running main() from ./googletest/src/gtest_main.cc Note: Google Test filter =3D HwyMulTestGroup/HwyMulTest.TestAllMulAdd/Emu128 [=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D] Running 1 test from 1 test suite. [----------] Global test environment set-up. [----------] 1 test from HwyMulTestGroup/HwyMulTest [ RUN ] HwyMulTestGroup/HwyMulTest.TestAllMulAdd/Emu128 f32x4 expect [0+ ->]: 5,11,19,29, f32x4 actual [0+ ->]: -9,11,19,29, Abort at /home/malat/highway/hwy/tests/mul_test.cc:308: Emu128, f32x4 lane 0 mismatch: expected '5', got '-9'. zsh: abort tests/mul_test "--gtest_also_run_disabled_tests"=