| 1 |
{ |
| 2 |
"source_filename": "tests/testsuite/proposals/wasm-3.0/load.wast", |
| 3 |
"commands": [ |
| 4 |
{ |
| 5 |
"type": "module", |
| 6 |
"line": 3, |
| 7 |
"filename": "load.0.wasm", |
| 8 |
"module_type": "binary" |
| 9 |
}, |
| 10 |
{ |
| 11 |
"type": "assert_return", |
| 12 |
"line": 18, |
| 13 |
"action": { |
| 14 |
"type": "invoke", |
| 15 |
"field": "load1", |
| 16 |
"args": [ |
| 17 |
{ |
| 18 |
"type": "i32", |
| 19 |
"value": "0" |
| 20 |
} |
| 21 |
] |
| 22 |
}, |
| 23 |
"expected": [ |
| 24 |
{ |
| 25 |
"type": "i64", |
| 26 |
"value": "1" |
| 27 |
} |
| 28 |
] |
| 29 |
}, |
| 30 |
{ |
| 31 |
"type": "assert_return", |
| 32 |
"line": 19, |
| 33 |
"action": { |
| 34 |
"type": "invoke", |
| 35 |
"field": "load2", |
| 36 |
"args": [ |
| 37 |
{ |
| 38 |
"type": "i32", |
| 39 |
"value": "0" |
| 40 |
} |
| 41 |
] |
| 42 |
}, |
| 43 |
"expected": [ |
| 44 |
{ |
| 45 |
"type": "i64", |
| 46 |
"value": "2" |
| 47 |
} |
| 48 |
] |
| 49 |
}, |
| 50 |
{ |
| 51 |
"type": "module", |
| 52 |
"line": 22, |
| 53 |
"name": "M", |
| 54 |
"filename": "load.1.wasm", |
| 55 |
"module_type": "binary" |
| 56 |
}, |
| 57 |
{ |
| 58 |
"type": "register", |
| 59 |
"line": 29, |
| 60 |
"as": "M" |
| 61 |
}, |
| 62 |
{ |
| 63 |
"type": "module", |
| 64 |
"line": 31, |
| 65 |
"filename": "load.2.wasm", |
| 66 |
"module_type": "binary" |
| 67 |
}, |
| 68 |
{ |
| 69 |
"type": "assert_return", |
| 70 |
"line": 46, |
| 71 |
"action": { |
| 72 |
"type": "invoke", |
| 73 |
"module": "M", |
| 74 |
"field": "read", |
| 75 |
"args": [ |
| 76 |
{ |
| 77 |
"type": "i32", |
| 78 |
"value": "20" |
| 79 |
} |
| 80 |
] |
| 81 |
}, |
| 82 |
"expected": [ |
| 83 |
{ |
| 84 |
"type": "i32", |
| 85 |
"value": "1" |
| 86 |
} |
| 87 |
] |
| 88 |
}, |
| 89 |
{ |
| 90 |
"type": "assert_return", |
| 91 |
"line": 47, |
| 92 |
"action": { |
| 93 |
"type": "invoke", |
| 94 |
"module": "M", |
| 95 |
"field": "read", |
| 96 |
"args": [ |
| 97 |
{ |
| 98 |
"type": "i32", |
| 99 |
"value": "21" |
| 100 |
} |
| 101 |
] |
| 102 |
}, |
| 103 |
"expected": [ |
| 104 |
{ |
| 105 |
"type": "i32", |
| 106 |
"value": "2" |
| 107 |
} |
| 108 |
] |
| 109 |
}, |
| 110 |
{ |
| 111 |
"type": "assert_return", |
| 112 |
"line": 48, |
| 113 |
"action": { |
| 114 |
"type": "invoke", |
| 115 |
"module": "M", |
| 116 |
"field": "read", |
| 117 |
"args": [ |
| 118 |
{ |
| 119 |
"type": "i32", |
| 120 |
"value": "22" |
| 121 |
} |
| 122 |
] |
| 123 |
}, |
| 124 |
"expected": [ |
| 125 |
{ |
| 126 |
"type": "i32", |
| 127 |
"value": "3" |
| 128 |
} |
| 129 |
] |
| 130 |
}, |
| 131 |
{ |
| 132 |
"type": "assert_return", |
| 133 |
"line": 49, |
| 134 |
"action": { |
| 135 |
"type": "invoke", |
| 136 |
"module": "M", |
| 137 |
"field": "read", |
| 138 |
"args": [ |
| 139 |
{ |
| 140 |
"type": "i32", |
| 141 |
"value": "23" |
| 142 |
} |
| 143 |
] |
| 144 |
}, |
| 145 |
"expected": [ |
| 146 |
{ |
| 147 |
"type": "i32", |
| 148 |
"value": "4" |
| 149 |
} |
| 150 |
] |
| 151 |
}, |
| 152 |
{ |
| 153 |
"type": "assert_return", |
| 154 |
"line": 50, |
| 155 |
"action": { |
| 156 |
"type": "invoke", |
| 157 |
"module": "M", |
| 158 |
"field": "read", |
| 159 |
"args": [ |
| 160 |
{ |
| 161 |
"type": "i32", |
| 162 |
"value": "24" |
| 163 |
} |
| 164 |
] |
| 165 |
}, |
| 166 |
"expected": [ |
| 167 |
{ |
| 168 |
"type": "i32", |
| 169 |
"value": "5" |
| 170 |
} |
| 171 |
] |
| 172 |
}, |
| 173 |
{ |
| 174 |
"type": "assert_return", |
| 175 |
"line": 52, |
| 176 |
"action": { |
| 177 |
"type": "invoke", |
| 178 |
"field": "read1", |
| 179 |
"args": [ |
| 180 |
{ |
| 181 |
"type": "i32", |
| 182 |
"value": "20" |
| 183 |
} |
| 184 |
] |
| 185 |
}, |
| 186 |
"expected": [ |
| 187 |
{ |
| 188 |
"type": "i32", |
| 189 |
"value": "1" |
| 190 |
} |
| 191 |
] |
| 192 |
}, |
| 193 |
{ |
| 194 |
"type": "assert_return", |
| 195 |
"line": 53, |
| 196 |
"action": { |
| 197 |
"type": "invoke", |
| 198 |
"field": "read1", |
| 199 |
"args": [ |
| 200 |
{ |
| 201 |
"type": "i32", |
| 202 |
"value": "21" |
| 203 |
} |
| 204 |
] |
| 205 |
}, |
| 206 |
"expected": [ |
| 207 |
{ |
| 208 |
"type": "i32", |
| 209 |
"value": "2" |
| 210 |
} |
| 211 |
] |
| 212 |
}, |
| 213 |
{ |
| 214 |
"type": "assert_return", |
| 215 |
"line": 54, |
| 216 |
"action": { |
| 217 |
"type": "invoke", |
| 218 |
"field": "read1", |
| 219 |
"args": [ |
| 220 |
{ |
| 221 |
"type": "i32", |
| 222 |
"value": "22" |
| 223 |
} |
| 224 |
] |
| 225 |
}, |
| 226 |
"expected": [ |
| 227 |
{ |
| 228 |
"type": "i32", |
| 229 |
"value": "3" |
| 230 |
} |
| 231 |
] |
| 232 |
}, |
| 233 |
{ |
| 234 |
"type": "assert_return", |
| 235 |
"line": 55, |
| 236 |
"action": { |
| 237 |
"type": "invoke", |
| 238 |
"field": "read1", |
| 239 |
"args": [ |
| 240 |
{ |
| 241 |
"type": "i32", |
| 242 |
"value": "23" |
| 243 |
} |
| 244 |
] |
| 245 |
}, |
| 246 |
"expected": [ |
| 247 |
{ |
| 248 |
"type": "i32", |
| 249 |
"value": "4" |
| 250 |
} |
| 251 |
] |
| 252 |
}, |
| 253 |
{ |
| 254 |
"type": "assert_return", |
| 255 |
"line": 56, |
| 256 |
"action": { |
| 257 |
"type": "invoke", |
| 258 |
"field": "read1", |
| 259 |
"args": [ |
| 260 |
{ |
| 261 |
"type": "i32", |
| 262 |
"value": "24" |
| 263 |
} |
| 264 |
] |
| 265 |
}, |
| 266 |
"expected": [ |
| 267 |
{ |
| 268 |
"type": "i32", |
| 269 |
"value": "5" |
| 270 |
} |
| 271 |
] |
| 272 |
}, |
| 273 |
{ |
| 274 |
"type": "assert_return", |
| 275 |
"line": 58, |
| 276 |
"action": { |
| 277 |
"type": "invoke", |
| 278 |
"field": "read2", |
| 279 |
"args": [ |
| 280 |
{ |
| 281 |
"type": "i32", |
| 282 |
"value": "50" |
| 283 |
} |
| 284 |
] |
| 285 |
}, |
| 286 |
"expected": [ |
| 287 |
{ |
| 288 |
"type": "i32", |
| 289 |
"value": "10" |
| 290 |
} |
| 291 |
] |
| 292 |
}, |
| 293 |
{ |
| 294 |
"type": "assert_return", |
| 295 |
"line": 59, |
| 296 |
"action": { |
| 297 |
"type": "invoke", |
| 298 |
"field": "read2", |
| 299 |
"args": [ |
| 300 |
{ |
| 301 |
"type": "i32", |
| 302 |
"value": "51" |
| 303 |
} |
| 304 |
] |
| 305 |
}, |
| 306 |
"expected": [ |
| 307 |
{ |
| 308 |
"type": "i32", |
| 309 |
"value": "11" |
| 310 |
} |
| 311 |
] |
| 312 |
}, |
| 313 |
{ |
| 314 |
"type": "assert_return", |
| 315 |
"line": 60, |
| 316 |
"action": { |
| 317 |
"type": "invoke", |
| 318 |
"field": "read2", |
| 319 |
"args": [ |
| 320 |
{ |
| 321 |
"type": "i32", |
| 322 |
"value": "52" |
| 323 |
} |
| 324 |
] |
| 325 |
}, |
| 326 |
"expected": [ |
| 327 |
{ |
| 328 |
"type": "i32", |
| 329 |
"value": "12" |
| 330 |
} |
| 331 |
] |
| 332 |
}, |
| 333 |
{ |
| 334 |
"type": "assert_return", |
| 335 |
"line": 61, |
| 336 |
"action": { |
| 337 |
"type": "invoke", |
| 338 |
"field": "read2", |
| 339 |
"args": [ |
| 340 |
{ |
| 341 |
"type": "i32", |
| 342 |
"value": "53" |
| 343 |
} |
| 344 |
] |
| 345 |
}, |
| 346 |
"expected": [ |
| 347 |
{ |
| 348 |
"type": "i32", |
| 349 |
"value": "13" |
| 350 |
} |
| 351 |
] |
| 352 |
}, |
| 353 |
{ |
| 354 |
"type": "assert_return", |
| 355 |
"line": 62, |
| 356 |
"action": { |
| 357 |
"type": "invoke", |
| 358 |
"field": "read2", |
| 359 |
"args": [ |
| 360 |
{ |
| 361 |
"type": "i32", |
| 362 |
"value": "54" |
| 363 |
} |
| 364 |
] |
| 365 |
}, |
| 366 |
"expected": [ |
| 367 |
{ |
| 368 |
"type": "i32", |
| 369 |
"value": "14" |
| 370 |
} |
| 371 |
] |
| 372 |
}, |
| 373 |
{ |
| 374 |
"type": "module", |
| 375 |
"line": 67, |
| 376 |
"filename": "load.3.wasm", |
| 377 |
"module_type": "binary" |
| 378 |
}, |
| 379 |
{ |
| 380 |
"type": "assert_return", |
| 381 |
"line": 225, |
| 382 |
"action": { |
| 383 |
"type": "invoke", |
| 384 |
"field": "as-br-value", |
| 385 |
"args": [] |
| 386 |
}, |
| 387 |
"expected": [ |
| 388 |
{ |
| 389 |
"type": "i32", |
| 390 |
"value": "0" |
| 391 |
} |
| 392 |
] |
| 393 |
}, |
| 394 |
{ |
| 395 |
"type": "assert_return", |
| 396 |
"line": 227, |
| 397 |
"action": { |
| 398 |
"type": "invoke", |
| 399 |
"field": "as-br_if-cond", |
| 400 |
"args": [] |
| 401 |
}, |
| 402 |
"expected": [] |
| 403 |
}, |
| 404 |
{ |
| 405 |
"type": "assert_return", |
| 406 |
"line": 228, |
| 407 |
"action": { |
| 408 |
"type": "invoke", |
| 409 |
"field": "as-br_if-value", |
| 410 |
"args": [] |
| 411 |
}, |
| 412 |
"expected": [ |
| 413 |
{ |
| 414 |
"type": "i32", |
| 415 |
"value": "0" |
| 416 |
} |
| 417 |
] |
| 418 |
}, |
| 419 |
{ |
| 420 |
"type": "assert_return", |
| 421 |
"line": 229, |
| 422 |
"action": { |
| 423 |
"type": "invoke", |
| 424 |
"field": "as-br_if-value-cond", |
| 425 |
"args": [] |
| 426 |
}, |
| 427 |
"expected": [ |
| 428 |
{ |
| 429 |
"type": "i32", |
| 430 |
"value": "7" |
| 431 |
} |
| 432 |
] |
| 433 |
}, |
| 434 |
{ |
| 435 |
"type": "assert_return", |
| 436 |
"line": 231, |
| 437 |
"action": { |
| 438 |
"type": "invoke", |
| 439 |
"field": "as-br_table-index", |
| 440 |
"args": [] |
| 441 |
}, |
| 442 |
"expected": [] |
| 443 |
}, |
| 444 |
{ |
| 445 |
"type": "assert_return", |
| 446 |
"line": 232, |
| 447 |
"action": { |
| 448 |
"type": "invoke", |
| 449 |
"field": "as-br_table-value", |
| 450 |
"args": [] |
| 451 |
}, |
| 452 |
"expected": [ |
| 453 |
{ |
| 454 |
"type": "i32", |
| 455 |
"value": "0" |
| 456 |
} |
| 457 |
] |
| 458 |
}, |
| 459 |
{ |
| 460 |
"type": "assert_return", |
| 461 |
"line": 233, |
| 462 |
"action": { |
| 463 |
"type": "invoke", |
| 464 |
"field": "as-br_table-value-index", |
| 465 |
"args": [] |
| 466 |
}, |
| 467 |
"expected": [ |
| 468 |
{ |
| 469 |
"type": "i32", |
| 470 |
"value": "6" |
| 471 |
} |
| 472 |
] |
| 473 |
}, |
| 474 |
{ |
| 475 |
"type": "assert_return", |
| 476 |
"line": 235, |
| 477 |
"action": { |
| 478 |
"type": "invoke", |
| 479 |
"field": "as-return-value", |
| 480 |
"args": [] |
| 481 |
}, |
| 482 |
"expected": [ |
| 483 |
{ |
| 484 |
"type": "i32", |
| 485 |
"value": "0" |
| 486 |
} |
| 487 |
] |
| 488 |
}, |
| 489 |
{ |
| 490 |
"type": "assert_return", |
| 491 |
"line": 237, |
| 492 |
"action": { |
| 493 |
"type": "invoke", |
| 494 |
"field": "as-if-cond", |
| 495 |
"args": [] |
| 496 |
}, |
| 497 |
"expected": [ |
| 498 |
{ |
| 499 |
"type": "i32", |
| 500 |
"value": "1" |
| 501 |
} |
| 502 |
] |
| 503 |
}, |
| 504 |
{ |
| 505 |
"type": "assert_return", |
| 506 |
"line": 238, |
| 507 |
"action": { |
| 508 |
"type": "invoke", |
| 509 |
"field": "as-if-then", |
| 510 |
"args": [] |
| 511 |
}, |
| 512 |
"expected": [ |
| 513 |
{ |
| 514 |
"type": "i32", |
| 515 |
"value": "0" |
| 516 |
} |
| 517 |
] |
| 518 |
}, |
| 519 |
{ |
| 520 |
"type": "assert_return", |
| 521 |
"line": 239, |
| 522 |
"action": { |
| 523 |
"type": "invoke", |
| 524 |
"field": "as-if-else", |
| 525 |
"args": [] |
| 526 |
}, |
| 527 |
"expected": [ |
| 528 |
{ |
| 529 |
"type": "i32", |
| 530 |
"value": "0" |
| 531 |
} |
| 532 |
] |
| 533 |
}, |
| 534 |
{ |
| 535 |
"type": "assert_return", |
| 536 |
"line": 241, |
| 537 |
"action": { |
| 538 |
"type": "invoke", |
| 539 |
"field": "as-select-first", |
| 540 |
"args": [ |
| 541 |
{ |
| 542 |
"type": "i32", |
| 543 |
"value": "0" |
| 544 |
}, |
| 545 |
{ |
| 546 |
"type": "i32", |
| 547 |
"value": "1" |
| 548 |
} |
| 549 |
] |
| 550 |
}, |
| 551 |
"expected": [ |
| 552 |
{ |
| 553 |
"type": "i32", |
| 554 |
"value": "0" |
| 555 |
} |
| 556 |
] |
| 557 |
}, |
| 558 |
{ |
| 559 |
"type": "assert_return", |
| 560 |
"line": 242, |
| 561 |
"action": { |
| 562 |
"type": "invoke", |
| 563 |
"field": "as-select-second", |
| 564 |
"args": [ |
| 565 |
{ |
| 566 |
"type": "i32", |
| 567 |
"value": "0" |
| 568 |
}, |
| 569 |
{ |
| 570 |
"type": "i32", |
| 571 |
"value": "0" |
| 572 |
} |
| 573 |
] |
| 574 |
}, |
| 575 |
"expected": [ |
| 576 |
{ |
| 577 |
"type": "i32", |
| 578 |
"value": "0" |
| 579 |
} |
| 580 |
] |
| 581 |
}, |
| 582 |
{ |
| 583 |
"type": "assert_return", |
| 584 |
"line": 243, |
| 585 |
"action": { |
| 586 |
"type": "invoke", |
| 587 |
"field": "as-select-cond", |
| 588 |
"args": [] |
| 589 |
}, |
| 590 |
"expected": [ |
| 591 |
{ |
| 592 |
"type": "i32", |
| 593 |
"value": "1" |
| 594 |
} |
| 595 |
] |
| 596 |
}, |
| 597 |
{ |
| 598 |
"type": "assert_return", |
| 599 |
"line": 245, |
| 600 |
"action": { |
| 601 |
"type": "invoke", |
| 602 |
"field": "as-call-first", |
| 603 |
"args": [] |
| 604 |
}, |
| 605 |
"expected": [ |
| 606 |
{ |
| 607 |
"type": "i32", |
| 608 |
"value": "-1" |
| 609 |
} |
| 610 |
] |
| 611 |
}, |
| 612 |
{ |
| 613 |
"type": "assert_return", |
| 614 |
"line": 246, |
| 615 |
"action": { |
| 616 |
"type": "invoke", |
| 617 |
"field": "as-call-mid", |
| 618 |
"args": [] |
| 619 |
}, |
| 620 |
"expected": [ |
| 621 |
{ |
| 622 |
"type": "i32", |
| 623 |
"value": "-1" |
| 624 |
} |
| 625 |
] |
| 626 |
}, |
| 627 |
{ |
| 628 |
"type": "assert_return", |
| 629 |
"line": 247, |
| 630 |
"action": { |
| 631 |
"type": "invoke", |
| 632 |
"field": "as-call-last", |
| 633 |
"args": [] |
| 634 |
}, |
| 635 |
"expected": [ |
| 636 |
{ |
| 637 |
"type": "i32", |
| 638 |
"value": "-1" |
| 639 |
} |
| 640 |
] |
| 641 |
}, |
| 642 |
{ |
| 643 |
"type": "assert_return", |
| 644 |
"line": 249, |
| 645 |
"action": { |
| 646 |
"type": "invoke", |
| 647 |
"field": "as-call_indirect-first", |
| 648 |
"args": [] |
| 649 |
}, |
| 650 |
"expected": [ |
| 651 |
{ |
| 652 |
"type": "i32", |
| 653 |
"value": "-1" |
| 654 |
} |
| 655 |
] |
| 656 |
}, |
| 657 |
{ |
| 658 |
"type": "assert_return", |
| 659 |
"line": 250, |
| 660 |
"action": { |
| 661 |
"type": "invoke", |
| 662 |
"field": "as-call_indirect-mid", |
| 663 |
"args": [] |
| 664 |
}, |
| 665 |
"expected": [ |
| 666 |
{ |
| 667 |
"type": "i32", |
| 668 |
"value": "-1" |
| 669 |
} |
| 670 |
] |
| 671 |
}, |
| 672 |
{ |
| 673 |
"type": "assert_return", |
| 674 |
"line": 251, |
| 675 |
"action": { |
| 676 |
"type": "invoke", |
| 677 |
"field": "as-call_indirect-last", |
| 678 |
"args": [] |
| 679 |
}, |
| 680 |
"expected": [ |
| 681 |
{ |
| 682 |
"type": "i32", |
| 683 |
"value": "-1" |
| 684 |
} |
| 685 |
] |
| 686 |
}, |
| 687 |
{ |
| 688 |
"type": "assert_return", |
| 689 |
"line": 252, |
| 690 |
"action": { |
| 691 |
"type": "invoke", |
| 692 |
"field": "as-call_indirect-index", |
| 693 |
"args": [] |
| 694 |
}, |
| 695 |
"expected": [ |
| 696 |
{ |
| 697 |
"type": "i32", |
| 698 |
"value": "-1" |
| 699 |
} |
| 700 |
] |
| 701 |
}, |
| 702 |
{ |
| 703 |
"type": "assert_return", |
| 704 |
"line": 254, |
| 705 |
"action": { |
| 706 |
"type": "invoke", |
| 707 |
"field": "as-local.set-value", |
| 708 |
"args": [] |
| 709 |
}, |
| 710 |
"expected": [] |
| 711 |
}, |
| 712 |
{ |
| 713 |
"type": "assert_return", |
| 714 |
"line": 255, |
| 715 |
"action": { |
| 716 |
"type": "invoke", |
| 717 |
"field": "as-local.tee-value", |
| 718 |
"args": [] |
| 719 |
}, |
| 720 |
"expected": [ |
| 721 |
{ |
| 722 |
"type": "i32", |
| 723 |
"value": "0" |
| 724 |
} |
| 725 |
] |
| 726 |
}, |
| 727 |
{ |
| 728 |
"type": "assert_return", |
| 729 |
"line": 256, |
| 730 |
"action": { |
| 731 |
"type": "invoke", |
| 732 |
"field": "as-global.set-value", |
| 733 |
"args": [] |
| 734 |
}, |
| 735 |
"expected": [] |
| 736 |
}, |
| 737 |
{ |
| 738 |
"type": "assert_return", |
| 739 |
"line": 258, |
| 740 |
"action": { |
| 741 |
"type": "invoke", |
| 742 |
"field": "as-load-address", |
| 743 |
"args": [] |
| 744 |
}, |
| 745 |
"expected": [ |
| 746 |
{ |
| 747 |
"type": "i32", |
| 748 |
"value": "0" |
| 749 |
} |
| 750 |
] |
| 751 |
}, |
| 752 |
{ |
| 753 |
"type": "assert_return", |
| 754 |
"line": 259, |
| 755 |
"action": { |
| 756 |
"type": "invoke", |
| 757 |
"field": "as-loadN-address", |
| 758 |
"args": [] |
| 759 |
}, |
| 760 |
"expected": [ |
| 761 |
{ |
| 762 |
"type": "i32", |
| 763 |
"value": "0" |
| 764 |
} |
| 765 |
] |
| 766 |
}, |
| 767 |
{ |
| 768 |
"type": "assert_return", |
| 769 |
"line": 260, |
| 770 |
"action": { |
| 771 |
"type": "invoke", |
| 772 |
"field": "as-store-address", |
| 773 |
"args": [] |
| 774 |
}, |
| 775 |
"expected": [] |
| 776 |
}, |
| 777 |
{ |
| 778 |
"type": "assert_return", |
| 779 |
"line": 261, |
| 780 |
"action": { |
| 781 |
"type": "invoke", |
| 782 |
"field": "as-store-value", |
| 783 |
"args": [] |
| 784 |
}, |
| 785 |
"expected": [] |
| 786 |
}, |
| 787 |
{ |
| 788 |
"type": "assert_return", |
| 789 |
"line": 262, |
| 790 |
"action": { |
| 791 |
"type": "invoke", |
| 792 |
"field": "as-storeN-address", |
| 793 |
"args": [] |
| 794 |
}, |
| 795 |
"expected": [] |
| 796 |
}, |
| 797 |
{ |
| 798 |
"type": "assert_return", |
| 799 |
"line": 263, |
| 800 |
"action": { |
| 801 |
"type": "invoke", |
| 802 |
"field": "as-storeN-value", |
| 803 |
"args": [] |
| 804 |
}, |
| 805 |
"expected": [] |
| 806 |
}, |
| 807 |
{ |
| 808 |
"type": "assert_return", |
| 809 |
"line": 265, |
| 810 |
"action": { |
| 811 |
"type": "invoke", |
| 812 |
"field": "as-unary-operand", |
| 813 |
"args": [] |
| 814 |
}, |
| 815 |
"expected": [ |
| 816 |
{ |
| 817 |
"type": "i32", |
| 818 |
"value": "32" |
| 819 |
} |
| 820 |
] |
| 821 |
}, |
| 822 |
{ |
| 823 |
"type": "assert_return", |
| 824 |
"line": 267, |
| 825 |
"action": { |
| 826 |
"type": "invoke", |
| 827 |
"field": "as-binary-left", |
| 828 |
"args": [] |
| 829 |
}, |
| 830 |
"expected": [ |
| 831 |
{ |
| 832 |
"type": "i32", |
| 833 |
"value": "10" |
| 834 |
} |
| 835 |
] |
| 836 |
}, |
| 837 |
{ |
| 838 |
"type": "assert_return", |
| 839 |
"line": 268, |
| 840 |
"action": { |
| 841 |
"type": "invoke", |
| 842 |
"field": "as-binary-right", |
| 843 |
"args": [] |
| 844 |
}, |
| 845 |
"expected": [ |
| 846 |
{ |
| 847 |
"type": "i32", |
| 848 |
"value": "10" |
| 849 |
} |
| 850 |
] |
| 851 |
}, |
| 852 |
{ |
| 853 |
"type": "assert_return", |
| 854 |
"line": 270, |
| 855 |
"action": { |
| 856 |
"type": "invoke", |
| 857 |
"field": "as-test-operand", |
| 858 |
"args": [] |
| 859 |
}, |
| 860 |
"expected": [ |
| 861 |
{ |
| 862 |
"type": "i32", |
| 863 |
"value": "1" |
| 864 |
} |
| 865 |
] |
| 866 |
}, |
| 867 |
{ |
| 868 |
"type": "assert_return", |
| 869 |
"line": 272, |
| 870 |
"action": { |
| 871 |
"type": "invoke", |
| 872 |
"field": "as-compare-left", |
| 873 |
"args": [] |
| 874 |
}, |
| 875 |
"expected": [ |
| 876 |
{ |
| 877 |
"type": "i32", |
| 878 |
"value": "1" |
| 879 |
} |
| 880 |
] |
| 881 |
}, |
| 882 |
{ |
| 883 |
"type": "assert_return", |
| 884 |
"line": 273, |
| 885 |
"action": { |
| 886 |
"type": "invoke", |
| 887 |
"field": "as-compare-right", |
| 888 |
"args": [] |
| 889 |
}, |
| 890 |
"expected": [ |
| 891 |
{ |
| 892 |
"type": "i32", |
| 893 |
"value": "1" |
| 894 |
} |
| 895 |
] |
| 896 |
}, |
| 897 |
{ |
| 898 |
"type": "assert_return", |
| 899 |
"line": 275, |
| 900 |
"action": { |
| 901 |
"type": "invoke", |
| 902 |
"field": "as-memory.grow-size", |
| 903 |
"args": [] |
| 904 |
}, |
| 905 |
"expected": [ |
| 906 |
{ |
| 907 |
"type": "i32", |
| 908 |
"value": "1" |
| 909 |
} |
| 910 |
] |
| 911 |
}, |
| 912 |
{ |
| 913 |
"type": "assert_malformed", |
| 914 |
"line": 278, |
| 915 |
"filename": "load.4.wat", |
| 916 |
"module_type": "text", |
| 917 |
"text": "unknown operator" |
| 918 |
}, |
| 919 |
{ |
| 920 |
"type": "assert_malformed", |
| 921 |
"line": 285, |
| 922 |
"filename": "load.5.wat", |
| 923 |
"module_type": "text", |
| 924 |
"text": "unknown operator" |
| 925 |
}, |
| 926 |
{ |
| 927 |
"type": "assert_malformed", |
| 928 |
"line": 292, |
| 929 |
"filename": "load.6.wat", |
| 930 |
"module_type": "text", |
| 931 |
"text": "unknown operator" |
| 932 |
}, |
| 933 |
{ |
| 934 |
"type": "assert_malformed", |
| 935 |
"line": 299, |
| 936 |
"filename": "load.7.wat", |
| 937 |
"module_type": "text", |
| 938 |
"text": "unknown operator" |
| 939 |
}, |
| 940 |
{ |
| 941 |
"type": "assert_malformed", |
| 942 |
"line": 306, |
| 943 |
"filename": "load.8.wat", |
| 944 |
"module_type": "text", |
| 945 |
"text": "unknown operator" |
| 946 |
}, |
| 947 |
{ |
| 948 |
"type": "assert_malformed", |
| 949 |
"line": 313, |
| 950 |
"filename": "load.9.wat", |
| 951 |
"module_type": "text", |
| 952 |
"text": "unknown operator" |
| 953 |
}, |
| 954 |
{ |
| 955 |
"type": "assert_malformed", |
| 956 |
"line": 321, |
| 957 |
"filename": "load.10.wat", |
| 958 |
"module_type": "text", |
| 959 |
"text": "unknown operator" |
| 960 |
}, |
| 961 |
{ |
| 962 |
"type": "assert_malformed", |
| 963 |
"line": 328, |
| 964 |
"filename": "load.11.wat", |
| 965 |
"module_type": "text", |
| 966 |
"text": "unknown operator" |
| 967 |
}, |
| 968 |
{ |
| 969 |
"type": "assert_malformed", |
| 970 |
"line": 335, |
| 971 |
"filename": "load.12.wat", |
| 972 |
"module_type": "text", |
| 973 |
"text": "unknown operator" |
| 974 |
}, |
| 975 |
{ |
| 976 |
"type": "assert_malformed", |
| 977 |
"line": 343, |
| 978 |
"filename": "load.13.wat", |
| 979 |
"module_type": "text", |
| 980 |
"text": "unknown operator" |
| 981 |
}, |
| 982 |
{ |
| 983 |
"type": "assert_malformed", |
| 984 |
"line": 350, |
| 985 |
"filename": "load.14.wat", |
| 986 |
"module_type": "text", |
| 987 |
"text": "unknown operator" |
| 988 |
}, |
| 989 |
{ |
| 990 |
"type": "assert_malformed", |
| 991 |
"line": 358, |
| 992 |
"filename": "load.15.wat", |
| 993 |
"module_type": "text", |
| 994 |
"text": "unknown operator" |
| 995 |
}, |
| 996 |
{ |
| 997 |
"type": "assert_malformed", |
| 998 |
"line": 365, |
| 999 |
"filename": "load.16.wat", |
| 1000 |
"module_type": "text", |
| 1001 |
"text": "unknown operator" |
| 1002 |
}, |
| 1003 |
{ |
| 1004 |
"type": "assert_invalid", |
| 1005 |
"line": 376, |
| 1006 |
"filename": "load.17.wasm", |
| 1007 |
"module_type": "binary", |
| 1008 |
"text": "type mismatch" |
| 1009 |
}, |
| 1010 |
{ |
| 1011 |
"type": "assert_invalid", |
| 1012 |
"line": 380, |
| 1013 |
"filename": "load.18.wasm", |
| 1014 |
"module_type": "binary", |
| 1015 |
"text": "type mismatch" |
| 1016 |
}, |
| 1017 |
{ |
| 1018 |
"type": "assert_invalid", |
| 1019 |
"line": 384, |
| 1020 |
"filename": "load.19.wasm", |
| 1021 |
"module_type": "binary", |
| 1022 |
"text": "type mismatch" |
| 1023 |
}, |
| 1024 |
{ |
| 1025 |
"type": "assert_invalid", |
| 1026 |
"line": 388, |
| 1027 |
"filename": "load.20.wasm", |
| 1028 |
"module_type": "binary", |
| 1029 |
"text": "type mismatch" |
| 1030 |
}, |
| 1031 |
{ |
| 1032 |
"type": "assert_invalid", |
| 1033 |
"line": 392, |
| 1034 |
"filename": "load.21.wasm", |
| 1035 |
"module_type": "binary", |
| 1036 |
"text": "type mismatch" |
| 1037 |
}, |
| 1038 |
{ |
| 1039 |
"type": "assert_invalid", |
| 1040 |
"line": 396, |
| 1041 |
"filename": "load.22.wasm", |
| 1042 |
"module_type": "binary", |
| 1043 |
"text": "type mismatch" |
| 1044 |
}, |
| 1045 |
{ |
| 1046 |
"type": "assert_invalid", |
| 1047 |
"line": 400, |
| 1048 |
"filename": "load.23.wasm", |
| 1049 |
"module_type": "binary", |
| 1050 |
"text": "type mismatch" |
| 1051 |
}, |
| 1052 |
{ |
| 1053 |
"type": "assert_invalid", |
| 1054 |
"line": 404, |
| 1055 |
"filename": "load.24.wasm", |
| 1056 |
"module_type": "binary", |
| 1057 |
"text": "type mismatch" |
| 1058 |
}, |
| 1059 |
{ |
| 1060 |
"type": "assert_invalid", |
| 1061 |
"line": 408, |
| 1062 |
"filename": "load.25.wasm", |
| 1063 |
"module_type": "binary", |
| 1064 |
"text": "type mismatch" |
| 1065 |
}, |
| 1066 |
{ |
| 1067 |
"type": "assert_invalid", |
| 1068 |
"line": 412, |
| 1069 |
"filename": "load.26.wasm", |
| 1070 |
"module_type": "binary", |
| 1071 |
"text": "type mismatch" |
| 1072 |
}, |
| 1073 |
{ |
| 1074 |
"type": "assert_invalid", |
| 1075 |
"line": 416, |
| 1076 |
"filename": "load.27.wasm", |
| 1077 |
"module_type": "binary", |
| 1078 |
"text": "type mismatch" |
| 1079 |
}, |
| 1080 |
{ |
| 1081 |
"type": "assert_invalid", |
| 1082 |
"line": 420, |
| 1083 |
"filename": "load.28.wasm", |
| 1084 |
"module_type": "binary", |
| 1085 |
"text": "type mismatch" |
| 1086 |
}, |
| 1087 |
{ |
| 1088 |
"type": "assert_invalid", |
| 1089 |
"line": 424, |
| 1090 |
"filename": "load.29.wasm", |
| 1091 |
"module_type": "binary", |
| 1092 |
"text": "type mismatch" |
| 1093 |
}, |
| 1094 |
{ |
| 1095 |
"type": "assert_invalid", |
| 1096 |
"line": 428, |
| 1097 |
"filename": "load.30.wasm", |
| 1098 |
"module_type": "binary", |
| 1099 |
"text": "type mismatch" |
| 1100 |
}, |
| 1101 |
{ |
| 1102 |
"type": "assert_invalid", |
| 1103 |
"line": 435, |
| 1104 |
"filename": "load.31.wasm", |
| 1105 |
"module_type": "binary", |
| 1106 |
"text": "type mismatch" |
| 1107 |
}, |
| 1108 |
{ |
| 1109 |
"type": "assert_invalid", |
| 1110 |
"line": 436, |
| 1111 |
"filename": "load.32.wasm", |
| 1112 |
"module_type": "binary", |
| 1113 |
"text": "type mismatch" |
| 1114 |
}, |
| 1115 |
{ |
| 1116 |
"type": "assert_invalid", |
| 1117 |
"line": 437, |
| 1118 |
"filename": "load.33.wasm", |
| 1119 |
"module_type": "binary", |
| 1120 |
"text": "type mismatch" |
| 1121 |
}, |
| 1122 |
{ |
| 1123 |
"type": "assert_invalid", |
| 1124 |
"line": 438, |
| 1125 |
"filename": "load.34.wasm", |
| 1126 |
"module_type": "binary", |
| 1127 |
"text": "type mismatch" |
| 1128 |
}, |
| 1129 |
{ |
| 1130 |
"type": "assert_invalid", |
| 1131 |
"line": 439, |
| 1132 |
"filename": "load.35.wasm", |
| 1133 |
"module_type": "binary", |
| 1134 |
"text": "type mismatch" |
| 1135 |
}, |
| 1136 |
{ |
| 1137 |
"type": "assert_invalid", |
| 1138 |
"line": 440, |
| 1139 |
"filename": "load.36.wasm", |
| 1140 |
"module_type": "binary", |
| 1141 |
"text": "type mismatch" |
| 1142 |
}, |
| 1143 |
{ |
| 1144 |
"type": "assert_invalid", |
| 1145 |
"line": 441, |
| 1146 |
"filename": "load.37.wasm", |
| 1147 |
"module_type": "binary", |
| 1148 |
"text": "type mismatch" |
| 1149 |
}, |
| 1150 |
{ |
| 1151 |
"type": "assert_invalid", |
| 1152 |
"line": 442, |
| 1153 |
"filename": "load.38.wasm", |
| 1154 |
"module_type": "binary", |
| 1155 |
"text": "type mismatch" |
| 1156 |
}, |
| 1157 |
{ |
| 1158 |
"type": "assert_invalid", |
| 1159 |
"line": 443, |
| 1160 |
"filename": "load.39.wasm", |
| 1161 |
"module_type": "binary", |
| 1162 |
"text": "type mismatch" |
| 1163 |
}, |
| 1164 |
{ |
| 1165 |
"type": "assert_invalid", |
| 1166 |
"line": 444, |
| 1167 |
"filename": "load.40.wasm", |
| 1168 |
"module_type": "binary", |
| 1169 |
"text": "type mismatch" |
| 1170 |
}, |
| 1171 |
{ |
| 1172 |
"type": "assert_invalid", |
| 1173 |
"line": 445, |
| 1174 |
"filename": "load.41.wasm", |
| 1175 |
"module_type": "binary", |
| 1176 |
"text": "type mismatch" |
| 1177 |
}, |
| 1178 |
{ |
| 1179 |
"type": "assert_invalid", |
| 1180 |
"line": 446, |
| 1181 |
"filename": "load.42.wasm", |
| 1182 |
"module_type": "binary", |
| 1183 |
"text": "type mismatch" |
| 1184 |
}, |
| 1185 |
{ |
| 1186 |
"type": "assert_invalid", |
| 1187 |
"line": 447, |
| 1188 |
"filename": "load.43.wasm", |
| 1189 |
"module_type": "binary", |
| 1190 |
"text": "type mismatch" |
| 1191 |
}, |
| 1192 |
{ |
| 1193 |
"type": "assert_invalid", |
| 1194 |
"line": 448, |
| 1195 |
"filename": "load.44.wasm", |
| 1196 |
"module_type": "binary", |
| 1197 |
"text": "type mismatch" |
| 1198 |
}, |
| 1199 |
{ |
| 1200 |
"type": "assert_invalid", |
| 1201 |
"line": 452, |
| 1202 |
"filename": "load.45.wasm", |
| 1203 |
"module_type": "binary", |
| 1204 |
"text": "type mismatch" |
| 1205 |
}, |
| 1206 |
{ |
| 1207 |
"type": "assert_invalid", |
| 1208 |
"line": 461, |
| 1209 |
"filename": "load.46.wasm", |
| 1210 |
"module_type": "binary", |
| 1211 |
"text": "type mismatch" |
| 1212 |
}, |
| 1213 |
{ |
| 1214 |
"type": "assert_invalid", |
| 1215 |
"line": 471, |
| 1216 |
"filename": "load.47.wasm", |
| 1217 |
"module_type": "binary", |
| 1218 |
"text": "type mismatch" |
| 1219 |
}, |
| 1220 |
{ |
| 1221 |
"type": "assert_invalid", |
| 1222 |
"line": 481, |
| 1223 |
"filename": "load.48.wasm", |
| 1224 |
"module_type": "binary", |
| 1225 |
"text": "type mismatch" |
| 1226 |
}, |
| 1227 |
{ |
| 1228 |
"type": "assert_invalid", |
| 1229 |
"line": 491, |
| 1230 |
"filename": "load.49.wasm", |
| 1231 |
"module_type": "binary", |
| 1232 |
"text": "type mismatch" |
| 1233 |
}, |
| 1234 |
{ |
| 1235 |
"type": "assert_invalid", |
| 1236 |
"line": 501, |
| 1237 |
"filename": "load.50.wasm", |
| 1238 |
"module_type": "binary", |
| 1239 |
"text": "type mismatch" |
| 1240 |
}, |
| 1241 |
{ |
| 1242 |
"type": "assert_invalid", |
| 1243 |
"line": 511, |
| 1244 |
"filename": "load.51.wasm", |
| 1245 |
"module_type": "binary", |
| 1246 |
"text": "type mismatch" |
| 1247 |
}, |
| 1248 |
{ |
| 1249 |
"type": "assert_invalid", |
| 1250 |
"line": 521, |
| 1251 |
"filename": "load.52.wasm", |
| 1252 |
"module_type": "binary", |
| 1253 |
"text": "type mismatch" |
| 1254 |
}, |
| 1255 |
{ |
| 1256 |
"type": "assert_invalid", |
| 1257 |
"line": 531, |
| 1258 |
"filename": "load.53.wasm", |
| 1259 |
"module_type": "binary", |
| 1260 |
"text": "type mismatch" |
| 1261 |
}, |
| 1262 |
{ |
| 1263 |
"type": "assert_invalid", |
| 1264 |
"line": 540, |
| 1265 |
"filename": "load.54.wasm", |
| 1266 |
"module_type": "binary", |
| 1267 |
"text": "type mismatch" |
| 1268 |
}, |
| 1269 |
{ |
| 1270 |
"type": "assert_invalid", |
| 1271 |
"line": 549, |
| 1272 |
"filename": "load.55.wasm", |
| 1273 |
"module_type": "binary", |
| 1274 |
"text": "type mismatch" |
| 1275 |
}, |
| 1276 |
{ |
| 1277 |
"type": "assert_invalid", |
| 1278 |
"line": 559, |
| 1279 |
"filename": "load.56.wasm", |
| 1280 |
"module_type": "binary", |
| 1281 |
"text": "type mismatch" |
| 1282 |
}, |
| 1283 |
{ |
| 1284 |
"type": "assert_invalid", |
| 1285 |
"line": 576, |
| 1286 |
"filename": "load.57.wasm", |
| 1287 |
"module_type": "binary", |
| 1288 |
"text": "type mismatch" |
| 1289 |
}, |
| 1290 |
{ |
| 1291 |
"type": "assert_invalid", |
| 1292 |
"line": 586, |
| 1293 |
"filename": "load.58.wasm", |
| 1294 |
"module_type": "binary", |
| 1295 |
"text": "type mismatch" |
| 1296 |
}, |
| 1297 |
{ |
| 1298 |
"type": "assert_invalid", |
| 1299 |
"line": 596, |
| 1300 |
"filename": "load.59.wasm", |
| 1301 |
"module_type": "binary", |
| 1302 |
"text": "type mismatch" |
| 1303 |
}, |
| 1304 |
{ |
| 1305 |
"type": "assert_invalid", |
| 1306 |
"line": 606, |
| 1307 |
"filename": "load.60.wasm", |
| 1308 |
"module_type": "binary", |
| 1309 |
"text": "type mismatch" |
| 1310 |
}, |
| 1311 |
{ |
| 1312 |
"type": "assert_invalid", |
| 1313 |
"line": 615, |
| 1314 |
"filename": "load.61.wasm", |
| 1315 |
"module_type": "binary", |
| 1316 |
"text": "type mismatch" |
| 1317 |
}, |
| 1318 |
{ |
| 1319 |
"type": "assert_invalid", |
| 1320 |
"line": 624, |
| 1321 |
"filename": "load.62.wasm", |
| 1322 |
"module_type": "binary", |
| 1323 |
"text": "type mismatch" |
| 1324 |
} |
| 1325 |
] |
| 1326 |
} |