| 1 |
{ |
| 2 |
"source_filename": "tests/testsuite/simd_load.wast", |
| 3 |
"commands": [ |
| 4 |
{ |
| 5 |
"type": "module", |
| 6 |
"line": 3, |
| 7 |
"filename": "simd_load.0.wasm", |
| 8 |
"module_type": "binary" |
| 9 |
}, |
| 10 |
{ |
| 11 |
"type": "assert_return", |
| 12 |
"line": 11, |
| 13 |
"action": { |
| 14 |
"type": "invoke", |
| 15 |
"field": "v128.load", |
| 16 |
"args": [] |
| 17 |
}, |
| 18 |
"expected": [ |
| 19 |
{ |
| 20 |
"type": "v128", |
| 21 |
"lane_type": "i8", |
| 22 |
"value": [ |
| 23 |
"0", |
| 24 |
"1", |
| 25 |
"2", |
| 26 |
"3", |
| 27 |
"4", |
| 28 |
"5", |
| 29 |
"6", |
| 30 |
"7", |
| 31 |
"8", |
| 32 |
"9", |
| 33 |
"10", |
| 34 |
"11", |
| 35 |
"12", |
| 36 |
"13", |
| 37 |
"14", |
| 38 |
"15" |
| 39 |
] |
| 40 |
} |
| 41 |
] |
| 42 |
}, |
| 43 |
{ |
| 44 |
"type": "assert_return", |
| 45 |
"line": 12, |
| 46 |
"action": { |
| 47 |
"type": "invoke", |
| 48 |
"field": "v128.load", |
| 49 |
"args": [] |
| 50 |
}, |
| 51 |
"expected": [ |
| 52 |
{ |
| 53 |
"type": "v128", |
| 54 |
"lane_type": "i16", |
| 55 |
"value": [ |
| 56 |
"256", |
| 57 |
"770", |
| 58 |
"1284", |
| 59 |
"1798", |
| 60 |
"2312", |
| 61 |
"2826", |
| 62 |
"3340", |
| 63 |
"3854" |
| 64 |
] |
| 65 |
} |
| 66 |
] |
| 67 |
}, |
| 68 |
{ |
| 69 |
"type": "assert_return", |
| 70 |
"line": 13, |
| 71 |
"action": { |
| 72 |
"type": "invoke", |
| 73 |
"field": "v128.load", |
| 74 |
"args": [] |
| 75 |
}, |
| 76 |
"expected": [ |
| 77 |
{ |
| 78 |
"type": "v128", |
| 79 |
"lane_type": "i32", |
| 80 |
"value": [ |
| 81 |
"50462976", |
| 82 |
"117835012", |
| 83 |
"185207048", |
| 84 |
"252579084" |
| 85 |
] |
| 86 |
} |
| 87 |
] |
| 88 |
}, |
| 89 |
{ |
| 90 |
"type": "module", |
| 91 |
"line": 18, |
| 92 |
"filename": "simd_load.1.wasm", |
| 93 |
"module_type": "binary" |
| 94 |
}, |
| 95 |
{ |
| 96 |
"type": "assert_return", |
| 97 |
"line": 24, |
| 98 |
"action": { |
| 99 |
"type": "invoke", |
| 100 |
"field": "as-i8x16_extract_lane_s-value/0", |
| 101 |
"args": [] |
| 102 |
}, |
| 103 |
"expected": [ |
| 104 |
{ |
| 105 |
"type": "i32", |
| 106 |
"value": "0" |
| 107 |
} |
| 108 |
] |
| 109 |
}, |
| 110 |
{ |
| 111 |
"type": "module", |
| 112 |
"line": 26, |
| 113 |
"filename": "simd_load.2.wasm", |
| 114 |
"module_type": "binary" |
| 115 |
}, |
| 116 |
{ |
| 117 |
"type": "assert_return", |
| 118 |
"line": 32, |
| 119 |
"action": { |
| 120 |
"type": "invoke", |
| 121 |
"field": "as-i8x16.eq-operand", |
| 122 |
"args": [] |
| 123 |
}, |
| 124 |
"expected": [ |
| 125 |
{ |
| 126 |
"type": "v128", |
| 127 |
"lane_type": "i32", |
| 128 |
"value": [ |
| 129 |
"-1", |
| 130 |
"0", |
| 131 |
"0", |
| 132 |
"0" |
| 133 |
] |
| 134 |
} |
| 135 |
] |
| 136 |
}, |
| 137 |
{ |
| 138 |
"type": "module", |
| 139 |
"line": 34, |
| 140 |
"filename": "simd_load.3.wasm", |
| 141 |
"module_type": "binary" |
| 142 |
}, |
| 143 |
{ |
| 144 |
"type": "assert_return", |
| 145 |
"line": 43, |
| 146 |
"action": { |
| 147 |
"type": "invoke", |
| 148 |
"field": "as-v128.not-operand", |
| 149 |
"args": [] |
| 150 |
}, |
| 151 |
"expected": [ |
| 152 |
{ |
| 153 |
"type": "v128", |
| 154 |
"lane_type": "i32", |
| 155 |
"value": [ |
| 156 |
"-50462977", |
| 157 |
"-117835013", |
| 158 |
"-185207049", |
| 159 |
"-252579085" |
| 160 |
] |
| 161 |
} |
| 162 |
] |
| 163 |
}, |
| 164 |
{ |
| 165 |
"type": "assert_return", |
| 166 |
"line": 44, |
| 167 |
"action": { |
| 168 |
"type": "invoke", |
| 169 |
"field": "as-i8x16.all_true-operand", |
| 170 |
"args": [] |
| 171 |
}, |
| 172 |
"expected": [ |
| 173 |
{ |
| 174 |
"type": "i32", |
| 175 |
"value": "0" |
| 176 |
} |
| 177 |
] |
| 178 |
}, |
| 179 |
{ |
| 180 |
"type": "module", |
| 181 |
"line": 46, |
| 182 |
"filename": "simd_load.4.wasm", |
| 183 |
"module_type": "binary" |
| 184 |
}, |
| 185 |
{ |
| 186 |
"type": "assert_return", |
| 187 |
"line": 54, |
| 188 |
"action": { |
| 189 |
"type": "invoke", |
| 190 |
"field": "as-v128.bitselect-operand", |
| 191 |
"args": [] |
| 192 |
}, |
| 193 |
"expected": [ |
| 194 |
{ |
| 195 |
"type": "v128", |
| 196 |
"lane_type": "i32", |
| 197 |
"value": [ |
| 198 |
"-1414812757", |
| 199 |
"-1431655766", |
| 200 |
"-1145324613", |
| 201 |
"-1146438742" |
| 202 |
] |
| 203 |
} |
| 204 |
] |
| 205 |
}, |
| 206 |
{ |
| 207 |
"type": "module", |
| 208 |
"line": 56, |
| 209 |
"filename": "simd_load.5.wasm", |
| 210 |
"module_type": "binary" |
| 211 |
}, |
| 212 |
{ |
| 213 |
"type": "assert_return", |
| 214 |
"line": 62, |
| 215 |
"action": { |
| 216 |
"type": "invoke", |
| 217 |
"field": "as-i8x16.shl-operand", |
| 218 |
"args": [] |
| 219 |
}, |
| 220 |
"expected": [ |
| 221 |
{ |
| 222 |
"type": "v128", |
| 223 |
"lane_type": "i32", |
| 224 |
"value": [ |
| 225 |
"1414812756", |
| 226 |
"1414812756", |
| 227 |
"1414812756", |
| 228 |
"1414812756" |
| 229 |
] |
| 230 |
} |
| 231 |
] |
| 232 |
}, |
| 233 |
{ |
| 234 |
"type": "module", |
| 235 |
"line": 64, |
| 236 |
"filename": "simd_load.6.wasm", |
| 237 |
"module_type": "binary" |
| 238 |
}, |
| 239 |
{ |
| 240 |
"type": "assert_return", |
| 241 |
"line": 76, |
| 242 |
"action": { |
| 243 |
"type": "invoke", |
| 244 |
"field": "as-add/sub-operand", |
| 245 |
"args": [] |
| 246 |
}, |
| 247 |
"expected": [ |
| 248 |
{ |
| 249 |
"type": "v128", |
| 250 |
"lane_type": "i32", |
| 251 |
"value": [ |
| 252 |
"2", |
| 253 |
"2", |
| 254 |
"2", |
| 255 |
"2" |
| 256 |
] |
| 257 |
} |
| 258 |
] |
| 259 |
}, |
| 260 |
{ |
| 261 |
"type": "module", |
| 262 |
"line": 78, |
| 263 |
"filename": "simd_load.7.wasm", |
| 264 |
"module_type": "binary" |
| 265 |
}, |
| 266 |
{ |
| 267 |
"type": "assert_return", |
| 268 |
"line": 85, |
| 269 |
"action": { |
| 270 |
"type": "invoke", |
| 271 |
"field": "as-f32x4.mul-operand", |
| 272 |
"args": [] |
| 273 |
}, |
| 274 |
"expected": [ |
| 275 |
{ |
| 276 |
"type": "v128", |
| 277 |
"lane_type": "f32", |
| 278 |
"value": [ |
| 279 |
"1132462080", |
| 280 |
"1073741824", |
| 281 |
"1080452710", |
| 282 |
"3221225472" |
| 283 |
] |
| 284 |
} |
| 285 |
] |
| 286 |
}, |
| 287 |
{ |
| 288 |
"type": "module", |
| 289 |
"line": 87, |
| 290 |
"filename": "simd_load.8.wasm", |
| 291 |
"module_type": "binary" |
| 292 |
}, |
| 293 |
{ |
| 294 |
"type": "assert_return", |
| 295 |
"line": 93, |
| 296 |
"action": { |
| 297 |
"type": "invoke", |
| 298 |
"field": "as-f32x4.abs-operand", |
| 299 |
"args": [] |
| 300 |
}, |
| 301 |
"expected": [ |
| 302 |
{ |
| 303 |
"type": "v128", |
| 304 |
"lane_type": "i32", |
| 305 |
"value": [ |
| 306 |
"2147483647", |
| 307 |
"2147483647", |
| 308 |
"2147483647", |
| 309 |
"2147483647" |
| 310 |
] |
| 311 |
} |
| 312 |
] |
| 313 |
}, |
| 314 |
{ |
| 315 |
"type": "module", |
| 316 |
"line": 95, |
| 317 |
"filename": "simd_load.9.wasm", |
| 318 |
"module_type": "binary" |
| 319 |
}, |
| 320 |
{ |
| 321 |
"type": "assert_return", |
| 322 |
"line": 102, |
| 323 |
"action": { |
| 324 |
"type": "invoke", |
| 325 |
"field": "as-f32x4.min-operand", |
| 326 |
"args": [] |
| 327 |
}, |
| 328 |
"expected": [ |
| 329 |
{ |
| 330 |
"type": "v128", |
| 331 |
"lane_type": "i32", |
| 332 |
"value": [ |
| 333 |
"-1431655766", |
| 334 |
"-1431655766", |
| 335 |
"-1431655766", |
| 336 |
"-1431655766" |
| 337 |
] |
| 338 |
} |
| 339 |
] |
| 340 |
}, |
| 341 |
{ |
| 342 |
"type": "module", |
| 343 |
"line": 104, |
| 344 |
"filename": "simd_load.10.wasm", |
| 345 |
"module_type": "binary" |
| 346 |
}, |
| 347 |
{ |
| 348 |
"type": "assert_return", |
| 349 |
"line": 110, |
| 350 |
"action": { |
| 351 |
"type": "invoke", |
| 352 |
"field": "as-i32x4.trunc_sat_f32x4_s-operand", |
| 353 |
"args": [] |
| 354 |
}, |
| 355 |
"expected": [ |
| 356 |
{ |
| 357 |
"type": "v128", |
| 358 |
"lane_type": "i32", |
| 359 |
"value": [ |
| 360 |
"128", |
| 361 |
"1", |
| 362 |
"1", |
| 363 |
"-1" |
| 364 |
] |
| 365 |
} |
| 366 |
] |
| 367 |
}, |
| 368 |
{ |
| 369 |
"type": "module", |
| 370 |
"line": 112, |
| 371 |
"filename": "simd_load.11.wasm", |
| 372 |
"module_type": "binary" |
| 373 |
}, |
| 374 |
{ |
| 375 |
"type": "assert_return", |
| 376 |
"line": 118, |
| 377 |
"action": { |
| 378 |
"type": "invoke", |
| 379 |
"field": "as-f32x4.convert_i32x4_u-operand", |
| 380 |
"args": [] |
| 381 |
}, |
| 382 |
"expected": [ |
| 383 |
{ |
| 384 |
"type": "v128", |
| 385 |
"lane_type": "f32", |
| 386 |
"value": [ |
| 387 |
"1073741824", |
| 388 |
"1073741824", |
| 389 |
"1073741824", |
| 390 |
"1073741824" |
| 391 |
] |
| 392 |
} |
| 393 |
] |
| 394 |
}, |
| 395 |
{ |
| 396 |
"type": "module", |
| 397 |
"line": 120, |
| 398 |
"filename": "simd_load.12.wasm", |
| 399 |
"module_type": "binary" |
| 400 |
}, |
| 401 |
{ |
| 402 |
"type": "assert_return", |
| 403 |
"line": 127, |
| 404 |
"action": { |
| 405 |
"type": "invoke", |
| 406 |
"field": "as-i8x16.swizzle-operand", |
| 407 |
"args": [] |
| 408 |
}, |
| 409 |
"expected": [ |
| 410 |
{ |
| 411 |
"type": "v128", |
| 412 |
"lane_type": "i8", |
| 413 |
"value": [ |
| 414 |
"115", |
| 415 |
"114", |
| 416 |
"113", |
| 417 |
"112", |
| 418 |
"111", |
| 419 |
"110", |
| 420 |
"109", |
| 421 |
"108", |
| 422 |
"107", |
| 423 |
"106", |
| 424 |
"105", |
| 425 |
"104", |
| 426 |
"103", |
| 427 |
"102", |
| 428 |
"101", |
| 429 |
"100" |
| 430 |
] |
| 431 |
} |
| 432 |
] |
| 433 |
}, |
| 434 |
{ |
| 435 |
"type": "module", |
| 436 |
"line": 129, |
| 437 |
"filename": "simd_load.13.wasm", |
| 438 |
"module_type": "binary" |
| 439 |
}, |
| 440 |
{ |
| 441 |
"type": "assert_return", |
| 442 |
"line": 135, |
| 443 |
"action": { |
| 444 |
"type": "invoke", |
| 445 |
"field": "as-br-value", |
| 446 |
"args": [] |
| 447 |
}, |
| 448 |
"expected": [ |
| 449 |
{ |
| 450 |
"type": "v128", |
| 451 |
"lane_type": "i32", |
| 452 |
"value": [ |
| 453 |
"50462976", |
| 454 |
"117835012", |
| 455 |
"185207048", |
| 456 |
"252579084" |
| 457 |
] |
| 458 |
} |
| 459 |
] |
| 460 |
}, |
| 461 |
{ |
| 462 |
"type": "assert_malformed", |
| 463 |
"line": 141, |
| 464 |
"filename": "simd_load.14.wat", |
| 465 |
"module_type": "text", |
| 466 |
"text": "unknown operator" |
| 467 |
}, |
| 468 |
{ |
| 469 |
"type": "assert_malformed", |
| 470 |
"line": 148, |
| 471 |
"filename": "simd_load.15.wat", |
| 472 |
"module_type": "text", |
| 473 |
"text": "unknown operator" |
| 474 |
}, |
| 475 |
{ |
| 476 |
"type": "assert_malformed", |
| 477 |
"line": 155, |
| 478 |
"filename": "simd_load.16.wat", |
| 479 |
"module_type": "text", |
| 480 |
"text": "unknown operator" |
| 481 |
}, |
| 482 |
{ |
| 483 |
"type": "assert_invalid", |
| 484 |
"line": 166, |
| 485 |
"filename": "simd_load.17.wasm", |
| 486 |
"module_type": "binary", |
| 487 |
"text": "type mismatch" |
| 488 |
}, |
| 489 |
{ |
| 490 |
"type": "assert_invalid", |
| 491 |
"line": 170, |
| 492 |
"filename": "simd_load.18.wasm", |
| 493 |
"module_type": "binary", |
| 494 |
"text": "type mismatch" |
| 495 |
}, |
| 496 |
{ |
| 497 |
"type": "assert_invalid", |
| 498 |
"line": 174, |
| 499 |
"filename": "simd_load.19.wasm", |
| 500 |
"module_type": "binary", |
| 501 |
"text": "type mismatch" |
| 502 |
}, |
| 503 |
{ |
| 504 |
"type": "assert_invalid", |
| 505 |
"line": 182, |
| 506 |
"filename": "simd_load.20.wasm", |
| 507 |
"module_type": "binary", |
| 508 |
"text": "unknown local 2" |
| 509 |
}, |
| 510 |
{ |
| 511 |
"type": "assert_invalid", |
| 512 |
"line": 186, |
| 513 |
"filename": "simd_load.21.wasm", |
| 514 |
"module_type": "binary", |
| 515 |
"text": "type mismatch" |
| 516 |
} |
| 517 |
] |
| 518 |
} |