diff options
author | Alon Zakai <alonzakai@gmail.com> | 2015-11-16 18:22:27 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2015-11-16 18:22:27 -0800 |
commit | 8a802c8bd50e9c84646ee6b92a969a6f97a1d2f8 (patch) | |
tree | 45e4354915908cc28f84f325a286f637973b6e04 | |
parent | c8804f12e3d37030e1b2f158d5932e0626933c89 (diff) | |
download | binaryen-8a802c8bd50e9c84646ee6b92a969a6f97a1d2f8.tar.gz binaryen-8a802c8bd50e9c84646ee6b92a969a6f97a1d2f8.tar.bz2 binaryen-8a802c8bd50e9c84646ee6b92a969a6f97a1d2f8.zip |
add frem test
-rw-r--r-- | test/unit.asm.js | 3 | ||||
-rw-r--r-- | test/unit.wast | 7 |
2 files changed, 10 insertions, 0 deletions
diff --git a/test/unit.asm.js b/test/unit.asm.js index 1e6789522..686535077 100644 --- a/test/unit.asm.js +++ b/test/unit.asm.js @@ -56,6 +56,9 @@ function () { case 5: return 51; } } + function frem() { + return +(5.5 % 1.2); + } function z() { } diff --git a/test/unit.wast b/test/unit.wast index d0b2ee76d..2e053fd73 100644 --- a/test/unit.wast +++ b/test/unit.wast @@ -1,5 +1,6 @@ (module (memory 16777216 16777216) + (import $f64-rem "asm2wasm" "f64-rem" (param f64 f64) (result f64)) (export "big_negative" $big_negative) (table $z $big_negative $importedDoubles $z) (func $big_negative @@ -210,6 +211,12 @@ ) ) ) + (func $frem (result f64) + (call_import $f64-rem + (f64.const 5.5) + (f64.const 1.2) + ) + ) (func $z (nop) ) |