From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6DFDD3858C66; Wed, 19 Jul 2023 08:37:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6DFDD3858C66 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1689755827; bh=Aqf4ZZ/TPFBv6XNU1VYXnHLe046owj8RpD/vzgbAF6E=; h=From:To:Subject:Date:In-Reply-To:References:From; b=fOvzFCC7xDfGxXnNmjoCr0+6GruUWTW/iXw+fEA+JIiJHXVnQ0PfV4IPLcZlEcaUr QoYStT/tS6RnU+fC8eGM33Bg+pnFkyUYvgwR8NNs1be8FZsUsjppHtL4nODkKzSdy1 rvdlvyEwv80ZIwKpXc4yxjgv+KxX80f3L02pEwGI= From: "crazylht at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/110711] possible missed optimization for std::max with -march=znver2 Date: Wed, 19 Jul 2023 08:37:07 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 13.1.0 X-Bugzilla-Keywords: missed-optimization, openmp X-Bugzilla-Severity: normal X-Bugzilla-Who: crazylht at gmail dot com 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: --- 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=3D110711 --- Comment #6 from Hongtao.liu --- (In reply to Hongtao.liu from comment #5) > Looks like it's GCC13 regression, GCC12.3 successfully vectorizes k_std_m= ax https://godbolt.org/z/6111MP354=