summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2016-08-14 10:16:55 -0400
committerSteve Hay <steve.m.hay@googlemail.com>2017-08-09 13:24:00 +0100
commitdd93a6f33f343b17c49733047b4cc962d5c34929 (patch)
treedd567e86223790a3d621493e8284b1fcd4b0829a
parentcf834f40206e0a0c50ba4259882478cb5e31276f (diff)
downloadperl-dd93a6f33f343b17c49733047b4cc962d5c34929.tar.gz
Follow-up on a149d118.
The added tests were meant only for x86-80-bit long doubles, but were accidentally run also on 128-bit doubles (quadmath, or probably also on true IEEE 754 quadruples). (cherry picked from commit 7301378635b35757b228e07c14276afaf06a4728)
-rw-r--r--t/op/hexfp.t7
1 files changed, 5 insertions, 2 deletions
diff --git a/t/op/hexfp.t b/t/op/hexfp.t
index d6c0482886..c4c08cc3f0 100644
--- a/t/op/hexfp.t
+++ b/t/op/hexfp.t
@@ -245,8 +245,11 @@ SKIP:
# [perl #128919] limited exponent range in hex fp literal with long double
SKIP: {
- skip("nv_preserves_uv_bits is $Config{nv_preserves_uv_bits} not 64", 4)
- unless ($Config{nv_preserves_uv_bits} == 64);
+ skip("non-80-bit-long-double", 4)
+ unless ($Config{uselongdouble} &&
+ ($Config{nvsize} == 16 || $Config{nvsize} == 12) &&
+ ($Config{longdblkind} == 3 ||
+ $Config{longdblkind} == 4));
is(0x1p-1074, 4.94065645841246544e-324);
is(0x1p-1075, 2.47032822920623272e-324, '[perl #128919]');
is(0x1p-1076, 1.23516411460311636e-324);