summaryrefslogtreecommitdiff
path: root/tests/tget_set_d64.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2020-04-11 01:53:36 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2020-04-11 01:53:36 +0000
commit406342a7f606b97310b42247df0451e27f2a7b9d (patch)
tree29d5894bd4121271fca2a937e7143a4c82ca7d5a /tests/tget_set_d64.c
parent1ac2b1ca55ea54a7045c42c532f494b9f7e9bf24 (diff)
downloadmpfr-406342a7f606b97310b42247df0451e27f2a7b9d.tar.gz
[tests/tget_set_d64.c] Fixed missing "#if _MPFR_IEEE_FLOATS" that
became visible with r13878 now that the encoding of decimal floats can be detected at compile time. But by fixing the defined macros manually, this issue could be visible before r13878. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13879 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tget_set_d64.c')
-rw-r--r--tests/tget_set_d64.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/tget_set_d64.c b/tests/tget_set_d64.c
index 0ae71caf6..90c66e815 100644
--- a/tests/tget_set_d64.c
+++ b/tests/tget_set_d64.c
@@ -482,8 +482,9 @@ powers_of_10 (void)
static void
noncanonical (void)
{
- /* The code below assumes BID. */
-#ifdef DECIMAL_BID_FORMAT
+ /* The code below assumes BID. It also needs _MPFR_IEEE_FLOATS
+ due to the use of union mpfr_ieee_double_extract. */
+#if _MPFR_IEEE_FLOATS && defined(DECIMAL_BID_FORMAT)
/* The volatile below avoids _Decimal64 constant propagation, which is
buggy for non-canonical encoding in various GCC versions on the x86 and
x86_64 targets: failure with gcc (Debian 20190719-1) 10.0.0 20190718