summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/emcc_hello_world.wast5
-rw-r--r--test/unit.wast3
2 files changed, 5 insertions, 3 deletions
diff --git a/test/emcc_hello_world.wast b/test/emcc_hello_world.wast
index 4cba6cdd8..ace99ae01 100644
--- a/test/emcc_hello_world.wast
+++ b/test/emcc_hello_world.wast
@@ -3,6 +3,7 @@
(type $FUNCSIG$iiii (func (param i32 i32 i32) (result i32)))
(type $FUNCSIG$ii (func (param i32) (result i32)))
(type $FUNCSIG$vi (func (param i32)))
+ (import $f64-to-int "asm2wasm" "f64-to-int" (param f64) (result i32))
(export "_i64Subtract" $_i64Subtract)
(export "_free" $_free)
(export "_main" $_main)
@@ -9642,7 +9643,7 @@
(loop $while-out$53 $while-in$54
(block
(set_local $$conv116$i
- (i32.trunc_s/f64
+ (call_import $f64-to-int
(get_local $$y$addr$2$i)
)
)
@@ -10110,7 +10111,7 @@
(block
(set_local $$conv216$i
(i32.shr_u
- (i32.trunc_s/f64
+ (call_import $f64-to-int
(get_local $$y$addr$4$i)
)
(i32.const 0)
diff --git a/test/unit.wast b/test/unit.wast
index 170236efc..34dea557f 100644
--- a/test/unit.wast
+++ b/test/unit.wast
@@ -1,5 +1,6 @@
(module
(memory 16777216 16777216)
+ (import $f64-to-int "asm2wasm" "f64-to-int" (param f64) (result i32))
(import $f64-rem "asm2wasm" "f64-rem" (param f64 f64) (result f64))
(export "big_negative" $big_negative)
(table $z $big_negative $z $z $w $w $importedDoubles $w)
@@ -133,7 +134,7 @@
(local $d f64)
(block
(set_local $i
- (i32.trunc_s/f64
+ (call_import $f64-to-int
(get_local $d)
)
)