summaryrefslogtreecommitdiff
path: root/tests/tget_set_d128.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2018-06-22 10:42:20 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2018-06-22 10:42:20 +0000
commitb1ddd45dd9137ab53f8eebbb364e7259d1da4428 (patch)
tree46ea4f3202caa60bee9b7df9af1a543314dcfe9a /tests/tget_set_d128.c
parent01b9a84f8482210a23d758b3affe8038e23b9bca (diff)
downloadmpfr-b1ddd45dd9137ab53f8eebbb364e7259d1da4428.tar.gz
[tests/tget_set_d128.c] Execute BID code only with BID.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12823 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tget_set_d128.c')
-rw-r--r--tests/tget_set_d128.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/tget_set_d128.c b/tests/tget_set_d128.c
index badac454e..2df08a853 100644
--- a/tests/tget_set_d128.c
+++ b/tests/tget_set_d128.c
@@ -453,11 +453,13 @@ check_misc (void)
static void
coverage (void)
{
+ /* The code below assumes BID. */
+#ifndef DPD_FORMAT
union ieee_double_decimal128 x;
/* produce a non-canonical decimal128 with Gh >= 24 */
x.d128 = 1;
- /* if little-endian BID, we have sig=0, comb=49408, t0=t1=t2=0, t3=1 */
+ /* if BID, we have sig=0, comb=49408, t0=t1=t2=0, t3=1 */
if (x.s.sig == 0 && x.s.comb == 49408 && x.s.t0 == 0 && x.s.t1 == 0 &&
x.s.t2 == 0 && x.s.t3 == 1)
{
@@ -480,6 +482,7 @@ coverage (void)
MPFR_ASSERTN(mpfr_zero_p (y) && mpfr_signbit (y) == 0);
mpfr_clear (y);
}
+#endif
}
int