diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/unit.asm.js | 8 | ||||
-rw-r--r-- | test/unit.wast | 27 |
2 files changed, 35 insertions, 0 deletions
diff --git a/test/unit.asm.js b/test/unit.asm.js index c8d52f3e0..922923ea3 100644 --- a/test/unit.asm.js +++ b/test/unit.asm.js @@ -1,11 +1,19 @@ function () { "use asm"; + + var t = global.NaN, u = global.Infinity; + function big_negative() { var temp = 0.0; temp = +-2147483648; temp = -2147483648.0; temp = -21474836480.0; } + function importedDoubles() { + var temp = 0.0; + temp = t + u + (-u) + (-t); + } + return { big_negative: big_negative }; } diff --git a/test/unit.wast b/test/unit.wast index 914cbf8bd..5fecdcad3 100644 --- a/test/unit.wast +++ b/test/unit.wast @@ -17,4 +17,31 @@ ) ) ) + (func $importedDoubles + (local $temp f64) + (set_local $temp + (f64.add + (f64.add + (f64.add + (f64.load align=8 + (i32.const 8) + ) + (f64.load align=8 + (i32.const 16) + ) + ) + (f64.neg + (f64.load align=8 + (i32.const 16) + ) + ) + ) + (f64.neg + (f64.load align=8 + (i32.const 8) + ) + ) + ) + ) + ) ) |