From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B2A32384AB5C; Mon, 24 Jun 2024 19:32:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B2A32384AB5C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1719257545; bh=yzBXyPv3DpsZjr+eOt3E/zPU+ejWFPbeecdpbl80xt0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=iPTqeyaCb86lpPif/RqsAQKcQcU0zLyf+sVoR78auyN11ORUMeZFZybWGM/O3EW0Y bWrx+bN/KPiOJ4A+iNKamZRrSf25djNoAn8a19uH5cXrBg+BOOlA5XM4qgKp1/YSDv m/PwQsCD8lxc0I+9U4gxslpqMZdffoGbqEk1EJsY= From: "sjames at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/115533] [12/13/14/15 regression] flac miscompiled with -O3 -march=znver2 -fipa-pta -fno-vect-cost-model since r12-3893-g6390c5047adb75 Date: Mon, 24 Jun 2024 19:32:25 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ipa X-Bugzilla-Version: 15.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: sjames at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 12.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=3D115533 --- Comment #21 from Sam James --- It fell out when building media-libs/flac's tests after I threw in -fipa-pt= a in a test container for a single run where I check trunk for regressions. Building flac itself, I can reproduce it with: ``` export CFLAGS=3D"-O3 -ggdb3 -march=3Dznver2 -fipa-pta -fno-vect-cost-model" export CXXFLAGS=3D"-O3 -ggdb3 -march=3Dznver2 -fipa-pta -fno-vect-cost-mode= l" export LDFLAGS=3D"-Wl,-O1" cmake -B build-bad -DINSTALL_MANPAGES=3DOFF -DCMAKE_BUILD_TYPE=3DDebug -DBUILD_SHARED_LIBS=3DON make -C build-bad ctest --test-dir build-bad -R generate_streams ctest --test-dir build-bad --tests-information -o -R replaygain --output-on-failure ``` (*BUILD_TYPE and *SHARED_LIBS can be emitted if desired - was just there for debugging while I went as wanted assertions, and you can just run make -C build-bad and then make -C build-bad check). It fails like: ``` [...] replaygain.flac: 64.820000 1.000000 64.820000 1.000000 CPU info (x86-64): CMOV ....... Y MMX ........ Y SSE ........ Y SSE2 ....... Y SSE3 ....... Y SSSE3 ...... Y SSE41 ...... Y SSE42 ...... Y AVX ........ Y FMA ........ Y AVX2 ....... Y BMI2 ....... Y AVX OS sup . Y CPU info (x86-64): CMOV ....... Y MMX ........ Y SSE ........ Y SSE2 ....... Y SSE3 ....... Y SSSE3 ...... Y SSE41 ...... Y SSE42 ...... Y AVX ........ Y FMA ........ Y AVX2 ....... Y BMI2 ....... Y AVX OS sup . Y ERROR, Expected -12.73 db instead of comment[1]: REPLAYGAIN_TRACK_GAIN=3D+6= 4.82 dB 0% tests passed, 1 tests failed out of 1 Total Test time (real) =3D 0.09 sec The following tests FAILED: 7 - replaygain (Failed) Errors while running CTest ``` (Will check out your link now, thanks!)=