summaryrefslogtreecommitdiff
path: root/test/unit.fromasm.no-opts
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit.fromasm.no-opts')
-rw-r--r--test/unit.fromasm.no-opts28
1 files changed, 26 insertions, 2 deletions
diff --git a/test/unit.fromasm.no-opts b/test/unit.fromasm.no-opts
index 48b6426b6..32c854dd7 100644
--- a/test/unit.fromasm.no-opts
+++ b/test/unit.fromasm.no-opts
@@ -21,7 +21,7 @@
(import "asm2wasm" "f64-to-int" (func $f64-to-int (param f64) (result i32)))
(import "asm2wasm" "f64-rem" (func $f64-rem (param f64 f64) (result f64)))
(import "env" "memory" (memory $0 256 256))
- (import "env" "table" (table 24 24 anyfunc))
+ (import "env" "table" (table 25 25 anyfunc))
(import "env" "memoryBase" (global $memoryBase i32))
(import "env" "tableBase" (global $tableBase i32))
(global $t (mut f64) (get_global $t$asm2wasm$import))
@@ -32,7 +32,7 @@
(global $n (mut i32) (get_global $n$asm2wasm$import))
(global $STACKTOP (mut i32) (get_global $STACKTOP$asm2wasm$import))
(global $exportedNumber i32 (i32.const 42))
- (elem (get_global $tableBase) $v $big_negative $v $v $w $w $importedDoubles $w $z $cneg $z $z $z $z $z $z $vi $vi $vi $vi $vi $vi $vi $vi)
+ (elem (get_global $tableBase) $v $big_negative $v $v $w $w $importedDoubles $w $z $cneg $z $z $z $z $z $z $vi $vi $vi $vi $vi $vi $vi $vi $ii)
(export "big_negative" (func $big_negative))
(export "pick" (func $exportMe))
(export "doubleCompares" (func $doubleCompares))
@@ -1935,6 +1935,24 @@
(get_local $x)
)
)
+ (func $indirectInSequence
+ (local $i1 i32)
+ (set_local $i1
+ (block i32
+ (call_indirect $FUNCSIG$vi
+ (i32.const 0)
+ (i32.add
+ (i32.and
+ (i32.const 1)
+ (i32.const 7)
+ )
+ (i32.const 16)
+ )
+ )
+ (i32.const 1)
+ )
+ )
+ )
(func $keepAlive
(drop
(call $sqrts
@@ -1956,6 +1974,7 @@
(i32.const 52)
)
)
+ (call $indirectInSequence)
)
(func $v
(nop)
@@ -1963,6 +1982,11 @@
(func $vi (param $x i32)
(nop)
)
+ (func $ii (param $x i32) (result i32)
+ (return
+ (get_local $x)
+ )
+ )
(func $legalstub$fr (param $0 f64)
(call $fr
(f32.demote/f64