From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0085E3858404; Tue, 27 Sep 2022 18:31:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0085E3858404 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1664303495; bh=N4jF4d7s3Yz/hQSpw75SCfjs2qk9qyhZTKgJBPGWH7U=; h=From:To:Subject:Date:In-Reply-To:References:From; b=bwm9sn1PvdBImsgPzp+OH4hoe/K6kCFhDWckk1xFGMkY0UlBhyJWNXZ1Rx8A8HPYG K0u7178vJyG5EZojTQjUsiEJcIPsgpusbr3xzYOXuVGI3xKslX9sNl6qyZ5AtTFPNz R6222xR0AAlRH0JzFNV2q5D/yv6ajeCW+xj4T5xA= From: "amonakov 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: Tue, 27 Sep 2022 18:31:33 +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: amonakov 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 #15 from Alexander Monakov --- (In reply to Richard Biener from comment #14) > I can't > seem to reproduce any vectorization for your smaller example though. My small C samples omit some detail as they were meant to illustrate what happened in the IR. Is that a problem? By the way, I noticed that tree-ssa-math-opts incorrectly handles -ffp-contract: if (FLOAT_TYPE_P (type) && flag_fp_contract_mode =3D=3D FP_CONTRACT_OFF) return false; It should be 'flag_fp_contract_mode !=3D FP_CONTRACT_FAST' instead (the pass doesn't have any idea about expression boundaries). It dates back to g:1694907238eb=