From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9AA77385841A; Fri, 30 Jun 2023 19:47:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9AA77385841A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1688154474; bh=CAH/BMbHjBVZtVoH+VjyDqKLfh75GkpBPwCgllr/xfI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=r6J+NNajP9iTnn4q7XviGYB1zoTxznY3HUMZe1B7JVWP0+FI8HEAnvfU0DMqe0UJp dTubJUkc8xgxs7LRyIbjR/W3JNH1Y6W384EO9ZcSXqe/ovqAzZJMMjWfZEhHYLjKxw kcIxAk79bC955fkKbmI5AgN8bAt3l/UkhV4+tXU8= From: "ubizjak at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/110311] [14 Regression] regression in tree-optimizer Date: Fri, 30 Jun 2023 19:47:54 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ubizjak at gmail dot com 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: 14.0 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=3D110311 --- Comment #39 from Uro=C5=A1 Bizjak --- (In reply to anlauf from comment #36) > Breakpoint 2, rng_stream.rng_stream_s::mmm_mod (x1=3D330289839997, > x2=3D4294967087) at rng_stream_sub.f90:336 > 336 res =3D mod (x1, x2) > (gdb) info float > R7: Valid 0x401be51fb57800000000 +480507567=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20 > R6: Valid 0x401be51fb57800000000 +480507567=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20 > R5: Zero 0x00000000000000000000 +0=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20 > R4: Zero 0x00000000000000000000 +0=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20 > R3: Zero 0x00000000000000000000 +0=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20 > R2: Zero 0x00000000000000000000 +0=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20 > R1: Zero 0x00000000000000000000 +0=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20 > =3D>R0: Special 0xffff0000000004f5dc90 Unsupported Here is the problem. FPREM chokes on invalid input in R0. [1] Says that IA (invalid arithmetic) exception is generated for unsupported format, and this is what happened above: #IA Source operand is an SNaN value, modulus is 0, dividend is =E2=88= =9E, or unsupported format. [1] https://www.felixcloutier.com/x86/fprem=