From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3DA033842439; Wed, 24 Feb 2021 09:58:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3DA033842439 From: "ro at CeBiTec dot Uni-Bielefeld.DE" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/98384] [11 Regression] new test case 20_util/to_chars/long_double.cc in r11-6249 fails on powerpc64 BE Date: Wed, 24 Feb 2021 09:58:54 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ro at CeBiTec dot Uni-Bielefeld.DE X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: ppalka at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.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 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: Wed, 24 Feb 2021 09:58:55 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D98384 --- Comment #12 from ro at CeBiTec dot Uni-Bielefeld.DE --- > --- Comment #11 from Patrick Palka --- > I posted a patch at > https://gcc.gnu.org/pipermail/gcc-patches/2021-February/565726.html that = does > this, but also salvages the verification via printf by first checking if = the > leading hex digit of the printf output agrees with that of to_chars.=20 > Conveniently, the patch sidesteps the question of choosing a consistent > representation vs shortest representation :) I've just tested the patch on both i386-pc-solaris2.11 and sparc-sun-solaris2.11 (32 and 64-bit each): as before, the 32-bit test XFAILs while the 64-bit test continues to FAIL: before: /vol/gcc/src/hg/master/local/libstdc++-v3/testsuite/20_util/to_chars/long_d= ouble.cc:104: void test01(): Assertion '!strcmp(to_chars_buffer, printf_buffer+strlen("0x= "))' failed. now: /vol/gcc/src/hg/master/local/libstdc++-v3/testsuite/20_util/to_chars/long_d= ouble.cc:192: void test02(): Assertion '!memcmp(printf_buffer, to_chars_buffer, output_length)' failed.=