aboutsummaryrefslogtreecommitdiff
path: root/std/special/compiler_rt/extendXfYf2_test.zig
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2018-06-30 01:44:54 +0200
committerBen Noordhuis <info@bnoordhuis.nl>2018-06-30 01:58:17 +0200
commit27b02413dc3dacc7d784fe84ff8ba6cb0361842d (patch)
treea48f969278184b262aaae0005583bc182bea45b6 /std/special/compiler_rt/extendXfYf2_test.zig
parent61df5bc142253b0d33b77bceecfaef4c767e7feb (diff)
downloadzig-27b02413dc3dacc7d784fe84ff8ba6cb0361842d.tar.gz
zig-27b02413dc3dacc7d784fe84ff8ba6cb0361842d.zip
add std.math f16 nan support
refs #1122
Diffstat (limited to 'std/special/compiler_rt/extendXfYf2_test.zig')
-rw-r--r--std/special/compiler_rt/extendXfYf2_test.zig1
1 files changed, 1 insertions, 0 deletions
diff --git a/std/special/compiler_rt/extendXfYf2_test.zig b/std/special/compiler_rt/extendXfYf2_test.zig
index 0168de12a5..185c83a0ef 100644
--- a/std/special/compiler_rt/extendXfYf2_test.zig
+++ b/std/special/compiler_rt/extendXfYf2_test.zig
@@ -88,6 +88,7 @@ test "extenddftf2" {
test "extendhfsf2" {
test__extendhfsf2(0x7e00, 0x7fc00000); // qNaN
test__extendhfsf2(0x7f00, 0x7fe00000); // sNaN
+ test__extendhfsf2(0x7c01, 0x7f802000); // sNaN
test__extendhfsf2(0, 0); // 0
test__extendhfsf2(0x8000, 0x80000000); // -0