We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 027de7e commit 672ef5cCopy full SHA for 672ef5c
ml-proto/test/float_misc.wast
@@ -73,6 +73,10 @@
73
;; section 3.3.1: A typical problem: "double rounding"
74
(assert_return (invoke "f64.add" (f64.const 0x1p+63) (f64.const 1024.25)) (f64.const 0x1.0000000000001p+63))
75
76
+;; Test a case that was "tricky" on MMIX.
77
+;; http://mmix.cs.hm.edu/bugs/bug_rounding.html
78
+(assert_return (invoke "f64.add" (f64.const -0x1p-1008) (f64.const 0x0.0000000001716p-1022)) (f64.const -0x1.fffffffffffffp-1009))
79
+
80
;; Test adding the greatest value to 1.0 that rounds back to 1.0, and the
81
;; least that rounds to something greater.
82
(assert_return (invoke "f64.add" (f64.const 1.0) (f64.const 0x1p-53)) (f64.const 0x1.0p+0))
0 commit comments