From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E6351385480A; Fri, 11 Dec 2020 13:08:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E6351385480A From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug exp/27051] New: maintenance command to show floating point emulation precision Date: Fri, 11 Dec 2020 13:08:26 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: exp X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vries 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Dec 2020 13:08:27 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D27051 Bug ID: 27051 Summary: maintenance command to show floating point emulation precision Product: gdb Version: HEAD Status: NEW Severity: normal Priority: P2 Component: exp Assignee: unassigned at sourceware dot org Reporter: vries at gcc dot gnu.org Target Milestone: --- I just did commit 9cd7a95a2bb9ba9d5a6af022e5454c8ce78aee56 "[gdb/testsuite]= Fix gdb.base/float128.exp with --with-mpfr=3Dno", where we do: ... + if { $mpfr_supported =3D=3D 0 } { + # If the host platform has native 128-bit float support (as is + # the case for some versions of s390 and powerpc), the + # "print large128" test should be passing, even without MPFR + # support. So, in those cases we should have fail here rather t= han + # unsupported. However, given that we don't have a way to readi= ly + # test for this, we fall back to unsupported. + unsupported "$test (Missing MPFR support)" + } else { ... In principle, gdb could make a statement through some maintenance command a= bout what the expected host-side float point precision is. [ I'm sort of hoping there already is one, and I haven't found it yet. ] Then, using this maintenance command we could make this test more accurate. --=20 You are receiving this mail because: You are on the CC list for the bug.=