|
14 | 14 | ;; RUN: wasm-dis %t3.wasm | filecheck %s --check-prefix=MOD3-OPTIONS |
15 | 15 |
|
16 | 16 | (module |
17 | | - ;; PRIMARY: (type $ret-i64 (func (result i64))) |
18 | | - |
19 | 17 | ;; PRIMARY: (type $ret-i32 (func (result i32))) |
20 | | - ;; PRIMARY-OPTIONS: (type $ret-i64 (func (result i64))) |
21 | | - |
22 | 18 | ;; PRIMARY-OPTIONS: (type $ret-i32 (func (result i32))) |
23 | 19 | (type $ret-i32 (func (result i32))) |
| 20 | + ;; PRIMARY: (type $ret-i64 (func (result i64))) |
| 21 | + ;; PRIMARY-OPTIONS: (type $ret-i64 (func (result i64))) |
24 | 22 | (type $ret-i64 (func (result i64))) |
25 | 23 | ;; PRIMARY: (type $ret-f32 (func (result f32))) |
26 | 24 | ;; PRIMARY-OPTIONS: (type $ret-f32 (func (result f32))) |
|
206 | 204 |
|
207 | 205 | ;; MOD3: (type $2 (func (result f32))) |
208 | 206 |
|
209 | | - ;; MOD3: (import "" "table_6" (table $timport$0 1 funcref)) |
| 207 | + ;; MOD3: (import "" "table_5" (table $timport$0 1 funcref)) |
210 | 208 |
|
211 | 209 | ;; MOD3: (import "" "trampoline_A" (func $trampoline_A (type $0) (result i32))) |
212 | 210 |
|
213 | | - ;; MOD3: (import "" "trampoline_B" (func $trampoline_B (type $1) (result i64))) |
| 211 | + ;; MOD3: (import "" "B" (func $trampoline_B (type $1) (result i64))) |
214 | 212 |
|
215 | 213 | ;; MOD3: (elem $0 (i32.const 0) $C) |
216 | 214 |
|
|
240 | 238 |
|
241 | 239 | ;; MOD3-OPTIONS: (type $2 (func (result f32))) |
242 | 240 |
|
243 | | - ;; MOD3-OPTIONS: (import "custom_env" "table_6" (table $timport$0 1 funcref)) |
| 241 | + ;; MOD3-OPTIONS: (import "custom_env" "table_5" (table $timport$0 1 funcref)) |
244 | 242 |
|
245 | 243 | ;; MOD3-OPTIONS: (import "custom_env" "trampoline_A" (func $trampoline_A (type $0) (result i32))) |
246 | 244 |
|
247 | | - ;; MOD3-OPTIONS: (import "custom_env" "trampoline_B" (func $trampoline_B (type $1) (result i64))) |
| 245 | + ;; MOD3-OPTIONS: (import "custom_env" "B" (func $trampoline_B (type $1) (result i64))) |
248 | 246 |
|
249 | 247 | ;; MOD3-OPTIONS: (elem $0 (i32.const 0) $C) |
250 | 248 |
|
|
289 | 287 | ) |
290 | 288 | ;; PRIMARY: (import "placeholder" "0" (func $placeholder_0 (type $ret-i32) (result i32))) |
291 | 289 |
|
292 | | -;; PRIMARY: (import "placeholder" "0" (func $placeholder_0_5 (type $ret-i64) (result i64))) |
| 290 | +;; PRIMARY: (import "placeholder" "0" (func $placeholder_0_4 (type $ret-i64) (result i64))) |
293 | 291 |
|
294 | | -;; PRIMARY: (import "placeholder" "0" (func $placeholder_0_6 (type $ret-f32) (result f32))) |
| 292 | +;; PRIMARY: (import "placeholder" "0" (func $placeholder_0_5 (type $ret-f32) (result f32))) |
295 | 293 |
|
296 | 294 | ;; PRIMARY: (table $0 1 funcref) |
297 | 295 |
|
|
301 | 299 |
|
302 | 300 | ;; PRIMARY: (elem $0 (table $0) (i32.const 0) func $placeholder_0) |
303 | 301 |
|
304 | | -;; PRIMARY: (elem $1 (table $1) (i32.const 0) func $placeholder_0_5) |
| 302 | +;; PRIMARY: (elem $1 (table $1) (i32.const 0) func $placeholder_0_4) |
305 | 303 |
|
306 | | -;; PRIMARY: (elem $2 (table $2) (i32.const 0) func $placeholder_0_6) |
| 304 | +;; PRIMARY: (elem $2 (table $2) (i32.const 0) func $placeholder_0_5) |
307 | 305 |
|
308 | | -;; PRIMARY: (export "B" (func $1)) |
| 306 | +;; PRIMARY: (export "B" (func $trampoline_B)) |
309 | 307 |
|
310 | | -;; PRIMARY: (export "C" (func $3)) |
| 308 | +;; PRIMARY: (export "C" (func $trampoline_C)) |
311 | 309 |
|
312 | 310 | ;; PRIMARY: (export "table" (table $0)) |
313 | 311 |
|
314 | 312 | ;; PRIMARY: (export "trampoline_A" (func $trampoline_A)) |
315 | 313 |
|
316 | 314 | ;; PRIMARY: (export "table_4" (table $1)) |
317 | 315 |
|
318 | | -;; PRIMARY: (export "trampoline_B" (func $trampoline_B)) |
319 | | - |
320 | | -;; PRIMARY: (export "table_6" (table $2)) |
| 316 | +;; PRIMARY: (export "table_5" (table $2)) |
321 | 317 |
|
322 | 318 | ;; PRIMARY: (func $trampoline_A (type $ret-i32) (result i32) |
323 | 319 | ;; PRIMARY-NEXT: (call_indirect $0 (type $ret-i32) |
324 | 320 | ;; PRIMARY-NEXT: (i32.const 0) |
325 | 321 | ;; PRIMARY-NEXT: ) |
326 | 322 | ;; PRIMARY-NEXT: ) |
327 | 323 |
|
328 | | -;; PRIMARY: (func $1 (type $ret-i64) (result i64) |
329 | | -;; PRIMARY-NEXT: (call_indirect $1 (type $ret-i64) |
330 | | -;; PRIMARY-NEXT: (i32.const 0) |
331 | | -;; PRIMARY-NEXT: ) |
332 | | -;; PRIMARY-NEXT: ) |
333 | | - |
334 | 324 | ;; PRIMARY: (func $trampoline_B (type $ret-i64) (result i64) |
335 | 325 | ;; PRIMARY-NEXT: (call_indirect $1 (type $ret-i64) |
336 | 326 | ;; PRIMARY-NEXT: (i32.const 0) |
337 | 327 | ;; PRIMARY-NEXT: ) |
338 | 328 | ;; PRIMARY-NEXT: ) |
339 | 329 |
|
340 | | -;; PRIMARY: (func $3 (type $ret-f32) (result f32) |
| 330 | +;; PRIMARY: (func $trampoline_C (type $ret-f32) (result f32) |
341 | 331 | ;; PRIMARY-NEXT: (call_indirect $2 (type $ret-f32) |
342 | 332 | ;; PRIMARY-NEXT: (i32.const 0) |
343 | 333 | ;; PRIMARY-NEXT: ) |
|
355 | 345 |
|
356 | 346 | ;; PRIMARY-OPTIONS: (elem $2 (table $2) (i32.const 0) funcref (item (ref.null nofunc))) |
357 | 347 |
|
358 | | -;; PRIMARY-OPTIONS: (export "B" (func $1)) |
| 348 | +;; PRIMARY-OPTIONS: (export "B" (func $trampoline_B)) |
359 | 349 |
|
360 | | -;; PRIMARY-OPTIONS: (export "C" (func $3)) |
| 350 | +;; PRIMARY-OPTIONS: (export "C" (func $trampoline_C)) |
361 | 351 |
|
362 | 352 | ;; PRIMARY-OPTIONS: (export "table" (table $0)) |
363 | 353 |
|
364 | 354 | ;; PRIMARY-OPTIONS: (export "trampoline_A" (func $trampoline_A)) |
365 | 355 |
|
366 | 356 | ;; PRIMARY-OPTIONS: (export "table_4" (table $1)) |
367 | 357 |
|
368 | | -;; PRIMARY-OPTIONS: (export "trampoline_B" (func $trampoline_B)) |
369 | | - |
370 | | -;; PRIMARY-OPTIONS: (export "table_6" (table $2)) |
| 358 | +;; PRIMARY-OPTIONS: (export "table_5" (table $2)) |
371 | 359 |
|
372 | 360 | ;; PRIMARY-OPTIONS: (func $trampoline_A (type $ret-i32) (result i32) |
373 | 361 | ;; PRIMARY-OPTIONS-NEXT: (call_indirect $0 (type $ret-i32) |
374 | 362 | ;; PRIMARY-OPTIONS-NEXT: (i32.const 0) |
375 | 363 | ;; PRIMARY-OPTIONS-NEXT: ) |
376 | 364 | ;; PRIMARY-OPTIONS-NEXT: ) |
377 | 365 |
|
378 | | -;; PRIMARY-OPTIONS: (func $1 (type $ret-i64) (result i64) |
379 | | -;; PRIMARY-OPTIONS-NEXT: (call_indirect $1 (type $ret-i64) |
380 | | -;; PRIMARY-OPTIONS-NEXT: (i32.const 0) |
381 | | -;; PRIMARY-OPTIONS-NEXT: ) |
382 | | -;; PRIMARY-OPTIONS-NEXT: ) |
383 | | - |
384 | 366 | ;; PRIMARY-OPTIONS: (func $trampoline_B (type $ret-i64) (result i64) |
385 | 367 | ;; PRIMARY-OPTIONS-NEXT: (call_indirect $1 (type $ret-i64) |
386 | 368 | ;; PRIMARY-OPTIONS-NEXT: (i32.const 0) |
387 | 369 | ;; PRIMARY-OPTIONS-NEXT: ) |
388 | 370 | ;; PRIMARY-OPTIONS-NEXT: ) |
389 | 371 |
|
390 | | -;; PRIMARY-OPTIONS: (func $3 (type $ret-f32) (result f32) |
| 372 | +;; PRIMARY-OPTIONS: (func $trampoline_C (type $ret-f32) (result f32) |
391 | 373 | ;; PRIMARY-OPTIONS-NEXT: (call_indirect $2 (type $ret-f32) |
392 | 374 | ;; PRIMARY-OPTIONS-NEXT: (i32.const 0) |
393 | 375 | ;; PRIMARY-OPTIONS-NEXT: ) |
|
0 commit comments