| 1 |
(module |
| 2 |
(type $sig (;0;) (func (param v128 v128 v128) (result v128))) |
| 3 |
(type (;1;) (func (result v128))) |
| 4 |
(type (;2;) (func)) |
| 5 |
(table (;0;) 2 2 funcref) |
| 6 |
(memory (;0;) 1) |
| 7 |
(export "as-br-retval" (func 0)) |
| 8 |
(export "as-br_if-retval" (func 1)) |
| 9 |
(export "as-return-retval" (func 2)) |
| 10 |
(export "as-if-then-retval" (func 3)) |
| 11 |
(export "as-if-else-retval" (func 4)) |
| 12 |
(export "as-call-param" (func 6)) |
| 13 |
(export "as-block-retval" (func 7)) |
| 14 |
(export "as-loop-retval" (func 8)) |
| 15 |
(export "as-drop-operand" (func 9)) |
| 16 |
(export "as-br-retval2" (func 10)) |
| 17 |
(export "as-br_if-retval2" (func 11)) |
| 18 |
(export "as-return-retval2" (func 12)) |
| 19 |
(export "as-if-then-retval2" (func 13)) |
| 20 |
(export "as-if-else-retval2" (func 14)) |
| 21 |
(export "as-call-param2" (func 16)) |
| 22 |
(export "as-call_indirect-param" (func 17)) |
| 23 |
(export "as-call_indirect-param2" (func 18)) |
| 24 |
(export "as-block-retval2" (func 19)) |
| 25 |
(export "as-loop-retval2" (func 20)) |
| 26 |
(export "as-drop-operand2" (func 21)) |
| 27 |
(elem (;0;) (table 0) (i32.const 0) func $f $f2) |
| 28 |
(func (;0;) (type 1) (result v128) |
| 29 |
block (result v128) ;; label = @1 |
| 30 |
v128.const i32x4 0x03020100 0x07060504 0x0b0a0908 0x0f0e0d0c |
| 31 |
br 0 (;@1;) |
| 32 |
end |
| 33 |
) |
| 34 |
(func (;1;) (type 1) (result v128) |
| 35 |
block (result v128) ;; label = @1 |
| 36 |
v128.const i32x4 0x00000000 0x00000001 0x00000002 0x00000003 |
| 37 |
i32.const 1 |
| 38 |
br_if 0 (;@1;) |
| 39 |
end |
| 40 |
) |
| 41 |
(func (;2;) (type 1) (result v128) |
| 42 |
v128.const i32x4 0x00000000 0x00000001 0x00000002 0x00000003 |
| 43 |
return |
| 44 |
) |
| 45 |
(func (;3;) (type 1) (result v128) |
| 46 |
i32.const 1 |
| 47 |
if (result v128) ;; label = @1 |
| 48 |
v128.const i32x4 0x00000000 0x00000001 0x00000002 0x00000003 |
| 49 |
else |
| 50 |
v128.const i32x4 0x00000003 0x00000002 0x00000001 0x00000000 |
| 51 |
end |
| 52 |
) |
| 53 |
(func (;4;) (type 1) (result v128) |
| 54 |
i32.const 0 |
| 55 |
if (result v128) ;; label = @1 |
| 56 |
v128.const i32x4 0x00000000 0x00000001 0x00000002 0x00000003 |
| 57 |
else |
| 58 |
v128.const i32x4 0x00000003 0x00000002 0x00000001 0x00000000 |
| 59 |
end |
| 60 |
) |
| 61 |
(func $f (;5;) (type $sig) (param v128 v128 v128) (result v128) |
| 62 |
v128.const i32x4 0x00000000 0x00000001 0x00000002 0x00000003 |
| 63 |
) |
| 64 |
(func (;6;) (type 1) (result v128) |
| 65 |
v128.const i32x4 0x00000000 0x00000001 0x00000002 0x00000003 |
| 66 |
v128.const i32x4 0x00000000 0x00000001 0x00000002 0x00000003 |
| 67 |
v128.const i32x4 0x00000000 0x00000001 0x00000002 0x00000003 |
| 68 |
call $f |
| 69 |
) |
| 70 |
(func (;7;) (type 1) (result v128) |
| 71 |
block (result v128) ;; label = @1 |
| 72 |
v128.const i32x4 0x00000000 0x00000001 0x00000002 0x00000003 |
| 73 |
end |
| 74 |
) |
| 75 |
(func (;8;) (type 1) (result v128) |
| 76 |
loop (result v128) ;; label = @1 |
| 77 |
v128.const i32x4 0x00000000 0x00000001 0x00000002 0x00000003 |
| 78 |
end |
| 79 |
) |
| 80 |
(func (;9;) (type 2) |
| 81 |
v128.const i32x4 0x00000000 0x00000001 0x00000002 0x00000003 |
| 82 |
drop |
| 83 |
) |
| 84 |
(func (;10;) (type 1) (result v128) |
| 85 |
block (result v128) ;; label = @1 |
| 86 |
v128.const i32x4 0x07060504 0x03020100 0x0f0e0d0c 0x0b0a0908 |
| 87 |
br 0 (;@1;) |
| 88 |
end |
| 89 |
) |
| 90 |
(func (;11;) (type 1) (result v128) |
| 91 |
block (result v128) ;; label = @1 |
| 92 |
v128.const i32x4 0x00000000 0x00000000 0x00000001 0x00000000 |
| 93 |
i32.const 1 |
| 94 |
br_if 0 (;@1;) |
| 95 |
end |
| 96 |
) |
| 97 |
(func (;12;) (type 1) (result v128) |
| 98 |
v128.const i32x4 0x00000000 0x00000000 0x00000001 0x00000000 |
| 99 |
return |
| 100 |
) |
| 101 |
(func (;13;) (type 1) (result v128) |
| 102 |
i32.const 1 |
| 103 |
if (result v128) ;; label = @1 |
| 104 |
v128.const i32x4 0x00000000 0x00000000 0x00000001 0x00000000 |
| 105 |
else |
| 106 |
v128.const i32x4 0x00000001 0x00000000 0x00000000 0x00000000 |
| 107 |
end |
| 108 |
) |
| 109 |
(func (;14;) (type 1) (result v128) |
| 110 |
i32.const 0 |
| 111 |
if (result v128) ;; label = @1 |
| 112 |
v128.const i32x4 0x00000000 0x00000000 0x00000001 0x00000000 |
| 113 |
else |
| 114 |
v128.const i32x4 0x00000001 0x00000000 0x00000000 0x00000000 |
| 115 |
end |
| 116 |
) |
| 117 |
(func $f2 (;15;) (type $sig) (param v128 v128 v128) (result v128) |
| 118 |
v128.const i32x4 0x00000000 0x00000000 0x00000001 0x00000000 |
| 119 |
) |
| 120 |
(func (;16;) (type 1) (result v128) |
| 121 |
v128.const i32x4 0x00000000 0x00000000 0x00000001 0x00000000 |
| 122 |
v128.const i32x4 0x00000000 0x00000000 0x00000001 0x00000000 |
| 123 |
v128.const i32x4 0x00000000 0x00000000 0x00000001 0x00000000 |
| 124 |
call $f2 |
| 125 |
) |
| 126 |
(func (;17;) (type 1) (result v128) |
| 127 |
v128.const i32x4 0x00000000 0x00000001 0x00000002 0x00000003 |
| 128 |
v128.const i32x4 0x00000000 0x00000001 0x00000002 0x00000003 |
| 129 |
v128.const i32x4 0x00000000 0x00000001 0x00000002 0x00000003 |
| 130 |
i32.const 0 |
| 131 |
call_indirect (type $sig) |
| 132 |
) |
| 133 |
(func (;18;) (type 1) (result v128) |
| 134 |
v128.const i32x4 0x00000000 0x00000000 0x00000001 0x00000000 |
| 135 |
v128.const i32x4 0x00000000 0x00000000 0x00000001 0x00000000 |
| 136 |
v128.const i32x4 0x00000000 0x00000000 0x00000001 0x00000000 |
| 137 |
i32.const 1 |
| 138 |
call_indirect (type $sig) |
| 139 |
) |
| 140 |
(func (;19;) (type 1) (result v128) |
| 141 |
block (result v128) ;; label = @1 |
| 142 |
v128.const i32x4 0x00000000 0x00000000 0x00000001 0x00000000 |
| 143 |
end |
| 144 |
) |
| 145 |
(func (;20;) (type 1) (result v128) |
| 146 |
loop (result v128) ;; label = @1 |
| 147 |
v128.const i32x4 0x00000000 0x00000000 0x00000001 0x00000000 |
| 148 |
end |
| 149 |
) |
| 150 |
(func (;21;) (type 2) |
| 151 |
v128.const i32x4 0x00000000 0x00000000 0x00000001 0x00000000 |
| 152 |
drop |
| 153 |
) |
| 154 |
) |