diff options
Diffstat (limited to 'test/passes/fpcast-emu.txt')
-rw-r--r-- | test/passes/fpcast-emu.txt | 142 |
1 files changed, 71 insertions, 71 deletions
diff --git a/test/passes/fpcast-emu.txt b/test/passes/fpcast-emu.txt index 10e07a533..f80b7442c 100644 --- a/test/passes/fpcast-emu.txt +++ b/test/passes/fpcast-emu.txt @@ -12,23 +12,23 @@ (type $FUNCSIG$dff (func (param f32 f32) (result f64))) (type $FUNCSIG$idd (func (param f64 f64) (result i32))) (import "env" "imported_func" (func $imported-func (param i32 i64 f32 f64) (result f32))) - (table $0 10 10 anyfunc) + (table $0 10 10 funcref) (elem (i32.const 0) $byn$fpcast-emu$a $byn$fpcast-emu$b $byn$fpcast-emu$c $byn$fpcast-emu$d $byn$fpcast-emu$e $byn$fpcast-emu$e $byn$fpcast-emu$imported-func) (export "dynCall_dff" (func $dynCall_dff)) (export "dynCall_idd" (func $dynCall_idd)) (func $a (; 1 ;) (type $vijfd) (param $x i32) (param $y i64) (param $z f32) (param $w f64) (drop (call_indirect (type $FUNCSIG$jjjjjjjjjjjjjjjj) - (i64.extend_u/i32 + (i64.extend_i32_u (i32.const 1) ) (i64.const 2) - (i64.extend_u/i32 - (i32.reinterpret/f32 + (i64.extend_i32_u + (i32.reinterpret_f32 (f32.const 3) ) ) - (i64.reinterpret/f64 + (i64.reinterpret_f64 (f64.const 4) ) (i64.const 0) @@ -48,10 +48,10 @@ ) (func $b (; 2 ;) (type $jii) (param $x i32) (param $y i32) (result i64) (call_indirect (type $FUNCSIG$jjjjjjjjjjjjjjjj) - (i64.extend_u/i32 + (i64.extend_i32_u (i32.const 1) ) - (i64.extend_u/i32 + (i64.extend_i32_u (i32.const 2) ) (i64.const 0) @@ -71,8 +71,8 @@ ) ) (func $c (; 3 ;) (type $fjj) (param $x i64) (param $y i64) (result f32) - (f32.reinterpret/i32 - (i32.wrap/i64 + (f32.reinterpret_i32 + (i32.wrap_i64 (call_indirect (type $FUNCSIG$jjjjjjjjjjjjjjjj) (i64.const 1) (i64.const 2) @@ -95,15 +95,15 @@ ) ) (func $d (; 4 ;) (type $dff) (param $x f32) (param $y f32) (result f64) - (f64.reinterpret/i64 + (f64.reinterpret_i64 (call_indirect (type $FUNCSIG$jjjjjjjjjjjjjjjj) - (i64.extend_u/i32 - (i32.reinterpret/f32 + (i64.extend_i32_u + (i32.reinterpret_f32 (f32.const 1) ) ) - (i64.extend_u/i32 - (i32.reinterpret/f32 + (i64.extend_i32_u + (i32.reinterpret_f32 (f32.const 2) ) ) @@ -125,12 +125,12 @@ ) ) (func $e (; 5 ;) (type $idd) (param $x f64) (param $y f64) (result i32) - (i32.wrap/i64 + (i32.wrap_i64 (call_indirect (type $FUNCSIG$jjjjjjjjjjjjjjjj) - (i64.reinterpret/f64 + (i64.reinterpret_f64 (f64.const 1) ) - (i64.reinterpret/f64 + (i64.reinterpret_f64 (f64.const 2) ) (i64.const 0) @@ -151,16 +151,16 @@ ) ) (func $dynCall_dff (; 6 ;) (param $fptr i32) (param $0 f32) (param $1 f32) (result f64) - (f64.reinterpret/i64 + (f64.reinterpret_i64 (call_indirect (type $FUNCSIG$jjjjjjjjjjjjjjjj) - (i64.extend_u/i32 - (i32.reinterpret/f32 - (get_local $0) + (i64.extend_i32_u + (i32.reinterpret_f32 + (local.get $0) ) ) - (i64.extend_u/i32 - (i32.reinterpret/f32 - (get_local $1) + (i64.extend_i32_u + (i32.reinterpret_f32 + (local.get $1) ) ) (i64.const 0) @@ -176,18 +176,18 @@ (i64.const 0) (i64.const 0) (i64.const 0) - (get_local $fptr) + (local.get $fptr) ) ) ) (func $dynCall_idd (; 7 ;) (param $fptr i32) (param $0 f64) (param $1 f64) (result i32) - (i32.wrap/i64 + (i32.wrap_i64 (call_indirect (type $FUNCSIG$jjjjjjjjjjjjjjjj) - (i64.reinterpret/f64 - (get_local $0) + (i64.reinterpret_f64 + (local.get $0) ) - (i64.reinterpret/f64 - (get_local $1) + (i64.reinterpret_f64 + (local.get $1) ) (i64.const 0) (i64.const 0) @@ -202,90 +202,90 @@ (i64.const 0) (i64.const 0) (i64.const 0) - (get_local $fptr) + (local.get $fptr) ) ) ) (func $byn$fpcast-emu$a (; 8 ;) (type $FUNCSIG$jjjjjjjjjjjjjjjj) (param $0 i64) (param $1 i64) (param $2 i64) (param $3 i64) (param $4 i64) (param $5 i64) (param $6 i64) (param $7 i64) (param $8 i64) (param $9 i64) (param $10 i64) (param $11 i64) (param $12 i64) (param $13 i64) (param $14 i64) (result i64) (call $a - (i32.wrap/i64 - (get_local $0) + (i32.wrap_i64 + (local.get $0) ) - (get_local $1) - (f32.reinterpret/i32 - (i32.wrap/i64 - (get_local $2) + (local.get $1) + (f32.reinterpret_i32 + (i32.wrap_i64 + (local.get $2) ) ) - (f64.reinterpret/i64 - (get_local $3) + (f64.reinterpret_i64 + (local.get $3) ) ) (i64.const 0) ) (func $byn$fpcast-emu$b (; 9 ;) (type $FUNCSIG$jjjjjjjjjjjjjjjj) (param $0 i64) (param $1 i64) (param $2 i64) (param $3 i64) (param $4 i64) (param $5 i64) (param $6 i64) (param $7 i64) (param $8 i64) (param $9 i64) (param $10 i64) (param $11 i64) (param $12 i64) (param $13 i64) (param $14 i64) (result i64) (call $b - (i32.wrap/i64 - (get_local $0) + (i32.wrap_i64 + (local.get $0) ) - (i32.wrap/i64 - (get_local $1) + (i32.wrap_i64 + (local.get $1) ) ) ) (func $byn$fpcast-emu$c (; 10 ;) (type $FUNCSIG$jjjjjjjjjjjjjjjj) (param $0 i64) (param $1 i64) (param $2 i64) (param $3 i64) (param $4 i64) (param $5 i64) (param $6 i64) (param $7 i64) (param $8 i64) (param $9 i64) (param $10 i64) (param $11 i64) (param $12 i64) (param $13 i64) (param $14 i64) (result i64) - (i64.extend_u/i32 - (i32.reinterpret/f32 + (i64.extend_i32_u + (i32.reinterpret_f32 (call $c - (get_local $0) - (get_local $1) + (local.get $0) + (local.get $1) ) ) ) ) (func $byn$fpcast-emu$d (; 11 ;) (type $FUNCSIG$jjjjjjjjjjjjjjjj) (param $0 i64) (param $1 i64) (param $2 i64) (param $3 i64) (param $4 i64) (param $5 i64) (param $6 i64) (param $7 i64) (param $8 i64) (param $9 i64) (param $10 i64) (param $11 i64) (param $12 i64) (param $13 i64) (param $14 i64) (result i64) - (i64.reinterpret/f64 + (i64.reinterpret_f64 (call $d - (f32.reinterpret/i32 - (i32.wrap/i64 - (get_local $0) + (f32.reinterpret_i32 + (i32.wrap_i64 + (local.get $0) ) ) - (f32.reinterpret/i32 - (i32.wrap/i64 - (get_local $1) + (f32.reinterpret_i32 + (i32.wrap_i64 + (local.get $1) ) ) ) ) ) (func $byn$fpcast-emu$e (; 12 ;) (type $FUNCSIG$jjjjjjjjjjjjjjjj) (param $0 i64) (param $1 i64) (param $2 i64) (param $3 i64) (param $4 i64) (param $5 i64) (param $6 i64) (param $7 i64) (param $8 i64) (param $9 i64) (param $10 i64) (param $11 i64) (param $12 i64) (param $13 i64) (param $14 i64) (result i64) - (i64.extend_u/i32 + (i64.extend_i32_u (call $e - (f64.reinterpret/i64 - (get_local $0) + (f64.reinterpret_i64 + (local.get $0) ) - (f64.reinterpret/i64 - (get_local $1) + (f64.reinterpret_i64 + (local.get $1) ) ) ) ) (func $byn$fpcast-emu$imported-func (; 13 ;) (type $FUNCSIG$jjjjjjjjjjjjjjjj) (param $0 i64) (param $1 i64) (param $2 i64) (param $3 i64) (param $4 i64) (param $5 i64) (param $6 i64) (param $7 i64) (param $8 i64) (param $9 i64) (param $10 i64) (param $11 i64) (param $12 i64) (param $13 i64) (param $14 i64) (result i64) - (i64.extend_u/i32 - (i32.reinterpret/f32 + (i64.extend_i32_u + (i32.reinterpret_f32 (call $imported-func - (i32.wrap/i64 - (get_local $0) + (i32.wrap_i64 + (local.get $0) ) - (get_local $1) - (f32.reinterpret/i32 - (i32.wrap/i64 - (get_local $2) + (local.get $1) + (f32.reinterpret_i32 + (i32.wrap_i64 + (local.get $2) ) ) - (f64.reinterpret/i64 - (get_local $3) + (f64.reinterpret_i64 + (local.get $3) ) ) ) @@ -296,13 +296,13 @@ (type $0 (func (param i64))) (type $1 (func (param f32) (result i64))) (type $FUNCSIG$jjjjjjjjjjjjjjjj (func (param i64 i64 i64 i64 i64 i64 i64 i64 i64 i64 i64 i64 i64 i64 i64) (result i64))) - (table $0 42 42 anyfunc) + (table $0 42 42 funcref) (global $global$0 (mut i32) (i32.const 10)) (export "func_106" (func $0)) (func $0 (; 0 ;) (type $1) (param $0 f32) (result i64) (block $label$1 (result i64) (loop $label$2 - (set_global $global$0 + (global.set $global$0 (i32.const 0) ) (call_indirect (type $FUNCSIG$jjjjjjjjjjjjjjjj) |