|
7 | 7 | ;; RUN: wasm-dis %t3.wasm | filecheck %s --check-prefix=MOD3 |
8 | 8 |
|
9 | 9 | (module |
| 10 | + ;; PRIMARY: (type $ret-i64 (func (result i64))) |
| 11 | + |
| 12 | + ;; PRIMARY: (type $ret-f32 (func (result f32))) |
| 13 | + |
10 | 14 | ;; PRIMARY: (type $ret-i32 (func (result i32))) |
11 | 15 | (type $ret-i32 (func (result i32))) |
12 | | - ;; PRIMARY: (type $ret-i64 (func (result i64))) |
13 | 16 | (type $ret-i64 (func (result i64))) |
14 | | - ;; PRIMARY: (type $ret-f32 (func (result f32))) |
15 | 17 | (type $ret-f32 (func (result f32))) |
16 | 18 |
|
17 | 19 | ;; MOD1: (type $0 (func (result f32))) |
|
20 | 22 |
|
21 | 23 | ;; MOD1: (type $2 (func (result i32))) |
22 | 24 |
|
23 | | - ;; MOD1: (import "" "table" (table $timport$0 1 funcref)) |
| 25 | + ;; MOD1: (import "" "table" (table $timport$0 3 funcref)) |
24 | 26 |
|
25 | | - ;; MOD1: (import "" "std::operator<<\\28std::__2::basic_ostream<char\\2c\\20std::__2::char_traits<char>>&\\2c\\20wasm::Module&\\29" (func $std::operator<<\28std::__2::basic_ostream<char\2c\20std::__2::char_traits<char>>&\2c\20wasm::Module&\29 (result f32))) |
| 27 | + ;; MOD1: (import "" "trampoline_std::operator<<\\28std::__2::basic_ostream<char\\2c\\20std::__2::char_traits<char>>&\\2c\\20wasm::Module&\\29" (func $trampoline_std::operator<<\28std::__2::basic_ostream<char\2c\20std::__2::char_traits<char>>&\2c\20wasm::Module&\29 (result f32))) |
26 | 28 |
|
27 | | - ;; MOD1: (import "" "wasm::Literal::Literal\\28std::__2::array<wasm::Literal\\2c\\204ul>\\20const&\\29" (func $wasm::Literal::Literal\28std::__2::array<wasm::Literal\2c\204ul>\20const&\29 (result i64))) |
| 29 | + ;; MOD1: (import "" "trampoline_wasm::Literal::Literal\\28std::__2::array<wasm::Literal\\2c\\204ul>\\20const&\\29" (func $trampoline_wasm::Literal::Literal\28std::__2::array<wasm::Literal\2c\204ul>\20const&\29 (result i64))) |
28 | 30 |
|
29 | | - ;; MOD1: (elem $0 (i32.const 0) $wasm::Type::getFeatures\28\29\20const) |
| 31 | + ;; MOD1: (elem $0 (i32.const 2) $wasm::Type::getFeatures\28\29\20const) |
30 | 32 |
|
31 | 33 | ;; MOD1: (func $wasm::Type::getFeatures\28\29\20const (result i32) |
32 | 34 | ;; MOD1-NEXT: (drop |
|
36 | 38 | ;; MOD1-NEXT: ) |
37 | 39 | ;; MOD1-NEXT: (drop |
38 | 40 | ;; MOD1-NEXT: (call_ref $1 |
39 | | - ;; MOD1-NEXT: (ref.func $wasm::Literal::Literal\28std::__2::array<wasm::Literal\2c\204ul>\20const&\29) |
| 41 | + ;; MOD1-NEXT: (ref.func $trampoline_wasm::Literal::Literal\28std::__2::array<wasm::Literal\2c\204ul>\20const&\29) |
40 | 42 | ;; MOD1-NEXT: ) |
41 | 43 | ;; MOD1-NEXT: ) |
42 | 44 | ;; MOD1-NEXT: (drop |
43 | 45 | ;; MOD1-NEXT: (call_ref $0 |
44 | | - ;; MOD1-NEXT: (ref.func $std::operator<<\28std::__2::basic_ostream<char\2c\20std::__2::char_traits<char>>&\2c\20wasm::Module&\29) |
| 46 | + ;; MOD1-NEXT: (ref.func $trampoline_std::operator<<\28std::__2::basic_ostream<char\2c\20std::__2::char_traits<char>>&\2c\20wasm::Module&\29) |
45 | 47 | ;; MOD1-NEXT: ) |
46 | 48 | ;; MOD1-NEXT: ) |
47 | 49 | ;; MOD1-NEXT: (i32.const 0) |
|
71 | 73 |
|
72 | 74 | ;; MOD2: (type $2 (func (result i64))) |
73 | 75 |
|
74 | | - ;; MOD2: (import "" "table_4" (table $timport$0 1 funcref)) |
| 76 | + ;; MOD2: (import "" "table" (table $timport$0 3 funcref)) |
75 | 77 |
|
76 | | - ;; MOD2: (import "" "std::operator<<\\28std::__2::basic_ostream<char\\2c\\20std::__2::char_traits<char>>&\\2c\\20wasm::Module&\\29" (func $std::operator<<\28std::__2::basic_ostream<char\2c\20std::__2::char_traits<char>>&\2c\20wasm::Module&\29 (result f32))) |
| 78 | + ;; MOD2: (import "" "trampoline_std::operator<<\\28std::__2::basic_ostream<char\\2c\\20std::__2::char_traits<char>>&\\2c\\20wasm::Module&\\29" (func $trampoline_std::operator<<\28std::__2::basic_ostream<char\2c\20std::__2::char_traits<char>>&\2c\20wasm::Module&\29 (result f32))) |
77 | 79 |
|
78 | 80 | ;; MOD2: (import "" "trampoline_wasm::Type::getFeatures\\28\\29\\20const" (func $trampoline_wasm::Type::getFeatures\28\29\20const (result i32))) |
79 | 81 |
|
|
92 | 94 | ;; MOD2-NEXT: ) |
93 | 95 | ;; MOD2-NEXT: (drop |
94 | 96 | ;; MOD2-NEXT: (call_ref $0 |
95 | | - ;; MOD2-NEXT: (ref.func $std::operator<<\28std::__2::basic_ostream<char\2c\20std::__2::char_traits<char>>&\2c\20wasm::Module&\29) |
| 97 | + ;; MOD2-NEXT: (ref.func $trampoline_std::operator<<\28std::__2::basic_ostream<char\2c\20std::__2::char_traits<char>>&\2c\20wasm::Module&\29) |
96 | 98 | ;; MOD2-NEXT: ) |
97 | 99 | ;; MOD2-NEXT: ) |
98 | 100 | ;; MOD2-NEXT: (i64.const 0) |
|
122 | 124 |
|
123 | 125 | ;; MOD3: (type $2 (func (result f32))) |
124 | 126 |
|
125 | | - ;; MOD3: (import "" "table_5" (table $timport$0 1 funcref)) |
| 127 | + ;; MOD3: (import "" "table" (table $timport$0 3 funcref)) |
126 | 128 |
|
127 | | - ;; MOD3: (import "" "wasm::Literal::Literal\\28std::__2::array<wasm::Literal\\2c\\204ul>\\20const&\\29" (func $trampoline_wasm::Literal::Literal\28std::__2::array<wasm::Literal\2c\204ul>\20const&\29 (result i64))) |
| 129 | + ;; MOD3: (import "" "trampoline_wasm::Literal::Literal\\28std::__2::array<wasm::Literal\\2c\\204ul>\\20const&\\29" (func $trampoline_wasm::Literal::Literal\28std::__2::array<wasm::Literal\2c\204ul>\20const&\29 (result i64))) |
128 | 130 |
|
129 | 131 | ;; MOD3: (import "" "trampoline_wasm::Type::getFeatures\\28\\29\\20const" (func $trampoline_wasm::Type::getFeatures\28\29\20const (result i32))) |
130 | 132 |
|
131 | | - ;; MOD3: (elem $0 (i32.const 0) $std::operator<<\28std::__2::basic_ostream<char\2c\20std::__2::char_traits<char>>&\2c\20wasm::Module&\29) |
| 133 | + ;; MOD3: (elem $0 (i32.const 1) $std::operator<<\28std::__2::basic_ostream<char\2c\20std::__2::char_traits<char>>&\2c\20wasm::Module&\29) |
132 | 134 |
|
133 | 135 | ;; MOD3: (func $std::operator<<\28std::__2::basic_ostream<char\2c\20std::__2::char_traits<char>>&\2c\20wasm::Module&\29 (result f32) |
134 | 136 | ;; MOD3-NEXT: (drop |
|
167 | 169 | (f32.const 0) |
168 | 170 | ) |
169 | 171 | ) |
170 | | -;; PRIMARY: (import "placeholder" "0" (func $placeholder_0 (result i32))) |
| 172 | +;; PRIMARY: (import "placeholder" "0" (func $placeholder_0 (result i64))) |
171 | 173 |
|
172 | | -;; PRIMARY: (import "placeholder" "0" (func $placeholder_0_4 (result i64))) |
| 174 | +;; PRIMARY: (import "placeholder" "1" (func $placeholder_1 (result f32))) |
173 | 175 |
|
174 | | -;; PRIMARY: (import "placeholder" "0" (func $placeholder_0_5 (result f32))) |
| 176 | +;; PRIMARY: (import "placeholder" "2" (func $placeholder_2 (result i32))) |
175 | 177 |
|
176 | | -;; PRIMARY: (table $0 1 funcref) |
| 178 | +;; PRIMARY: (table $0 3 funcref) |
177 | 179 |
|
178 | | -;; PRIMARY: (table $1 1 funcref) |
| 180 | +;; PRIMARY: (elem $0 (i32.const 0) $placeholder_0 $placeholder_1 $placeholder_2) |
179 | 181 |
|
180 | | -;; PRIMARY: (table $2 1 funcref) |
| 182 | +;; PRIMARY: (export "trampoline_std::operator<<\\28std::__2::basic_ostream<char\\2c\\20std::__2::char_traits<char>>&\\2c\\20wasm::Module&\\29" (func $trampoline_std::operator<<\28std::__2::basic_ostream<char\2c\20std::__2::char_traits<char>>&\2c\20wasm::Module&\29)) |
181 | 183 |
|
182 | | -;; PRIMARY: (elem $0 (table $0) (i32.const 0) func $placeholder_0) |
183 | | - |
184 | | -;; PRIMARY: (elem $1 (table $1) (i32.const 0) func $placeholder_0_4) |
185 | | - |
186 | | -;; PRIMARY: (elem $2 (table $2) (i32.const 0) func $placeholder_0_5) |
187 | | - |
188 | | -;; PRIMARY: (export "std::operator<<\\28std::__2::basic_ostream<char\\2c\\20std::__2::char_traits<char>>&\\2c\\20wasm::Module&\\29" (func $trampoline_std::operator<<\28std::__2::basic_ostream<char\2c\20std::__2::char_traits<char>>&\2c\20wasm::Module&\29)) |
189 | | - |
190 | | -;; PRIMARY: (export "wasm::Literal::Literal\\28std::__2::array<wasm::Literal\\2c\\204ul>\\20const&\\29" (func $trampoline_wasm::Literal::Literal\28std::__2::array<wasm::Literal\2c\204ul>\20const&\29)) |
191 | | - |
192 | | -;; PRIMARY: (export "table" (table $0)) |
| 184 | +;; PRIMARY: (export "trampoline_wasm::Literal::Literal\\28std::__2::array<wasm::Literal\\2c\\204ul>\\20const&\\29" (func $trampoline_wasm::Literal::Literal\28std::__2::array<wasm::Literal\2c\204ul>\20const&\29)) |
193 | 185 |
|
194 | 186 | ;; PRIMARY: (export "trampoline_wasm::Type::getFeatures\\28\\29\\20const" (func $trampoline_wasm::Type::getFeatures\28\29\20const)) |
195 | 187 |
|
196 | | -;; PRIMARY: (export "table_4" (table $1)) |
197 | | - |
198 | | -;; PRIMARY: (export "table_5" (table $2)) |
| 188 | +;; PRIMARY: (export "table" (table $0)) |
199 | 189 |
|
200 | | -;; PRIMARY: (func $trampoline_wasm::Type::getFeatures\28\29\20const (result i32) |
201 | | -;; PRIMARY-NEXT: (call_indirect (type $ret-i32) |
| 190 | +;; PRIMARY: (func $trampoline_wasm::Literal::Literal\28std::__2::array<wasm::Literal\2c\204ul>\20const&\29 (result i64) |
| 191 | +;; PRIMARY-NEXT: (call_indirect (type $ret-i64) |
202 | 192 | ;; PRIMARY-NEXT: (i32.const 0) |
203 | 193 | ;; PRIMARY-NEXT: ) |
204 | 194 | ;; PRIMARY-NEXT: ) |
205 | 195 |
|
206 | | -;; PRIMARY: (func $trampoline_wasm::Literal::Literal\28std::__2::array<wasm::Literal\2c\204ul>\20const&\29 (result i64) |
207 | | -;; PRIMARY-NEXT: (call_indirect $1 (type $ret-i64) |
208 | | -;; PRIMARY-NEXT: (i32.const 0) |
| 196 | +;; PRIMARY: (func $trampoline_std::operator<<\28std::__2::basic_ostream<char\2c\20std::__2::char_traits<char>>&\2c\20wasm::Module&\29 (result f32) |
| 197 | +;; PRIMARY-NEXT: (call_indirect (type $ret-f32) |
| 198 | +;; PRIMARY-NEXT: (i32.const 1) |
209 | 199 | ;; PRIMARY-NEXT: ) |
210 | 200 | ;; PRIMARY-NEXT: ) |
211 | 201 |
|
212 | | -;; PRIMARY: (func $trampoline_std::operator<<\28std::__2::basic_ostream<char\2c\20std::__2::char_traits<char>>&\2c\20wasm::Module&\29 (result f32) |
213 | | -;; PRIMARY-NEXT: (call_indirect $2 (type $ret-f32) |
214 | | -;; PRIMARY-NEXT: (i32.const 0) |
| 202 | +;; PRIMARY: (func $trampoline_wasm::Type::getFeatures\28\29\20const (result i32) |
| 203 | +;; PRIMARY-NEXT: (call_indirect (type $ret-i32) |
| 204 | +;; PRIMARY-NEXT: (i32.const 2) |
215 | 205 | ;; PRIMARY-NEXT: ) |
216 | 206 | ;; PRIMARY-NEXT: ) |
0 commit comments