From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6F04238582B7; Thu, 6 Jul 2023 05:31:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6F04238582B7 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1688621460; bh=hjmLoUisaNMoY6yJ/+MrOXz72HoUlF/dfwEkDhXohOw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=E6GmTDSFWqEu+Igt+ZZMwwrK+ogiMftsycxWzz7HhMZemcFoAlfoHai0cyVhxLtPI vWlzs7h5dm+Pg7LW20hYSC+/MXqIlcNRAnOi20iB3U33u204WH/ggaGZMueKT67BhB eceex1FuInHYEuVlMCkV4tlRqWb39M0uR8qUzL+Q= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/110556] Floating point exception with specific optimizations Date: Thu, 06 Jul 2023 05:30:59 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 13.1.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED 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: attachments.created 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=3D110556 --- Comment #8 from Andrew Pinski --- Created attachment 55485 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D55485&action=3Dedit Reduced testcase Compile with ` -O2 -fno-tree-fre -fno-delete-dead-exceptions -fnon-call-exceptions` to make sure the division stays around. Note the interesting thing is if I remove the loop in func_6, the code generation for safe_mul_func_int64_t_s_s changes (to be correct). (that is = just call func_34/func_30 in func_6).=