summaryrefslogtreecommitdiff
path: root/test/wasm-only.fromasm.imprecise
diff options
context:
space:
mode:
Diffstat (limited to 'test/wasm-only.fromasm.imprecise')
-rw-r--r--test/wasm-only.fromasm.imprecise30
1 files changed, 30 insertions, 0 deletions
diff --git a/test/wasm-only.fromasm.imprecise b/test/wasm-only.fromasm.imprecise
index 227ab430d..0edb3e6c1 100644
--- a/test/wasm-only.fromasm.imprecise
+++ b/test/wasm-only.fromasm.imprecise
@@ -271,6 +271,31 @@
(i32.const 1)
)
)
+ (func $unreachable_leftovers (param $0 i32) (param $1 i32) (param $2 i32)
+ (block $__rjto$0
+ (if
+ (i32.eqz
+ (get_local $1)
+ )
+ (block
+ (nop)
+ (br_if $__rjto$0
+ (get_local $2)
+ )
+ (i32.store
+ (get_local $0)
+ (i32.const -2)
+ )
+ (return)
+ (br $__rjto$0)
+ )
+ )
+ (i32.store
+ (get_local $0)
+ (i32.const -1)
+ )
+ )
+ )
(func $keepAlive
(call $loads)
(call $stores)
@@ -311,6 +336,11 @@
(i64.const 0)
)
)
+ (call $unreachable_leftovers
+ (i32.const 0)
+ (i32.const 0)
+ (i32.const 0)
+ )
)
(func $legalstub$illegalParam (param $0 i32) (param $1 i32) (param $2 i32) (param $3 f64)
(call $illegalParam