From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5B575385DC06; Tue, 14 Apr 2020 15:25:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5B575385DC06 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1586877919; bh=JOltAbnyhZbt34qOXHXEPio8dXACLD953R5MrWkpZIc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=RB7OA8BoqKh0CtVInHr3zYLZrWiDHcEEU4xnlXuZvFxI14++uATF/CHMMQfJfen9p 3+BtxWKXFn9xFo/gkTNDaU7+C32Ux3+aoq6VBkEzEdsKBgBA2JzeK8donbsNMa+V7U J0Tp7OHPcm7ZYb4jt2TvnkYDB6QLodkMgkfWBL2I= From: "lopresti at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/94587] Intrinsics optimization bug with -O2 -march=skylake-avx512 Date: Tue, 14 Apr 2020 15:25:19 +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: 9.3.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: lopresti at gmail dot com X-Bugzilla-Status: REOPENED 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: bug_status resolution 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Apr 2020 15:25:19 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94587 Patrick J. LoPresti changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|INVALID |--- --- Comment #3 from Patrick J. LoPresti --- That works; thank you. However... I realize there is no formal spec for intrinsics. But when I use them, I ex= pect deterministic behavior by default. This has been true on every compiler with every set of optimization and architecture flags I have ever used (GCC befo= re AVX, many versions of Clang, many versions of the Intel compiler). Also, the "-DHEISENBUG" example shows that simply adding a side-effect-free assert() changes the behavior. This seems... unfriendly... as a default. Wouldn't fp-contract be more appropriate as part of "-ffast-math"? To my knowledge, no other compiler behaves this way. Are there any other options I need to ensure deterministic behavior for SSE intrinsics on GCC? = Will there be more in the future? I do apologize if I missed the answer in the 1000-page GCC manual.=