summaryrefslogtreecommitdiff
path: root/test/unit.fromasm.imprecise
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2016-11-18 17:13:42 -0800
committerAlon Zakai <alonzakai@gmail.com>2016-12-07 16:50:04 -1000
commit420f28ff46322b1d9eddd20ce4bd4f30b42fa311 (patch)
treec48daf3c03a2a6b3accc4ec4bba3e631527f5662 /test/unit.fromasm.imprecise
parent7bd25106baf71882badec1e03f45f6cae5d31560 (diff)
downloadbinaryen-420f28ff46322b1d9eddd20ce4bd4f30b42fa311.tar.gz
binaryen-420f28ff46322b1d9eddd20ce4bd4f30b42fa311.tar.bz2
binaryen-420f28ff46322b1d9eddd20ce4bd4f30b42fa311.zip
convert ftCall_* and mftCall_* into table calls
Diffstat (limited to 'test/unit.fromasm.imprecise')
-rw-r--r--test/unit.fromasm.imprecise16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/unit.fromasm.imprecise b/test/unit.fromasm.imprecise
index d466f8c27..10ea5a01f 100644
--- a/test/unit.fromasm.imprecise
+++ b/test/unit.fromasm.imprecise
@@ -2,6 +2,8 @@
(type $FUNCSIG$ddd (func (param f64 f64) (result f64)))
(type $FUNCSIG$vf (func (param f32)))
(type $FUNCSIG$vi (func (param i32)))
+ (type $FUNCSIG$v (func))
+ (type $FUNCSIG$idi (func (param f64 i32) (result i32)))
(type $FUNCSIG$ii (func (param i32) (result i32)))
(type $FUNCSIG$dd (func (param f64) (result f64)))
(type $FUNCSIG$i (func (result i32)))
@@ -65,6 +67,7 @@
(export "relooperJumpThreading_irreducible" (func $relooperJumpThreading_irreducible))
(export "store_fround" (func $store_fround))
(export "exportedNumber" (global $exportedNumber))
+ (export "relocatableAndModules" (func $relocatableAndModules))
(func $big_negative
(nop)
)
@@ -1106,6 +1109,19 @@
)
)
)
+ (func $relocatableAndModules (result i32)
+ (call_indirect $FUNCSIG$v
+ (i32.const 10)
+ )
+ (call_indirect $FUNCSIG$v
+ (i32.const 20)
+ )
+ (call_indirect $FUNCSIG$idi
+ (f64.const 1.5)
+ (i32.const 200)
+ (i32.const 30)
+ )
+ )
(func $vi (param $0 i32)
(nop)
)