| 1 |
(module |
| 2 |
(type $func_i32 (;0;) (func (param i32))) |
| 3 |
(type $func_i64 (;1;) (func (param i64))) |
| 4 |
(type $func_f32 (;2;) (func (param f32))) |
| 5 |
(type $func_f64 (;3;) (func (param f64))) |
| 6 |
(type $forward (;4;) (func (param i32))) |
| 7 |
(type (;5;) (func (param i32 f32))) |
| 8 |
(type (;6;) (func (param f64 f64))) |
| 9 |
(type (;7;) (func (param i64) (result i64))) |
| 10 |
(import "spectest" "print_i32" (func (;0;) (type $func_i32))) |
| 11 |
(import "spectest" "print_i64" (func (;1;) (type $func_i64))) |
| 12 |
(import "spectest" "print_i32" (func $print_i32 (;2;) (type $func_i32))) |
| 13 |
(import "spectest" "print_i64" (func $print_i64 (;3;) (type $func_i64))) |
| 14 |
(import "spectest" "print_f32" (func $print_f32 (;4;) (type $func_f32))) |
| 15 |
(import "spectest" "print_f64" (func $print_f64 (;5;) (type $func_f64))) |
| 16 |
(import "spectest" "print_i32_f32" (func $print_i32_f32 (;6;) (type 5))) |
| 17 |
(import "spectest" "print_f64_f64" (func $print_f64_f64 (;7;) (type 6))) |
| 18 |
(import "spectest" "print_i32" (func $print_i32-2 (;8;) (type $func_i32))) |
| 19 |
(import "spectest" "print_f64" (func $print_f64-2 (;9;) (type $func_f64))) |
| 20 |
(import "test" "func-i64->i64" (func $i64->i64 (;10;) (type 7))) |
| 21 |
(import "spectest" "print_i32" (func (;11;) (type $func_i32))) |
| 22 |
(import "spectest" "print_i32" (func $p (;12;) (type $func_i32))) |
| 23 |
(import "spectest" "print_i32" (func (;13;) (type $func_i32))) |
| 24 |
(import "spectest" "print_i32" (func (;14;) (type $func_i32))) |
| 25 |
(import "spectest" "print_i32" (func (;15;) (type $func_i32))) |
| 26 |
(import "spectest" "print_i32" (func (;16;) (type $forward))) |
| 27 |
(import "spectest" "print_i32" (func (;17;) (type $forward))) |
| 28 |
(table (;0;) 2 2 funcref) |
| 29 |
(export "p1" (func 11)) |
| 30 |
(export "p2" (func $p)) |
| 31 |
(export "p3" (func 13)) |
| 32 |
(export "p4" (func 13)) |
| 33 |
(export "p5" (func 14)) |
| 34 |
(export "p6" (func 15)) |
| 35 |
(export "print32" (func 18)) |
| 36 |
(export "print64" (func 19)) |
| 37 |
(elem (;0;) (table 0) (i32.const 0) func $print_i32 $print_f64) |
| 38 |
(func (;18;) (type $func_i32) (param $i i32) |
| 39 |
(local $x f32) |
| 40 |
local.get $i |
| 41 |
f32.convert_i32_s |
| 42 |
local.set $x |
| 43 |
local.get $i |
| 44 |
call 0 |
| 45 |
local.get $i |
| 46 |
i32.const 1 |
| 47 |
i32.add |
| 48 |
f32.const 0x1.5p+5 (;=42;) |
| 49 |
call $print_i32_f32 |
| 50 |
local.get $i |
| 51 |
call $print_i32 |
| 52 |
local.get $i |
| 53 |
call $print_i32-2 |
| 54 |
local.get $x |
| 55 |
call $print_f32 |
| 56 |
local.get $i |
| 57 |
i32.const 0 |
| 58 |
call_indirect (type $func_i32) |
| 59 |
) |
| 60 |
(func (;19;) (type $func_i64) (param $i i64) |
| 61 |
(local $x f64) |
| 62 |
local.get $i |
| 63 |
call $i64->i64 |
| 64 |
f64.convert_i64_s |
| 65 |
local.set $x |
| 66 |
local.get $i |
| 67 |
call 1 |
| 68 |
local.get $x |
| 69 |
f64.const 0x1p+0 (;=1;) |
| 70 |
f64.add |
| 71 |
f64.const 0x1.a8p+5 (;=53;) |
| 72 |
call $print_f64_f64 |
| 73 |
local.get $i |
| 74 |
call $print_i64 |
| 75 |
local.get $x |
| 76 |
call $print_f64 |
| 77 |
local.get $x |
| 78 |
call $print_f64-2 |
| 79 |
local.get $x |
| 80 |
i32.const 1 |
| 81 |
call_indirect (type $func_f64) |
| 82 |
) |
| 83 |
) |