summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/unit.asm.js3
-rw-r--r--test/unit.wast7
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)
)