summaryrefslogtreecommitdiff
path: root/test/wasm-only.fromasm
diff options
context:
space:
mode:
Diffstat (limited to 'test/wasm-only.fromasm')
-rw-r--r--test/wasm-only.fromasm52
1 files changed, 48 insertions, 4 deletions
diff --git a/test/wasm-only.fromasm b/test/wasm-only.fromasm
index a746c45e3..8811d0cff 100644
--- a/test/wasm-only.fromasm
+++ b/test/wasm-only.fromasm
@@ -2,6 +2,7 @@
(type $FUNCSIG$vdji (func (param f64 i64 i32)))
(type $FUNCSIG$j (func (result i64)))
(type $FUNCSIG$ff (func (param f32) (result f32)))
+ (type $FUNCSIG$v (func))
(type $legaltype$illegalImport (func (param f64 i32 i32 i32)))
(type $legaltype$illegalImportResult (func (result i32)))
(type $legaltype$_fabsf (func (param f64) (result f64)))
@@ -10,6 +11,7 @@
(import "env" "illegalImportResult" (func $illegalImportResult (result i64)))
(import "env" "_fabsf" (func $_fabsf (param f32) (result f32)))
(import "env" "do_i64" (func $do_i64 (result i64)))
+ (import "env" "abort" (func $abort))
(import "env" "illegalImport" (func $legalimport$illegalImport (param f64 i32 i32 i32)))
(import "env" "illegalImportResult" (func $legalimport$illegalImportResult (result i32)))
(import "env" "_fabsf" (func $legalimport$_fabsf (param f64) (result f64)))
@@ -510,14 +512,24 @@
(block $switch-default
(block $switch-case0
(block $switch-case
- (br_table $switch-case0 $switch-default $switch-case $switch-default
+ (br_if $switch-default
(i32.wrap/i64
- (i64.sub
- (get_local $0)
- (i64.const 42949672965)
+ (i64.shr_u
+ (tee_local $0
+ (i64.sub
+ (get_local $0)
+ (i64.const 42949672965)
+ )
+ )
+ (i64.const 32)
)
)
)
+ (br_table $switch-case0 $switch-default $switch-case $switch-default
+ (i32.wrap/i64
+ (get_local $0)
+ )
+ )
)
(br $switch
(i32.const 11000)
@@ -863,6 +875,32 @@
(get_local $0)
)
)
+ (func $switch64_big_condition1 (param $0 i64)
+ (local $1 i64)
+ (block $switch-default
+ (block $switch-case
+ (br_if $switch-default
+ (i32.wrap/i64
+ (i64.shr_u
+ (tee_local $1
+ (i64.sub
+ (get_local $0)
+ (i64.const 9218868437227405312)
+ )
+ )
+ (i64.const 32)
+ )
+ )
+ )
+ (br_table $switch-case $switch-default
+ (i32.wrap/i64
+ (get_local $1)
+ )
+ )
+ )
+ (call $abort)
+ )
+ )
(func $keepAlive
(call $loads)
(call $stores)
@@ -920,6 +958,12 @@
(i64.const 0)
)
)
+ (call $switch64_big_condition1
+ (i64.const 0)
+ )
+ (call $switch64_big_condition1
+ (i64.const 0)
+ )
)
(func $legalstub$illegalParam (param $0 i32) (param $1 i32) (param $2 i32) (param $3 f64)
(call $illegalParam