From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E8B503858D1E; Mon, 30 Jan 2023 13:32:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E8B503858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1675085522; bh=kL7UbkBVYfvIqBU2kocvqknn50G/PIj9kGMJ6YHXANU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=SKRrW2cPjnuBNWM5n+6qH6ARDy/369p3In26RyXqOkQV/UHmYeuM1ydReHAR0mTjI 2FSOrp4McsNZPXIhR1KKP9g9H44AdXMjpg57bnGMyvLJVgMkfP5t9eJC9gKfLnKvWS FPuP7uh07rhGoK9srcUCuD9o2JBDx48S3Jw4GLtc= From: "balder at yahooinc dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/108599] Incorrect code generation newer intel architectures for gcc 12 and 13 Date: Mon, 30 Jan 2023 13:32:02 +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: 12.1.1 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: balder at yahooinc 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: 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=3D108599 --- Comment #2 from Henning Baldersheim --- This is an even bigger issue with gcc 13. Then it only requires -march=3Dha= swell Works: c++ -Wall -Wextra -O3 -march=3Divybridge test.cpp && ./a.out Fails: c++ -Wall -Wextra -O3 -march=3Dhaswell test.cpp && ./a.out a.out: test.cpp:23: void assert_stats(size_t, size_t, size_t, size_t, Stats= ): Assertion `exp_dead =3D=3D stats._dead' failed. gcc version: gcc -v Using built-in specs. COLLECT_GCC=3Dgcc COLLECT_LTO_WRAPPER=3D/usr/libexec/gcc/x86_64-redhat-linux/13/lto-wrapper OFFLOAD_TARGET_NAMES=3Dnvptx-none OFFLOAD_TARGET_DEFAULT=3D1 Target: x86_64-redhat-linux Configured with: ../configure --enable-bootstrap --enable-languages=3Dc,c++,fortran,objc,obj-c++,ada,go,d,m2,lto --prefix=3D/usr --mandir=3D/usr/share/man --infodir=3D/usr/share/info --with-bugurl=3Dhttps://urldefense.com/v3/__http://bugzilla.redhat.com/bugz= illa__;!!Op6eflyXZCqGR5I!CPaxwlsoI_wy_AwjCIWAdmMOLgtd7sjMpqqz-fNyAFo5nnEaBO= 0guYKTV5m7wWkHYS5N4zBFXJGe0DaFnA$ --enable-shared --enable-threads=3Dposix --enable-checking=3Drelease --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --enable-libstdcxx-backtrace --with-libstdcxx-zoneinfo=3D/usr/share/zoneinfo --with-linker-hash-style=3Dgnu --enable-plugin --enable-initfini-array --with-isl=3D/builddir/build/BUILD/gcc-13.0.1-20230117/obj-x86_64-redhat-li= nux/isl-install --enable-offload-targets=3Dnvptx-none --without-cuda-driver --enable-offload-defaulted --enable-gnu-indirect-function --enable-cet --with-tune=3Dgeneric --with-arch_32=3Di686 --build=3Dx86_64-redhat-linux --with-build-config=3Dbootstrap-lto --enable-link-serialization=3D1 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 13.0.1 20230117 (Red Hat 13.0.1-0) (GCC)=