summaryrefslogtreecommitdiff
path: root/test/wasm-only.fromasm.clamp.no-opts
diff options
context:
space:
mode:
Diffstat (limited to 'test/wasm-only.fromasm.clamp.no-opts')
-rw-r--r--test/wasm-only.fromasm.clamp.no-opts1012
1 files changed, 506 insertions, 506 deletions
diff --git a/test/wasm-only.fromasm.clamp.no-opts b/test/wasm-only.fromasm.clamp.no-opts
index be5aebdf5..e6245391d 100644
--- a/test/wasm-only.fromasm.clamp.no-opts
+++ b/test/wasm-only.fromasm.clamp.no-opts
@@ -10,8 +10,8 @@
(type $legaltype$_fabsf (func (param f64) (result f64)))
(type $legaltype$do_i64 (func (result i32)))
(import "env" "memory" (memory $memory 256 256))
- (import "env" "table" (table $table 3 3 anyfunc))
- (elem (get_global $__table_base) $legalfunc$illegalImport $legalfunc$_fabsf $legalfunc$do_i64)
+ (import "env" "table" (table $table 3 3 funcref))
+ (elem (global.get $__table_base) $legalfunc$illegalImport $legalfunc$_fabsf $legalfunc$do_i64)
(import "env" "__memory_base" (global $__memory_base i32))
(import "env" "__table_base" (global $__table_base i32))
(import "env" "STACKTOP" (global $STACKTOP$asm2wasm$import i32))
@@ -22,7 +22,7 @@
(import "env" "illegalImportResult" (func $legalimport$illegalImportResult (result i32)))
(import "env" "_fabsf" (func $legalimport$_fabsf (param f64) (result f64)))
(import "env" "do_i64" (func $legalimport$do_i64 (result i32)))
- (global $STACKTOP (mut i32) (get_global $STACKTOP$asm2wasm$import))
+ (global $STACKTOP (mut i32) (global.get $STACKTOP$asm2wasm$import))
(export "test64" (func $test64))
(export "illegalParam" (func $legalstub$illegalParam))
(export "illegalResult" (func $legalstub$illegalResult))
@@ -31,112 +31,112 @@
(local $i i32)
(local $f f32)
(local $d f64)
- (set_local $i
+ (local.set $i
(i32.load8_s
(i32.const 100)
)
)
- (set_local $i
+ (local.set $i
(i32.load8_s
(i32.const 101)
)
)
- (set_local $i
+ (local.set $i
(i32.load16_s
(i32.const 102)
)
)
- (set_local $i
+ (local.set $i
(i32.load16_s
(i32.const 103)
)
)
- (set_local $i
+ (local.set $i
(i32.load16_s align=1
(i32.const 104)
)
)
- (set_local $i
+ (local.set $i
(i32.load16_s
(i32.const 105)
)
)
- (set_local $i
+ (local.set $i
(i32.load
(i32.const 106)
)
)
- (set_local $i
+ (local.set $i
(i32.load
(i32.const 107)
)
)
- (set_local $i
+ (local.set $i
(i32.load align=1
(i32.const 108)
)
)
- (set_local $i
+ (local.set $i
(i32.load align=2
(i32.const 109)
)
)
- (set_local $i
+ (local.set $i
(i32.load
(i32.const 110)
)
)
- (set_local $f
+ (local.set $f
(f32.load
(i32.const 111)
)
)
- (set_local $f
+ (local.set $f
(f32.load
(i32.const 112)
)
)
- (set_local $f
+ (local.set $f
(f32.load align=1
(i32.const 113)
)
)
- (set_local $f
+ (local.set $f
(f32.load align=2
(i32.const 114)
)
)
- (set_local $f
+ (local.set $f
(f32.load
(i32.const 115)
)
)
- (set_local $d
+ (local.set $d
(f64.load
(i32.const 116)
)
)
- (set_local $d
+ (local.set $d
(f64.load
(i32.const 117)
)
)
- (set_local $d
+ (local.set $d
(f64.load align=1
(i32.const 118)
)
)
- (set_local $d
+ (local.set $d
(f64.load align=2
(i32.const 119)
)
)
- (set_local $d
+ (local.set $d
(f64.load align=4
(i32.const 120)
)
)
- (set_local $d
+ (local.set $d
(f64.load
(i32.const 121)
)
@@ -148,91 +148,91 @@
(local $d f64)
(i32.store8
(i32.const 100)
- (get_local $i)
+ (local.get $i)
)
(i32.store8
(i32.const 101)
- (get_local $i)
+ (local.get $i)
)
(i32.store16
(i32.const 102)
- (get_local $i)
+ (local.get $i)
)
(i32.store16
(i32.const 103)
- (get_local $i)
+ (local.get $i)
)
(i32.store16 align=1
(i32.const 104)
- (get_local $i)
+ (local.get $i)
)
(i32.store16
(i32.const 105)
- (get_local $i)
+ (local.get $i)
)
(i32.store
(i32.const 106)
- (get_local $i)
+ (local.get $i)
)
(i32.store
(i32.const 107)
- (get_local $i)
+ (local.get $i)
)
(i32.store align=1
(i32.const 108)
- (get_local $i)
+ (local.get $i)
)
(i32.store align=2
(i32.const 109)
- (get_local $i)
+ (local.get $i)
)
(i32.store
(i32.const 110)
- (get_local $i)
+ (local.get $i)
)
(f32.store
(i32.const 111)
- (get_local $f)
+ (local.get $f)
)
(f32.store
(i32.const 112)
- (get_local $f)
+ (local.get $f)
)
(f32.store align=1
(i32.const 113)
- (get_local $f)
+ (local.get $f)
)
(f32.store align=2
(i32.const 114)
- (get_local $f)
+ (local.get $f)
)
(f32.store
(i32.const 115)
- (get_local $f)
+ (local.get $f)
)
(f64.store
(i32.const 116)
- (get_local $d)
+ (local.get $d)
)
(f64.store
(i32.const 117)
- (get_local $d)
+ (local.get $d)
)
(f64.store align=1
(i32.const 118)
- (get_local $d)
+ (local.get $d)
)
(f64.store align=2
(i32.const 119)
- (get_local $d)
+ (local.get $d)
)
(f64.store align=4
(i32.const 120)
- (get_local $d)
+ (local.get $d)
)
(f64.store
(i32.const 121)
- (get_local $d)
+ (local.get $d)
)
)
(func $test (; 9 ;)
@@ -243,77 +243,77 @@
(local $f2 f32)
(local $d1 f64)
(local $d2 f64)
- (set_local $i
- (i32.reinterpret/f32
- (get_local $f)
+ (local.set $i
+ (i32.reinterpret_f32
+ (local.get $f)
)
)
- (set_local $f
- (f32.reinterpret/i32
- (get_local $i)
+ (local.set $f
+ (f32.reinterpret_i32
+ (local.get $i)
)
)
- (set_local $i
+ (local.set $i
(i32.ctz
- (get_local $i)
+ (local.get $i)
)
)
- (set_local $i
+ (local.set $i
(i32.popcnt
- (get_local $i)
+ (local.get $i)
)
)
- (set_local $j
+ (local.set $j
(i64.popcnt
- (get_local $j)
+ (local.get $j)
)
)
- (set_local $f1
+ (local.set $f1
(f32.copysign
- (get_local $f1)
- (get_local $f2)
+ (local.get $f1)
+ (local.get $f2)
)
)
- (set_local $d1
+ (local.set $d1
(f64.copysign
- (get_local $d1)
- (get_local $d2)
+ (local.get $d1)
+ (local.get $d2)
)
)
)
(func $i64u-div (; 10 ;) (param $0 i64) (param $1 i64) (result i64)
(if (result i64)
(i64.eqz
- (get_local $1)
+ (local.get $1)
)
(i64.const 0)
(i64.div_u
- (get_local $0)
- (get_local $1)
+ (local.get $0)
+ (local.get $1)
)
)
)
(func $i64s-div (; 11 ;) (param $0 i64) (param $1 i64) (result i64)
(if (result i64)
(i64.eqz
- (get_local $1)
+ (local.get $1)
)
(i64.const 0)
(if (result i64)
(i32.and
(i64.eq
- (get_local $0)
+ (local.get $0)
(i64.const -9223372036854775808)
)
(i64.eq
- (get_local $1)
+ (local.get $1)
(i64.const -1)
)
)
(i64.const 0)
(i64.div_s
- (get_local $0)
- (get_local $1)
+ (local.get $0)
+ (local.get $1)
)
)
)
@@ -321,48 +321,48 @@
(func $i64u-rem (; 12 ;) (param $0 i64) (param $1 i64) (result i64)
(if (result i64)
(i64.eqz
- (get_local $1)
+ (local.get $1)
)
(i64.const 0)
(i64.rem_u
- (get_local $0)
- (get_local $1)
+ (local.get $0)
+ (local.get $1)
)
)
)
(func $i64s-rem (; 13 ;) (param $0 i64) (param $1 i64) (result i64)
(if (result i64)
(i64.eqz
- (get_local $1)
+ (local.get $1)
)
(i64.const 0)
(i64.rem_s
- (get_local $0)
- (get_local $1)
+ (local.get $0)
+ (local.get $1)
)
)
)
(func $f32-to-int64 (; 14 ;) (param $0 f32) (result i64)
(if (result i64)
(f32.ne
- (get_local $0)
- (get_local $0)
+ (local.get $0)
+ (local.get $0)
)
(i64.const -9223372036854775808)
(if (result i64)
(f32.ge
- (get_local $0)
+ (local.get $0)
(f32.const 9223372036854775808)
)
(i64.const -9223372036854775808)
(if (result i64)
(f32.le
- (get_local $0)
+ (local.get $0)
(f32.const -9223372036854775808)
)
(i64.const -9223372036854775808)
- (i64.trunc_s/f32
- (get_local $0)
+ (i64.trunc_f32_s
+ (local.get $0)
)
)
)
@@ -371,24 +371,24 @@
(func $f64-to-int64 (; 15 ;) (param $0 f64) (result i64)
(if (result i64)
(f64.ne
- (get_local $0)
- (get_local $0)
+ (local.get $0)
+ (local.get $0)
)
(i64.const -9223372036854775808)
(if (result i64)
(f64.ge
- (get_local $0)
+ (local.get $0)
(f64.const 9223372036854775808)
)
(i64.const -9223372036854775808)
(if (result i64)
(f64.le
- (get_local $0)
+ (local.get $0)
(f64.const -9223372036854775808)
)
(i64.const -9223372036854775808)
- (i64.trunc_s/f64
- (get_local $0)
+ (i64.trunc_f64_s
+ (local.get $0)
)
)
)
@@ -397,24 +397,24 @@
(func $f32-to-uint64 (; 16 ;) (param $0 f32) (result i64)
(if (result i64)
(f32.ne
- (get_local $0)
- (get_local $0)
+ (local.get $0)
+ (local.get $0)
)
(i64.const 0)
(if (result i64)
(f32.ge
- (get_local $0)
+ (local.get $0)
(f32.const 18446744073709551615)
)
(i64.const 0)
(if (result i64)
(f32.le
- (get_local $0)
+ (local.get $0)
(f32.const -1)
)
(i64.const 0)
- (i64.trunc_u/f32
- (get_local $0)
+ (i64.trunc_f32_u
+ (local.get $0)
)
)
)
@@ -423,24 +423,24 @@
(func $f64-to-uint64 (; 17 ;) (param $0 f64) (result i64)
(if (result i64)
(f64.ne
- (get_local $0)
- (get_local $0)
+ (local.get $0)
+ (local.get $0)
)
(i64.const 0)
(if (result i64)
(f64.ge
- (get_local $0)
+ (local.get $0)
(f64.const 18446744073709551615)
)
(i64.const 0)
(if (result i64)
(f64.le
- (get_local $0)
+ (local.get $0)
(f64.const -1)
)
(i64.const 0)
- (i64.trunc_u/f64
- (get_local $0)
+ (i64.trunc_f64_u
+ (local.get $0)
)
)
)
@@ -453,268 +453,268 @@
(local $int32 i32)
(local $float32 f32)
(local $float64 f64)
- (set_local $x
+ (local.set $x
(i64.const 100)
)
- (set_local $y
+ (local.set $y
(i64.const 128849018897)
)
- (set_local $x
+ (local.set $x
(i64.add
- (get_local $x)
- (get_local $y)
+ (local.get $x)
+ (local.get $y)
)
)
- (set_local $x
+ (local.set $x
(i64.sub
- (get_local $x)
- (get_local $y)
+ (local.get $x)
+ (local.get $y)
)
)
- (set_local $x
+ (local.set $x
(i64.mul
- (get_local $x)
- (get_local $y)
+ (local.get $x)
+ (local.get $y)
)
)
- (set_local $x
+ (local.set $x
(call $i64u-div
- (get_local $x)
- (get_local $y)
+ (local.get $x)
+ (local.get $y)
)
)
- (set_local $x
+ (local.set $x
(call $i64s-div
- (get_local $x)
- (get_local $y)
+ (local.get $x)
+ (local.get $y)
)
)
- (set_local $x
+ (local.set $x
(call $i64u-rem
- (get_local $x)
- (get_local $y)
+ (local.get $x)
+ (local.get $y)
)
)
- (set_local $x
+ (local.set $x
(call $i64s-rem
- (get_local $x)
- (get_local $y)
+ (local.get $x)
+ (local.get $y)
)
)
- (set_local $x
+ (local.set $x
(i64.and
- (get_local $x)
- (get_local $y)
+ (local.get $x)
+ (local.get $y)
)
)
- (set_local $x
+ (local.set $x
(i64.or
- (get_local $x)
- (get_local $y)
+ (local.get $x)
+ (local.get $y)
)
)
- (set_local $x
+ (local.set $x
(i64.xor
- (get_local $x)
- (get_local $y)
+ (local.get $x)
+ (local.get $y)
)
)
- (set_local $x
+ (local.set $x
(i64.shl
- (get_local $x)
- (get_local $y)
+ (local.get $x)
+ (local.get $y)
)
)
- (set_local $x
+ (local.set $x
(i64.shr_s
- (get_local $x)
- (get_local $y)
+ (local.get $x)
+ (local.get $y)
)
)
- (set_local $x
+ (local.set $x
(i64.shr_u
- (get_local $x)
- (get_local $y)
+ (local.get $x)
+ (local.get $y)
)
)
- (set_local $x
+ (local.set $x
(i64.load
(i32.const 120)
)
)
- (set_local $x
+ (local.set $x
(i64.load
(i32.const 120)
)
)
- (set_local $x
+ (local.set $x
(i64.load align=2
(i32.const 120)
)
)
- (set_local $x
+ (local.set $x
(i64.load align=4
(i32.const 120)
)
)
- (set_local $x
+ (local.set $x
(i64.load
(i32.const 120)
)
)
(i64.store
(i32.const 120)
- (get_local $x)
+ (local.get $x)
)
(i64.store
(i32.const 120)
- (get_local $x)
+ (local.get $x)
)
(i64.store align=2
(i32.const 120)
- (get_local $x)
+ (local.get $x)
)
(i64.store align=4
(i32.const 120)
- (get_local $x)
+ (local.get $x)
)
(i64.store
(i32.const 120)
- (get_local $x)
+ (local.get $x)
)
- (set_local $z
+ (local.set $z
(i64.eq
- (get_local $x)
- (get_local $y)
+ (local.get $x)
+ (local.get $y)
)
)
- (set_local $z
+ (local.set $z
(i64.ne
- (get_local $x)
- (get_local $y)
+ (local.get $x)
+ (local.get $y)
)
)
- (set_local $z
+ (local.set $z
(i64.le_u
- (get_local $x)
- (get_local $y)
+ (local.get $x)
+ (local.get $y)
)
)
- (set_local $z
+ (local.set $z
(i64.le_s
- (get_local $x)
- (get_local $y)
+ (local.get $x)
+ (local.get $y)
)
)
- (set_local $z
+ (local.set $z
(i64.ge_u
- (get_local $x)
- (get_local $y)
+ (local.get $x)
+ (local.get $y)
)
)
- (set_local $z
+ (local.set $z
(i64.ge_s
- (get_local $x)
- (get_local $y)
+ (local.get $x)
+ (local.get $y)
)
)
- (set_local $z
+ (local.set $z
(i64.lt_u
- (get_local $x)
- (get_local $y)
+ (local.get $x)
+ (local.get $y)
)
)
- (set_local $z
+ (local.set $z
(i64.lt_s
- (get_local $x)
- (get_local $y)
+ (local.get $x)
+ (local.get $y)
)
)
- (set_local $z
+ (local.set $z
(i64.gt_u
- (get_local $x)
- (get_local $y)
+ (local.get $x)
+ (local.get $y)
)
)
- (set_local $z
+ (local.set $z
(i64.gt_s
- (get_local $x)
- (get_local $y)
+ (local.get $x)
+ (local.get $y)
)
)
- (set_local $int32
- (i32.wrap/i64
- (get_local $x)
+ (local.set $int32
+ (i32.wrap_i64
+ (local.get $x)
)
)
- (set_local $x
- (i64.extend_s/i32
- (get_local $int32)
+ (local.set $x
+ (i64.extend_i32_s
+ (local.get $int32)
)
)
- (set_local $x
- (i64.extend_u/i32
- (get_local $int32)
+ (local.set $x
+ (i64.extend_i32_u
+ (local.get $int32)
)
)
- (set_local $float32
- (f32.convert_s/i64
- (get_local $x)
+ (local.set $float32
+ (f32.convert_i64_s
+ (local.get $x)
)
)
- (set_local $float64
- (f64.convert_s/i64
- (get_local $x)
+ (local.set $float64
+ (f64.convert_i64_s
+ (local.get $x)
)
)
- (set_local $float32
- (f32.convert_u/i64
- (get_local $x)
+ (local.set $float32
+ (f32.convert_i64_u
+ (local.get $x)
)
)
- (set_local $float64
- (f64.convert_u/i64
- (get_local $x)
+ (local.set $float64
+ (f64.convert_i64_u
+ (local.get $x)
)
)
- (set_local $x
+ (local.set $x
(call $f32-to-int64
- (get_local $float32)
+ (local.get $float32)
)
)
- (set_local $x
+ (local.set $x
(call $f64-to-int64
- (get_local $float64)
+ (local.get $float64)
)
)
- (set_local $x
+ (local.set $x
(call $f32-to-uint64
- (get_local $float32)
+ (local.get $float32)
)
)
- (set_local $x
+ (local.set $x
(call $f64-to-uint64
- (get_local $float64)
+ (local.get $float64)
)
)
- (set_local $x
- (i64.reinterpret/f64
- (get_local $float64)
+ (local.set $x
+ (i64.reinterpret_f64
+ (local.get $float64)
)
)
- (set_local $float64
- (f64.reinterpret/i64
- (get_local $x)
+ (local.set $float64
+ (f64.reinterpret_i64
+ (local.get $x)
)
)
- (set_local $x
+ (local.set $x
(i64.clz
- (get_local $y)
+ (local.get $y)
)
)
- (set_local $y
+ (local.set $y
(i64.ctz
- (get_local $x)
+ (local.get $x)
)
)
)
@@ -731,28 +731,28 @@
(func $arg (; 20 ;) (param $x i64)
(i64.store
(i32.const 100)
- (get_local $x)
+ (local.get $x)
)
(call $arg
- (get_local $x)
+ (local.get $x)
)
)
(func $illegalParam (; 21 ;) (param $a i32) (param $x i64) (param $b f64)
(i32.store
(i32.const 50)
- (get_local $a)
+ (local.get $a)
)
(i64.store
(i32.const 100)
- (get_local $x)
+ (local.get $x)
)
(f64.store
(i32.const 200)
- (get_local $b)
+ (local.get $b)
)
(call $illegalParam
(i32.const 0)
- (get_local $x)
+ (local.get $x)
(f64.const 12.34)
)
)
@@ -768,20 +768,20 @@
)
(func $call1 (; 24 ;) (param $x i64) (result i64)
(local $y i64)
- (set_local $y
+ (local.set $y
(call $call1
- (get_local $x)
+ (local.get $x)
)
)
(return
- (get_local $y)
+ (local.get $y)
)
)
(func $call2 (; 25 ;) (param $x i64) (result i64)
(drop
(call $call2
(call $call2
- (get_local $x)
+ (local.get $x)
)
)
)
@@ -799,32 +799,32 @@
(local $$9 i64)
(local $$10 i64)
(if
- (i32.wrap/i64
- (get_local $$6)
+ (i32.wrap_i64
+ (local.get $$6)
)
(block
- (set_local $$9
+ (local.set $$9
(call $call2
- (get_local $$4)
+ (local.get $$4)
)
)
- (set_local $$$0
- (get_local $$9)
+ (local.set $$$0
+ (local.get $$9)
)
)
(block
- (set_local $$10
+ (local.set $$10
(call $call2
- (get_local $$4)
+ (local.get $$4)
)
)
- (set_local $$$0
- (get_local $$10)
+ (local.set $$$0
+ (local.get $$10)
)
)
)
(return
- (get_local $$$0)
+ (local.get $$$0)
)
)
(func $ifValue32 (; 28 ;) (param $$4 i32) (param $$6 i32) (result i32)
@@ -832,32 +832,32 @@
(local $$9 i32)
(local $$10 i32)
(if
- (get_local $$6)
+ (local.get $$6)
(block
- (set_local $$9
+ (local.set $$9
(call $ifValue32
- (get_local $$4)
- (get_local $$6)
+ (local.get $$4)
+ (local.get $$6)
)
)
- (set_local $$$0
- (get_local $$9)
+ (local.set $$$0
+ (local.get $$9)
)
)
(block
- (set_local $$10
+ (local.set $$10
(call $ifValue32
- (get_local $$4)
- (get_local $$6)
+ (local.get $$4)
+ (local.get $$6)
)
)
- (set_local $$$0
- (get_local $$10)
+ (local.set $$$0
+ (local.get $$10)
)
)
)
(return
- (get_local $$$0)
+ (local.get $$$0)
)
)
(func $switch64 (; 29 ;) (param $$a444 i64) (result i32)
@@ -868,67 +868,67 @@
(block $switch-case0
(block $switch-case
(br_table $switch-case0 $switch-default $switch-case $switch-default
- (i32.wrap/i64
+ (i32.wrap_i64
(block (result i64)
- (set_local $2
+ (local.set $2
(i64.sub
- (get_local $$a444)
+ (local.get $$a444)
(i64.const 42949672965)
)
)
(br_if $switch-default
- (i32.wrap/i64
+ (i32.wrap_i64
(i64.shr_u
- (get_local $2)
+ (local.get $2)
(i64.const 32)
)
)
)
- (get_local $2)
+ (local.get $2)
)
)
)
)
(block
- (set_local $$waka
+ (local.set $$waka
(i32.const 11000)
)
(br $switch)
)
)
(block
- (set_local $$waka
+ (local.set $$waka
(i32.const 10)
)
(br $switch)
)
)
- (set_local $$waka
+ (local.set $$waka
(i32.const 1)
)
)
(return
- (get_local $$waka)
+ (local.get $$waka)
)
)
(func $unreachable_leftovers (; 30 ;) (param $$0 i32) (param $$1 i32) (param $$2 i32)
(local $label i32)
(block $label$break$L1
(if
- (get_local $$1)
- (set_local $label
+ (local.get $$1)
+ (local.set $label
(i32.const 10)
)
(block
(if
- (get_local $$2)
+ (local.get $$2)
(block
(br $label$break$L1)
(return)
)
)
(i32.store
- (get_local $$0)
+ (local.get $$0)
(i32.const -2)
)
(return)
@@ -937,11 +937,11 @@
)
(if
(i32.eq
- (get_local $label)
+ (local.get $label)
(i32.const 10)
)
(i32.store
- (get_local $$0)
+ (local.get $$0)
(i32.const -1)
)
)
@@ -957,18 +957,18 @@
(block $switch-default
(block $switch-case0
(block $switch-case
- (set_local $2
- (get_local $$a444)
+ (local.set $2
+ (local.get $$a444)
)
(if
(i64.eq
- (get_local $2)
+ (local.get $2)
(i64.const -9223372036854775808)
)
(br $switch-case0)
(if
(i64.eq
- (get_local $2)
+ (local.get $2)
(i64.const 4611686018427387904)
)
(br $switch-case)
@@ -982,7 +982,7 @@
(i32.const 40)
)
)
- (set_local $$waka
+ (local.set $$waka
(i32.const 1)
)
)
@@ -990,18 +990,18 @@
(block $switch-default4
(block $switch-case3
(block $switch-case2
- (set_local $3
+ (local.set $3
(i32.const 100)
)
(if
(i32.eq
- (get_local $3)
+ (local.get $3)
(i32.const 214748364)
)
(br $switch-case3)
(if
(i32.eq
- (get_local $3)
+ (local.get $3)
(i32.const 107374182)
)
(br $switch-case2)
@@ -1015,25 +1015,25 @@
(i32.const 41)
)
)
- (set_local $$waka
+ (local.set $$waka
(i32.const 1001)
)
)
(block $switch5
(block $switch-case7
(block $switch-case6
- (set_local $4
- (get_local $$a444)
+ (local.set $4
+ (local.get $$a444)
)
(if
(i64.eq
- (get_local $4)
+ (local.get $4)
(i64.const -9223372036854775808)
)
(br $switch-case7)
(if
(i64.eq
- (get_local $4)
+ (local.get $4)
(i64.const 4611686018427387904)
)
(br $switch-case6)
@@ -1050,18 +1050,18 @@
(block $switch8
(block $switch-case10
(block $switch-case9
- (set_local $5
+ (local.set $5
(i32.const 100)
)
(if
(i32.eq
- (get_local $5)
+ (local.get $5)
(i32.const 214748364)
)
(br $switch-case10)
(if
(i32.eq
- (get_local $5)
+ (local.get $5)
(i32.const 107374182)
)
(br $switch-case9)
@@ -1136,77 +1136,77 @@
(local $$xor i32)
(local $label i32)
(local $sp i32)
- (set_local $sp
- (get_global $STACKTOP)
+ (local.set $sp
+ (global.get $STACKTOP)
)
- (set_local $$conv1
+ (local.set $$conv1
(i32.and
- (get_local $$c)
+ (local.get $$c)
(i32.const 255)
)
)
- (set_local $$0
- (get_local $$src)
+ (local.set $$0
+ (local.get $$src)
)
- (set_local $$and39
+ (local.set $$and39
(i32.and
- (get_local $$0)
+ (local.get $$0)
(i32.const 3)
)
)
- (set_local $$tobool40
+ (local.set $$tobool40
(i32.ne
- (get_local $$and39)
+ (local.get $$and39)
(i32.const 0)
)
)
- (set_local $$tobool241
+ (local.set $$tobool241
(i32.ne
- (get_local $$n)
+ (local.get $$n)
(i32.const 0)
)
)
- (set_local $$or$cond42
+ (local.set $$or$cond42
(i32.and
- (get_local $$tobool241)
- (get_local $$tobool40)
+ (local.get $$tobool241)
+ (local.get $$tobool40)
)
)
(block $label$break$L1
(if
- (get_local $$or$cond42)
+ (local.get $$or$cond42)
(block
- (set_local $$1
+ (local.set $$1
(i32.and
- (get_local $$c)
+ (local.get $$c)
(i32.const 255)
)
)
- (set_local $$n$addr$043
- (get_local $$n)
+ (local.set $$n$addr$043
+ (local.get $$n)
)
- (set_local $$s$044
- (get_local $$src)
+ (local.set $$s$044
+ (local.get $$src)
)
(loop $while-in
(block $while-out
- (set_local $$2
+ (local.set $$2
(i32.load8_s
- (get_local $$s$044)
+ (local.get $$s$044)
)
)
- (set_local $$cmp
+ (local.set $$cmp
(i32.eq
(i32.shr_s
(i32.shl
- (get_local $$2)
+ (local.get $$2)
(i32.const 24)
)
(i32.const 24)
)
(i32.shr_s
(i32.shl
- (get_local $$1)
+ (local.get $$1)
(i32.const 24)
)
(i32.const 24)
@@ -1214,80 +1214,80 @@
)
)
(if
- (get_local $$cmp)
+ (local.get $$cmp)
(block
- (set_local $$n$addr$0$lcssa52
- (get_local $$n$addr$043)
+ (local.set $$n$addr$0$lcssa52
+ (local.get $$n$addr$043)
)
- (set_local $$s$0$lcssa53
- (get_local $$s$044)
+ (local.set $$s$0$lcssa53
+ (local.get $$s$044)
)
- (set_local $label
+ (local.set $label
(i32.const 6)
)
(br $label$break$L1)
)
)
- (set_local $$incdec$ptr
+ (local.set $$incdec$ptr
(i32.add
- (get_local $$s$044)
+ (local.get $$s$044)
(i32.const 1)
)
)
- (set_local $$dec
+ (local.set $$dec
(i32.add
- (get_local $$n$addr$043)
+ (local.get $$n$addr$043)
(i32.const -1)
)
)
- (set_local $$3
- (get_local $$incdec$ptr)
+ (local.set $$3
+ (local.get $$incdec$ptr)
)
- (set_local $$and
+ (local.set $$and
(i32.and
- (get_local $$3)
+ (local.get $$3)
(i32.const 3)
)
)
- (set_local $$tobool
+ (local.set $$tobool
(i32.ne
- (get_local $$and)
+ (local.get $$and)
(i32.const 0)
)
)
- (set_local $$tobool2
+ (local.set $$tobool2
(i32.ne
- (get_local $$dec)
+ (local.get $$dec)
(i32.const 0)
)
)
- (set_local $$or$cond
+ (local.set $$or$cond
(i32.and
- (get_local $$tobool2)
- (get_local $$tobool)
+ (local.get $$tobool2)
+ (local.get $$tobool)
)
)
(if
- (get_local $$or$cond)
+ (local.get $$or$cond)
(block
- (set_local $$n$addr$043
- (get_local $$dec)
+ (local.set $$n$addr$043
+ (local.get $$dec)
)
- (set_local $$s$044
- (get_local $$incdec$ptr)
+ (local.set $$s$044
+ (local.get $$incdec$ptr)
)
)
(block
- (set_local $$n$addr$0$lcssa
- (get_local $$dec)
+ (local.set $$n$addr$0$lcssa
+ (local.get $$dec)
)
- (set_local $$s$0$lcssa
- (get_local $$incdec$ptr)
+ (local.set $$s$0$lcssa
+ (local.get $$incdec$ptr)
)
- (set_local $$tobool2$lcssa
- (get_local $$tobool2)
+ (local.set $$tobool2$lcssa
+ (local.get $$tobool2)
)
- (set_local $label
+ (local.set $label
(i32.const 5)
)
(br $while-out)
@@ -1298,16 +1298,16 @@
)
)
(block
- (set_local $$n$addr$0$lcssa
- (get_local $$n)
+ (local.set $$n$addr$0$lcssa
+ (local.get $$n)
)
- (set_local $$s$0$lcssa
- (get_local $$src)
+ (local.set $$s$0$lcssa
+ (local.get $$src)
)
- (set_local $$tobool2$lcssa
- (get_local $$tobool241)
+ (local.set $$tobool2$lcssa
+ (local.get $$tobool241)
)
- (set_local $label
+ (local.set $label
(i32.const 5)
)
)
@@ -1315,28 +1315,28 @@
)
(if
(i32.eq
- (get_local $label)
+ (local.get $label)
(i32.const 5)
)
(if
- (get_local $$tobool2$lcssa)
+ (local.get $$tobool2$lcssa)
(block
- (set_local $$n$addr$0$lcssa52
- (get_local $$n$addr$0$lcssa)
+ (local.set $$n$addr$0$lcssa52
+ (local.get $$n$addr$0$lcssa)
)
- (set_local $$s$0$lcssa53
- (get_local $$s$0$lcssa)
+ (local.set $$s$0$lcssa53
+ (local.get $$s$0$lcssa)
)
- (set_local $label
+ (local.set $label
(i32.const 6)
)
)
(block
- (set_local $$n$addr$3
+ (local.set $$n$addr$3
(i32.const 0)
)
- (set_local $$s$2
- (get_local $$s$0$lcssa)
+ (local.set $$s$2
+ (local.get $$s$0$lcssa)
)
)
)
@@ -1344,33 +1344,33 @@
(block $label$break$L8
(if
(i32.eq
- (get_local $label)
+ (local.get $label)
(i32.const 6)
)
(block
- (set_local $$4
+ (local.set $$4
(i32.load8_s
- (get_local $$s$0$lcssa53)
+ (local.get $$s$0$lcssa53)
)
)
- (set_local $$5
+ (local.set $$5
(i32.and
- (get_local $$c)
+ (local.get $$c)
(i32.const 255)
)
)
- (set_local $$cmp8
+ (local.set $$cmp8
(i32.eq
(i32.shr_s
(i32.shl
- (get_local $$4)
+ (local.get $$4)
(i32.const 24)
)
(i32.const 24)
)
(i32.shr_s
(i32.shl
- (get_local $$5)
+ (local.get $$5)
(i32.const 24)
)
(i32.const 24)
@@ -1378,123 +1378,123 @@
)
)
(if
- (get_local $$cmp8)
+ (local.get $$cmp8)
(block
- (set_local $$n$addr$3
- (get_local $$n$addr$0$lcssa52)
+ (local.set $$n$addr$3
+ (local.get $$n$addr$0$lcssa52)
)
- (set_local $$s$2
- (get_local $$s$0$lcssa53)
+ (local.set $$s$2
+ (local.get $$s$0$lcssa53)
)
)
(block
- (set_local $$mul
+ (local.set $$mul
(i32.mul
- (get_local $$conv1)
+ (local.get $$conv1)
(i32.const 16843009)
)
)
- (set_local $$cmp1132
+ (local.set $$cmp1132
(i32.gt_u
- (get_local $$n$addr$0$lcssa52)
+ (local.get $$n$addr$0$lcssa52)
(i32.const 3)
)
)
(block $label$break$L11
(if
- (get_local $$cmp1132)
+ (local.get $$cmp1132)
(block
- (set_local $$n$addr$133
- (get_local $$n$addr$0$lcssa52)
+ (local.set $$n$addr$133
+ (local.get $$n$addr$0$lcssa52)
)
- (set_local $$w$034
- (get_local $$s$0$lcssa53)
+ (local.set $$w$034
+ (local.get $$s$0$lcssa53)
)
(loop $while-in3
(block $while-out2
- (set_local $$6
+ (local.set $$6
(i32.load
- (get_local $$w$034)
+ (local.get $$w$034)
)
)
- (set_local $$xor
+ (local.set $$xor
(i32.xor
- (get_local $$6)
- (get_local $$mul)
+ (local.get $$6)
+ (local.get $$mul)
)
)
- (set_local $$sub
+ (local.set $$sub
(i32.add
- (get_local $$xor)
+ (local.get $$xor)
(i32.const -16843009)
)
)
- (set_local $$neg
+ (local.set $$neg
(i32.and
- (get_local $$xor)
+ (local.get $$xor)
(i32.const -2139062144)
)
)
- (set_local $$and15
+ (local.set $$and15
(i32.xor
- (get_local $$neg)
+ (local.get $$neg)
(i32.const -2139062144)
)
)
- (set_local $$and16
+ (local.set $$and16
(i32.and
- (get_local $$and15)
- (get_local $$sub)
+ (local.get $$and15)
+ (local.get $$sub)
)
)
- (set_local $$lnot
+ (local.set $$lnot
(i32.eq
- (get_local $$and16)
+ (local.get $$and16)
(i32.const 0)
)
)
(if
(i32.eqz
- (get_local $$lnot)
+ (local.get $$lnot)
)
(br $while-out2)
)
- (set_local $$incdec$ptr21
+ (local.set $$incdec$ptr21
(i32.add
- (get_local $$w$034)
+ (local.get $$w$034)
(i32.const 4)
)
)
- (set_local $$sub22
+ (local.set $$sub22
(i32.add
- (get_local $$n$addr$133)
+ (local.get $$n$addr$133)
(i32.const -4)
)
)
- (set_local $$cmp11
+ (local.set $$cmp11
(i32.gt_u
- (get_local $$sub22)
+ (local.get $$sub22)
(i32.const 3)
)
)
(if
- (get_local $$cmp11)
+ (local.get $$cmp11)
(block
- (set_local $$n$addr$133
- (get_local $$sub22)
+ (local.set $$n$addr$133
+ (local.get $$sub22)
)
- (set_local $$w$034
- (get_local $$incdec$ptr21)
+ (local.set $$w$034
+ (local.get $$incdec$ptr21)
)
)
(block
- (set_local $$n$addr$1$lcssa
- (get_local $$sub22)
+ (local.set $$n$addr$1$lcssa
+ (local.get $$sub22)
)
- (set_local $$w$0$lcssa
- (get_local $$incdec$ptr21)
+ (local.set $$w$0$lcssa
+ (local.get $$incdec$ptr21)
)
- (set_local $label
+ (local.set $label
(i32.const 11)
)
(br $label$break$L11)
@@ -1503,21 +1503,21 @@
(br $while-in3)
)
)
- (set_local $$n$addr$227
- (get_local $$n$addr$133)
+ (local.set $$n$addr$227
+ (local.get $$n$addr$133)
)
- (set_local $$s$128
- (get_local $$w$034)
+ (local.set $$s$128
+ (local.get $$w$034)
)
)
(block
- (set_local $$n$addr$1$lcssa
- (get_local $$n$addr$0$lcssa52)
+ (local.set $$n$addr$1$lcssa
+ (local.get $$n$addr$0$lcssa52)
)
- (set_local $$w$0$lcssa
- (get_local $$s$0$lcssa53)
+ (local.set $$w$0$lcssa
+ (local.get $$s$0$lcssa53)
)
- (set_local $label
+ (local.set $label
(i32.const 11)
)
)
@@ -1525,33 +1525,33 @@
)
(if
(i32.eq
- (get_local $label)
+ (local.get $label)
(i32.const 11)
)
(block
- (set_local $$tobool2526
+ (local.set $$tobool2526
(i32.eq
- (get_local $$n$addr$1$lcssa)
+ (local.get $$n$addr$1$lcssa)
(i32.const 0)
)
)
(if
- (get_local $$tobool2526)
+ (local.get $$tobool2526)
(block
- (set_local $$n$addr$3
+ (local.set $$n$addr$3
(i32.const 0)
)
- (set_local $$s$2
- (get_local $$w$0$lcssa)
+ (local.set $$s$2
+ (local.get $$w$0$lcssa)
)
(br $label$break$L8)
)
(block
- (set_local $$n$addr$227
- (get_local $$n$addr$1$lcssa)
+ (local.set $$n$addr$227
+ (local.get $$n$addr$1$lcssa)
)
- (set_local $$s$128
- (get_local $$w$0$lcssa)
+ (local.set $$s$128
+ (local.get $$w$0$lcssa)
)
)
)
@@ -1559,23 +1559,23 @@
)
(loop $while-in5
(block $while-out4
- (set_local $$7
+ (local.set $$7
(i32.load8_s
- (get_local $$s$128)
+ (local.get $$s$128)
)
)
- (set_local $$cmp28
+ (local.set $$cmp28
(i32.eq
(i32.shr_s
(i32.shl
- (get_local $$7)
+ (local.get $$7)
(i32.const 24)
)
(i32.const 24)
)
(i32.shr_s
(i32.shl
- (get_local $$5)
+ (local.get $$5)
(i32.const 24)
)
(i32.const 24)
@@ -1583,52 +1583,52 @@
)
)
(if
- (get_local $$cmp28)
+ (local.get $$cmp28)
(block
- (set_local $$n$addr$3
- (get_local $$n$addr$227)
+ (local.set $$n$addr$3
+ (local.get $$n$addr$227)
)
- (set_local $$s$2
- (get_local $$s$128)
+ (local.set $$s$2
+ (local.get $$s$128)
)
(br $label$break$L8)
)
)
- (set_local $$incdec$ptr33
+ (local.set $$incdec$ptr33
(i32.add
- (get_local $$s$128)
+ (local.get $$s$128)
(i32.const 1)
)
)
- (set_local $$dec34
+ (local.set $$dec34
(i32.add
- (get_local $$n$addr$227)
+ (local.get $$n$addr$227)
(i32.const -1)
)
)
- (set_local $$tobool25
+ (local.set $$tobool25
(i32.eq
- (get_local $$dec34)
+ (local.get $$dec34)
(i32.const 0)
)
)
(if
- (get_local $$tobool25)
+ (local.get $$tobool25)
(block
- (set_local $$n$addr$3
+ (local.set $$n$addr$3
(i32.const 0)
)
- (set_local $$s$2
- (get_local $$incdec$ptr33)
+ (local.set $$s$2
+ (local.get $$incdec$ptr33)
)
(br $while-out4)
)
(block
- (set_local $$n$addr$227
- (get_local $$dec34)
+ (local.set $$n$addr$227
+ (local.get $$dec34)
)
- (set_local $$s$128
- (get_local $$incdec$ptr33)
+ (local.set $$s$128
+ (local.get $$incdec$ptr33)
)
)
)
@@ -1640,21 +1640,21 @@
)
)
)
- (set_local $$tobool36
+ (local.set $$tobool36
(i32.ne
- (get_local $$n$addr$3)
+ (local.get $$n$addr$3)
(i32.const 0)
)
)
- (set_local $$cond
+ (local.set $$cond
(if (result i32)
- (get_local $$tobool36)
- (get_local $$s$2)
+ (local.get $$tobool36)
+ (local.get $$s$2)
(i32.const 0)
)
)
(return
- (get_local $$cond)
+ (local.get $$cond)
)
)
(func $switch64_big_condition1 (; 33 ;) (param $$x i64)
@@ -1663,23 +1663,23 @@
(block $switch-default
(block $switch-case
(br_table $switch-case $switch-default
- (i32.wrap/i64
+ (i32.wrap_i64
(block (result i64)
- (set_local $1
+ (local.set $1
(i64.sub
- (get_local $$x)
+ (local.get $$x)
(i64.const 9218868437227405312)
)
)
(br_if $switch-default
- (i32.wrap/i64
+ (i32.wrap_i64
(i64.shr_u
- (get_local $1)
+ (local.get $1)
(i64.const 32)
)
)
)
- (get_local $1)
+ (local.get $1)
)
)
)
@@ -1697,23 +1697,23 @@
(block $switch
(block $switch-case
(br_table $switch-case $switch
- (i32.wrap/i64
+ (i32.wrap_i64
(block (result i64)
- (set_local $1
+ (local.set $1
(i64.sub
- (get_local $$x)
+ (local.get $$x)
(i64.const 9218868437227405312)
)
)
(br_if $switch
- (i32.wrap/i64
+ (i32.wrap_i64
(i64.shr_u
- (get_local $1)
+ (local.get $1)
(i64.const 32)
)
)
)
- (get_local $1)
+ (local.get $1)
)
)
)
@@ -1844,60 +1844,60 @@
)
(func $legalstub$illegalParam (; 37 ;) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 f64)
(call $illegalParam
- (get_local $0)
+ (local.get $0)
(i64.or
- (i64.extend_u/i32
- (get_local $1)
+ (i64.extend_i32_u
+ (local.get $1)
)
(i64.shl
- (i64.extend_u/i32
- (get_local $2)
+ (i64.extend_i32_u
+ (local.get $2)
)
(i64.const 32)
)
)
- (get_local $3)
+ (local.get $3)
)
)
(func $legalstub$illegalResult (; 38 ;) (result i32)
(local $0 i64)
- (set_local $0
+ (local.set $0
(call $illegalResult)
)
(call $setTempRet0
- (i32.wrap/i64
+ (i32.wrap_i64
(i64.shr_u
- (get_local $0)
+ (local.get $0)
(i64.const 32)
)
)
)
- (i32.wrap/i64
- (get_local $0)
+ (i32.wrap_i64
+ (local.get $0)
)
)
(func $legalfunc$illegalImport (; 39 ;) (param $0 f64) (param $1 i64) (param $2 i32)
(call $legalimport$illegalImport
- (get_local $0)
- (i32.wrap/i64
- (get_local $1)
+ (local.get $0)
+ (i32.wrap_i64
+ (local.get $1)
)
- (i32.wrap/i64
+ (i32.wrap_i64
(i64.shr_u
- (get_local $1)
+ (local.get $1)
(i64.const 32)
)
)
- (get_local $2)
+ (local.get $2)
)
)
(func $legalfunc$illegalImportResult (; 40 ;) (result i64)
(i64.or
- (i64.extend_u/i32
+ (i64.extend_i32_u
(call $legalimport$illegalImportResult)
)
(i64.shl
- (i64.extend_u/i32
+ (i64.extend_i32_u
(call $getTempRet0)
)
(i64.const 32)
@@ -1905,21 +1905,21 @@
)
)
(func $legalfunc$_fabsf (; 41 ;) (param $0 f32) (result f32)
- (f32.demote/f64
+ (f32.demote_f64
(call $legalimport$_fabsf
- (f64.promote/f32
- (get_local $0)
+ (f64.promote_f32
+ (local.get $0)
)
)
)
)
(func $legalfunc$do_i64 (; 42 ;) (result i64)
(i64.or
- (i64.extend_u/i32
+ (i64.extend_i32_u
(call $legalimport$do_i64)
)
(i64.shl
- (i64.extend_u/i32
+ (i64.extend_i32_u
(call $getTempRet0)
)
(i64.const 32)