From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 486DD3858D35; Wed, 18 Jan 2023 18:40:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 486DD3858D35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1674067235; bh=7UkizR85ng2NTFVOCoPKeJjCn3N6gbkTPozMiwcSMTM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=VzAqdzYDT6A1vmJCazW/V08KL/S8z1MOT4M8hC5ZM1JMlyfFbAID5uAcJJVk4fTKR Q26T35cyy4aPG4j+AKCfhiJR8bvKwylGkpv/g4LbN993m99W5gt6T0LRV3HAnY9Jgy meiZqdaBSJmf/tQ2dwZb4mLf3lmJcMWIuPwfjzls= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libquadmath/94756] strtoflt128 assigns some subnormals incorrectly on MS Windows Date: Wed, 18 Jan 2023 18:40:35 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libquadmath X-Bugzilla-Version: 8.3.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub 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: 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=3D94756 --- Comment #4 from Jakub Jelinek --- I can reproduce it on x86_64-linux with -m32 too: f1: 0x0.000000014707e947d757fbf6f7p-16382 f2: 0x0.000000014707e946d257f2f674b9p-16382 but can't with -m64 nor when using glibc 2.35 strtof128 (in that case it wo= rks fine both with -m32 and -m64): #define _GNU_SOURCE #include #include #include int main () { char buffer[48]; _Float128 f1 =3D strtof128 ("1e-4941", NULL); _Float128 f2 =3D 1e-4941F128; strfromf128 (buffer, 45, "%a", f1); printf ("f1: %s\n", buffer); strfromf128 (buffer, 45, "%a", f2); printf ("f2: %s\n", buffer); return 0; }=