From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id F2077385ED4B; Tue, 4 Aug 2020 15:46:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F2077385ED4B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1596555999; bh=uVCsX5VVRoED6TpGueE9QjZuyJ7Bi/IILpcCovw++XE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=T2PC6yJoEMoicDQrMzj+cY7j0XJbFy/P3lQo1HDMKacOWFpuIUqZRcQqqonW+t8QB 9lut9fi5gdLyJgtxkejnYkzjODTumsZ3nU/mTHrD5c6hvfBKbtYjA5ODkSzuehs22b Ipxut5bl7BnrqvndulS17rrfuFVLi9PrrIq7dWIQ= From: "schwab@linux-m68k.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/96373] SVE miscompilation on vectorized division loop, leading to FP exception Date: Tue, 04 Aug 2020 15:46:39 +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: 10.2.1 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: schwab@linux-m68k.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rsandifo 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 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, 04 Aug 2020 15:46:40 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96373 --- Comment #5 from Andreas Schwab --- > Just note that _all_ floating point operations, not just divisions, can t= rap > (without fast-math). You never know if the user enabled stops for any of > the FP exceptions (overflow, underflow, inexact, invalid op, div-by-zero)= .=20 You need #pragma STDC FENV_ACCESS ON for that, otherwise it's undefined behaviour.=