Bug 27051 - maintenance command to show floating point emulation precision
Summary: maintenance command to show floating point emulation precision
Status: NEW
Alias: None
Product: gdb
Classification: Unclassified
Component: exp (show other bugs)
Version: HEAD
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-11 13:08 UTC by Tom de Vries
Modified: 2024-01-10 19:12 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tom de Vries 2020-12-11 13:08:26 UTC
I just did commit 9cd7a95a2bb9ba9d5a6af022e5454c8ce78aee56 "[gdb/testsuite] Fix gdb.base/float128.exp with --with-mpfr=no", where we do:
...
+       if { $mpfr_supported == 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 than
+          # unsupported.  However, given that we don't have a way to readily
+          # 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 about 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.
Comment 1 Hannes Domani 2024-01-10 19:12:31 UTC
Since MPFR is no mandatory, can this be closed?