From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 866033857B9B; Tue, 18 Jul 2023 10:38:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 866033857B9B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1689676720; bh=rPjcPn/hSxnJ+ns8KnjkUtwfmIdxvvq17xw8pR0zn3o=; h=From:To:Subject:Date:In-Reply-To:References:From; b=qNvVkv8EPvu8FSS0d2JiV08I7o3vGhCVdgzpWECu4xOMz+h2FpDuqeax6XQhFUatx yPNQh97s+PkF79zG2HjMJh1oQlnPPHlG5evSEkZZzPjBCuVdVMnBXEOTD0BUmy+my5 Z8xoh9Cno2nt7sP/qKol9sBDnc+/CxSW9yhxgwOI= 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: Tue, 18 Jul 2023 10:38:40 +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: X-Bugzilla-Severity: normal X-Bugzilla-Who: crazylht 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: 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 #2 from Hongtao.liu --- (In reply to Hongtao.liu from comment #1) > You need to use -ffast-math, w/o it, operands order matters for floating > point max/min, they're not commutative. Sorry, too fast to reply, ignore this comment.=