From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 876D03858D28; Thu, 29 Sep 2022 06:41:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 876D03858D28 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1664433690; bh=jLDXZGirpgf3JiOIeyFk5tCX5aTRj/Y5WmvZk+dkwp0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=mvtUX/XnNL2/M5o3KNbHOdJ5YEtHfLy3TieswmbTZhBi4/1iQz/srG/fYs6wIC29c cyTdKkgCzqByTcwbqj96VjOCoKoGftbrtj6smS/57i3ye8zP+x9syDgNgwImc4zEZ5 05mP95WZI57A7vsAS8IDGyhb4EMNldtp5SgOBN6o= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/106902] [11/12/13 Regression] Program compiled with -O3 -mfma produces different result Date: Thu, 29 Sep 2022 06:41:28 +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.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.4 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=3D106902 --- Comment #16 from Richard Biener --- (In reply to Alexander Monakov from comment #15) > (In reply to Richard Biener from comment #14) > > I can't > > seem to reproduce any vectorization for your smaller example though. >=20 > My small C samples omit some detail as they were meant to illustrate what > happened in the IR. Is that a problem? Not a Problem - it would have made life easier of course ;) > By the way, I noticed that tree-ssa-math-opts incorrectly handles > -ffp-contract: >=20 > if (FLOAT_TYPE_P (type) > && flag_fp_contract_mode =3D=3D FP_CONTRACT_OFF) > return false; >=20 > It should be 'flag_fp_contract_mode !=3D FP_CONTRACT_FAST' instead (the p= ass > doesn't have any idea about expression boundaries). It dates back to > g:1694907238eb Ah - feel free to fix that (I think such change would be obvious, even bett= er when accompanied by a comment). I do think that since the only way to preserve expression boundaries is by PAREN_EXPR that the middle-end shouldn't care about FAST vs. ON (well, it cannot), but the language frontends need to ensure to emit PAREN_EXPRs for =3DON and omit them for =3DFAST. Since we don't implement ON the above check should indeed be changed until that's fixed.=