From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C54033858D39; Fri, 3 Nov 2023 08:14:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C54033858D39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1698999269; bh=bBUaSLCP8Qarc09hwD/DS6SjeqQFkXi1UwMsaFTG844=; h=From:To:Subject:Date:In-Reply-To:References:From; b=eX6XaqAaNQrDQ763HeEwv7rIZv6eEerAaU7VgU5zzPLtXt1zrWQpFNuhU5fIcvVng rnrZbFTqwLnjDO2TA6QzXZPQUjB8tntlR90clbhIVmOXH+dF0W0I7FZl6Hlcskvz/B gWfNNFUFWYAOLNKaD0Y1L9Q5IMhDQ8F50U2dmL+A= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/112361] [14 Regression] avx512f-reduce-op-1.c miscompiled since r14-5076 Date: Fri, 03 Nov 2023 08:14:29 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 14.0 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=3D112361 --- Comment #4 from Jakub Jelinek --- You can just look at the dumps. Generally, I'd expect that we shouldn't be creating .COND_ADD etc. calls for conditional reductions for SCALAR_FLOAT_TYPE_P if !flag_associative_math, b= ut probably also the fold left reduction code needs to either assert it isn't condition= al or needs to handle it. E.g. needs_fold_left_reduction_p returns true if it has to do an in-order reduction. But guess Richard will know the details much better.=