From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D5C5A385703A; Thu, 1 Dec 2022 06:25:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D5C5A385703A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1669875910; bh=qoa6Qh2+UnRQ/nsZ8M0OquBuxX6Fp02LgOJxokqevhA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=xvHEGoY5/fsZgOh9vseccStXYe0/3BcB5GOxLbG4HI+/XLRZ68sFmdStMlIQxYi1P Xc8vKDJOzJwgI5q2ZRUgYcl1HDegJrgF48nWTIfGj40m4aexPUXFJNXfbUm00Hg97B zq2LSiXqz0WsQjjkfCteU//qjDSqMX4Szm7k/A6Q= From: "cvs-commit at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug testsuite/29816] [gdb/testsuite, powerpc64le] FAIL: gdb.ada/float-bits.exp: print 16llf#4000921fb54442d18469898cc51701b8# Date: Thu, 01 Dec 2022 06:25:09 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: testsuite X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot 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://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D29816 --- Comment #11 from cvs-commit at gcc dot gnu.org --- The master branch has been updated by Tom de Vries : https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D32a5aa262568= 6a709b22db19300a578d96285dd1 commit 32a5aa2625686a709b22db19300a578d96285dd1 Author: Tom de Vries Date: Thu Dec 1 07:25:04 2022 +0100 [gdb/testsuite] Fix gdb.ada/float-bits.exp for powerpc64le On powerpc64le-linux, I run into: ... (gdb) print 16llf#4000921fb54442d18469898cc51701b8#^M $9 =3D ^M (gdb) FAIL: gdb.ada/float-bits.exp: print \ 16llf#4000921fb54442d18469898cc51701b8# ... The problem is that we're using a hex string for the 128-bit IEEE quad = long double format, but the actual long double float format is: ... gdbarch_dump: long_double_format =3D floatformat_ibm_long_double_little= ^M ... Fix this by using the hex string obtained by compiling test.c: ... long double a =3D 5.0e+25L; ... like so: ... $ gcc -mlittle test.c -c -g ... and running gdb: ... $ gdb -q -batch test.o -ex "p /x a" $1 =3D 0xc1e1c000000000004544adf4b7320335 ... and likewise for -mbig: ... $ gdb -q -batch test.o -ex "p /x a" $1 =3D 0x4544adf4b7320335c1e1c00000000000 ... Tested on powerpc64le-linux. I excercised the case of floatformat_ibm_long_double_big by using "set endian big" in the test-case. Note that for this patch to work correctly, recent commit aaa79cd62b8 ("[gdb] Improve printing of float formats") is required. PR testsuite/29816 Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=3D29816 Approved-By: Tom Tromey --=20 You are receiving this mail because: You are on the CC list for the bug.=