// |jit-test| skip-if: !wasmSimdEnabled() /* Copyright 2021 Mozilla Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ // ./test/core/simd/simd_i16x8_arith.wast // ./test/core/simd/simd_i16x8_arith.wast:4 let $0 = instantiate(`(module (func (export "i16x8.add") (param v128 v128) (result v128) (i16x8.add (local.get 0) (local.get 1))) (func (export "i16x8.sub") (param v128 v128) (result v128) (i16x8.sub (local.get 0) (local.get 1))) (func (export "i16x8.mul") (param v128 v128) (result v128) (i16x8.mul (local.get 0) (local.get 1))) (func (export "i16x8.neg") (param v128) (result v128) (i16x8.neg (local.get 0))) )`); // ./test/core/simd/simd_i16x8_arith.wast:13 assert_return( () => invoke($0, `i16x8.add`, [ i16x8([0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0]), i16x8([0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0]), ]), [i16x8([0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0])], ); // ./test/core/simd/simd_i16x8_arith.wast:16 assert_return( () => invoke($0, `i16x8.add`, [ i16x8([0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0]), i16x8([0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1]), ]), [i16x8([0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1])], ); // ./test/core/simd/simd_i16x8_arith.wast:19 assert_return( () => invoke($0, `i16x8.add`, [ i16x8([0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1]), i16x8([0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1]), ]), [i16x8([0x2, 0x2, 0x2, 0x2, 0x2, 0x2, 0x2, 0x2])], ); // ./test/core/simd/simd_i16x8_arith.wast:22 assert_return( () => invoke($0, `i16x8.add`, [ i16x8([0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0]), i16x8([0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff]), ]), [i16x8([0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff])], ); // ./test/core/simd/simd_i16x8_arith.wast:25 assert_return( () => invoke($0, `i16x8.add`, [ i16x8([0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1]), i16x8([0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff]), ]), [i16x8([0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0])], ); // ./test/core/simd/simd_i16x8_arith.wast:28 assert_return( () => invoke($0, `i16x8.add`, [ i16x8([0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff]), i16x8([0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff]), ]), [i16x8([0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe])], ); // ./test/core/simd/simd_i16x8_arith.wast:31 assert_return( () => invoke($0, `i16x8.add`, [ i16x8([0x3fff, 0x3fff, 0x3fff, 0x3fff, 0x3fff, 0x3fff, 0x3fff, 0x3fff]), i16x8([0x4000, 0x4000, 0x4000, 0x4000, 0x4000, 0x4000, 0x4000, 0x4000]), ]), [i16x8([0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff])], ); // ./test/core/simd/simd_i16x8_arith.wast:34 assert_return( () => invoke($0, `i16x8.add`, [ i16x8([0x4000, 0x4000, 0x4000, 0x4000, 0x4000, 0x4000, 0x4000, 0x4000]), i16x8([0x4000, 0x4000, 0x4000, 0x4000, 0x4000, 0x4000, 0x4000, 0x4000]), ]), [i16x8([0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000])], ); // ./test/core/simd/simd_i16x8_arith.wast:37 assert_return( () => invoke($0, `i16x8.add`, [ i16x8([0xc001, 0xc001, 0xc001, 0xc001, 0xc001, 0xc001, 0xc001, 0xc001]), i16x8([0xc000, 0xc000, 0xc000, 0xc000, 0xc000, 0xc000, 0xc000, 0xc000]), ]), [i16x8([0x8001, 0x8001, 0x8001, 0x8001, 0x8001, 0x8001, 0x8001, 0x8001])], ); // ./test/core/simd/simd_i16x8_arith.wast:40 assert_return( () => invoke($0, `i16x8.add`, [ i16x8([0xc000, 0xc000, 0xc000, 0xc000, 0xc000, 0xc000, 0xc000, 0xc000]), i16x8([0xc000, 0xc000, 0xc000, 0xc000, 0xc000, 0xc000, 0xc000, 0xc000]), ]), [i16x8([0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000])], ); // ./test/core/simd/simd_i16x8_arith.wast:43 assert_return( () => invoke($0, `i16x8.add`, [ i16x8([0xbfff, 0xbfff, 0xbfff, 0xbfff, 0xbfff, 0xbfff, 0xbfff, 0xbfff]), i16x8([0xc000, 0xc000, 0xc000, 0xc000, 0xc000, 0xc000, 0xc000, 0xc000]), ]), [i16x8([0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff])], ); // ./test/core/simd/simd_i16x8_arith.wast:46 assert_return( () => invoke($0, `i16x8.add`, [ i16x8([0x7ffd, 0x7ffd, 0x7ffd, 0x7ffd, 0x7ffd, 0x7ffd, 0x7ffd, 0x7ffd]), i16x8([0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1]), ]), [i16x8([0x7ffe, 0x7ffe, 0x7ffe, 0x7ffe, 0x7ffe, 0x7ffe, 0x7ffe, 0x7ffe])], ); // ./test/core/simd/simd_i16x8_arith.wast:49 assert_return( () => invoke($0, `i16x8.add`, [ i16x8([0x7ffe, 0x7ffe, 0x7ffe, 0x7ffe, 0x7ffe, 0x7ffe, 0x7ffe, 0x7ffe]), i16x8([0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1]), ]), [i16x8([0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff])], ); // ./test/core/simd/simd_i16x8_arith.wast:52 assert_return( () => invoke($0, `i16x8.add`, [ i16x8([0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000]), i16x8([0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1]), ]), [i16x8([0x8001, 0x8001, 0x8001, 0x8001, 0x8001, 0x8001, 0x8001, 0x8001])], ); // ./test/core/simd/simd_i16x8_arith.wast:55 assert_return( () => invoke($0, `i16x8.add`, [ i16x8([0x8002, 0x8002, 0x8002, 0x8002, 0x8002, 0x8002, 0x8002, 0x8002]), i16x8([0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff]), ]), [i16x8([0x8001, 0x8001, 0x8001, 0x8001, 0x8001, 0x8001, 0x8001, 0x8001])], ); // ./test/core/simd/simd_i16x8_arith.wast:58 assert_return( () => invoke($0, `i16x8.add`, [ i16x8([0x8001, 0x8001, 0x8001, 0x8001, 0x8001, 0x8001, 0x8001, 0x8001]), i16x8([0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff]), ]), [i16x8([0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000])], ); // ./test/core/simd/simd_i16x8_arith.wast:61 assert_return( () => invoke($0, `i16x8.add`, [ i16x8([0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000]), i16x8([0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff]), ]), [i16x8([0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff])], ); // ./test/core/simd/simd_i16x8_arith.wast:64 assert_return( () => invoke($0, `i16x8.add`, [ i16x8([0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff]), i16x8([0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff]), ]), [i16x8([0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe])], ); // ./test/core/simd/simd_i16x8_arith.wast:67 assert_return( () => invoke($0, `i16x8.add`, [ i16x8([0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000]), i16x8([0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000]), ]), [i16x8([0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0])], ); // ./test/core/simd/simd_i16x8_arith.wast:70 assert_return( () => invoke($0, `i16x8.add`, [ i16x8([0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000]), i16x8([0x8001, 0x8001, 0x8001, 0x8001, 0x8001, 0x8001, 0x8001, 0x8001]), ]), [i16x8([0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1])], ); // ./test/core/simd/simd_i16x8_arith.wast:73 assert_return( () => invoke($0, `i16x8.add`, [ i16x8([0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff]), i16x8([0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0]), ]), [i16x8([0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff])], ); // ./test/core/simd/simd_i16x8_arith.wast:76 assert_return( () => invoke($0, `i16x8.add`, [ i16x8([0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff]), i16x8([0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1]), ]), [i16x8([0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0])], ); // ./test/core/simd/simd_i16x8_arith.wast:79 assert_return( () => invoke($0, `i16x8.add`, [ i16x8([0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff]), i16x8([0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff]), ]), [i16x8([0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe])], ); // ./test/core/simd/simd_i16x8_arith.wast:82 assert_return( () => invoke($0, `i16x8.add`, [ i16x8([0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff]), i16x8([0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff]), ]), [i16x8([0x7ffe, 0x7ffe, 0x7ffe, 0x7ffe, 0x7ffe, 0x7ffe, 0x7ffe, 0x7ffe])], ); // ./test/core/simd/simd_i16x8_arith.wast:85 assert_return( () => invoke($0, `i16x8.add`, [ i16x8([0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff]), i16x8([0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000]), ]), [i16x8([0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff])], ); // ./test/core/simd/simd_i16x8_arith.wast:88 assert_return( () => invoke($0, `i16x8.add`, [ i16x8([0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff]), i16x8([0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff]), ]), [i16x8([0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe])], ); // ./test/core/simd/simd_i16x8_arith.wast:91 assert_return( () => invoke($0, `i16x8.add`, [ i16x8([0x3fff, 0x3fff, 0x3fff, 0x3fff, 0x3fff, 0x3fff, 0x3fff, 0x3fff]), i16x8([0x4000, 0x4000, 0x4000, 0x4000, 0x4000, 0x4000, 0x4000, 0x4000]), ]), [i16x8([0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff])], ); // ./test/core/simd/simd_i16x8_arith.wast:94 assert_return( () => invoke($0, `i16x8.add`, [ i16x8([0x4000, 0x4000, 0x4000, 0x4000, 0x4000, 0x4000, 0x4000, 0x4000]), i16x8([0x4000, 0x4000, 0x4000, 0x4000, 0x4000, 0x4000, 0x4000, 0x4000]), ]), [i16x8([0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000])], ); // ./test/core/simd/simd_i16x8_arith.wast:97 assert_return( () => invoke($0, `i16x8.add`, [ i16x8([0xc001, 0xc001, 0xc001, 0xc001, 0xc001, 0xc001, 0xc001, 0xc001]), i16x8([0xc000, 0xc000, 0xc000, 0xc000, 0xc000, 0xc000, 0xc000, 0xc000]), ]), [i16x8([0x8001, 0x8001, 0x8001, 0x8001, 0x8001, 0x8001, 0x8001, 0x8001])], ); // ./test/core/simd/simd_i16x8_arith.wast:100 assert_return( () => invoke($0, `i16x8.add`, [ i16x8([0xc000, 0xc000, 0xc000, 0xc000, 0xc000, 0xc000, 0xc000, 0xc000]), i16x8([0xc000, 0xc000, 0xc000, 0xc000, 0xc000, 0xc000, 0xc000, 0xc000]), ]), [i16x8([0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000])], ); // ./test/core/simd/simd_i16x8_arith.wast:103 assert_return( () => invoke($0, `i16x8.add`, [ i16x8([0xc000, 0xc000, 0xc000, 0xc000, 0xc000, 0xc000, 0xc000, 0xc000]), i16x8([0xbfff, 0xbfff, 0xbfff, 0xbfff, 0xbfff, 0xbfff, 0xbfff, 0xbfff]), ]), [i16x8([0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff])], ); // ./test/core/simd/simd_i16x8_arith.wast:106 assert_return( () => invoke($0, `i16x8.add`, [ i16x8([0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff]), i16x8([0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff]), ]), [i16x8([0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe])], ); // ./test/core/simd/simd_i16x8_arith.wast:109 assert_return( () => invoke($0, `i16x8.add`, [ i16x8([0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff]), i16x8([0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1]), ]), [i16x8([0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000])], ); // ./test/core/simd/simd_i16x8_arith.wast:112 assert_return( () => invoke($0, `i16x8.add`, [ i16x8([0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000]), i16x8([0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff]), ]), [i16x8([0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff])], ); // ./test/core/simd/simd_i16x8_arith.wast:115 assert_return( () => invoke($0, `i16x8.add`, [ i16x8([0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff]), i16x8([0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000]), ]), [i16x8([0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff])], ); // ./test/core/simd/simd_i16x8_arith.wast:118 assert_return( () => invoke($0, `i16x8.add`, [ i16x8([0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000]), i16x8([0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000]), ]), [i16x8([0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0])], ); // ./test/core/simd/simd_i16x8_arith.wast:121 assert_return( () => invoke($0, `i16x8.add`, [ i16x8([0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff]), i16x8([0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1]), ]), [i16x8([0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0])], ); // ./test/core/simd/simd_i16x8_arith.wast:124 assert_return( () => invoke($0, `i16x8.add`, [ i16x8([0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff]), i16x8([0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff]), ]), [i16x8([0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe])], ); // ./test/core/simd/simd_i16x8_arith.wast:127 assert_return( () => invoke($0, `i16x8.add`, [ i16x8([0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff]), i8x16([0x0, 0x80, 0x0, 0x80, 0x0, 0x80, 0x0, 0x80, 0x0, 0x80, 0x0, 0x80, 0x0, 0x80, 0x0, 0x80]), ]), [i16x8([0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff])], ); // ./test/core/simd/simd_i16x8_arith.wast:130 assert_return( () => invoke($0, `i16x8.add`, [ i16x8([0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1]), i8x16([0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff]), ]), [i16x8([0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0])], ); // ./test/core/simd/simd_i16x8_arith.wast:133 assert_return( () => invoke($0, `i16x8.add`, [ i16x8([0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff]), i32x4([0x80008000, 0x80008000, 0x80008000, 0x80008000]), ]), [i16x8([0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff])], ); // ./test/core/simd/simd_i16x8_arith.wast:136 assert_return( () => invoke($0, `i16x8.add`, [ i16x8([0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1]), i32x4([0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff]), ]), [i16x8([0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0])], ); // ./test/core/simd/simd_i16x8_arith.wast:139 assert_return( () => invoke($0, `i16x8.add`, [ i16x8([0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000]), f32x4([0, 0, 0, 0]), ]), [i16x8([0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000])], ); // ./test/core/simd/simd_i16x8_arith.wast:142 assert_return( () => invoke($0, `i16x8.add`, [ i16x8([0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000]), f32x4([-0, -0, -0, -0]), ]), [i16x8([0x8000, 0x0, 0x8000, 0x0, 0x8000, 0x0, 0x8000, 0x0])], ); // ./test/core/simd/simd_i16x8_arith.wast:145 assert_return( () => invoke($0, `i16x8.add`, [ i16x8([0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000]), f32x4([1, 1, 1, 1]), ]), [i16x8([0x8000, 0xbf80, 0x8000, 0xbf80, 0x8000, 0xbf80, 0x8000, 0xbf80])], ); // ./test/core/simd/simd_i16x8_arith.wast:148 assert_return( () => invoke($0, `i16x8.add`, [ i16x8([0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000]), f32x4([-1, -1, -1, -1]), ]), [i16x8([0x8000, 0x3f80, 0x8000, 0x3f80, 0x8000, 0x3f80, 0x8000, 0x3f80])], ); // ./test/core/simd/simd_i16x8_arith.wast:151 assert_return( () => invoke($0, `i16x8.add`, [ i16x8([0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1]), f32x4([Infinity, Infinity, Infinity, Infinity]), ]), [i16x8([0x1, 0x7f81, 0x1, 0x7f81, 0x1, 0x7f81, 0x1, 0x7f81])], ); // ./test/core/simd/simd_i16x8_arith.wast:154 assert_return( () => invoke($0, `i16x8.add`, [ i16x8([0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1]), f32x4([-Infinity, -Infinity, -Infinity, -Infinity]), ]), [i16x8([0x1, 0xff81, 0x1, 0xff81, 0x1, 0xff81, 0x1, 0xff81])], ); // ./test/core/simd/simd_i16x8_arith.wast:157 assert_return( () => invoke($0, `i16x8.add`, [ i16x8([0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1]), bytes('v128', [ 0x0, 0x0, 0xc0, 0x7f, 0x0, 0x0, 0xc0, 0x7f, 0x0, 0x0, 0xc0, 0x7f, 0x0, 0x0, 0xc0, 0x7f, ]), ]), [i16x8([0x1, 0x7fc1, 0x1, 0x7fc1, 0x1, 0x7fc1, 0x1, 0x7fc1])], ); // ./test/core/simd/simd_i16x8_arith.wast:160 assert_return( () => invoke($0, `i16x8.add`, [ i16x8([0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7]), i16x8([0x0, 0xffff, 0xfffe, 0xfffd, 0xfffc, 0xfffb, 0xfffa, 0xfff9]), ]), [i16x8([0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0])], ); // ./test/core/simd/simd_i16x8_arith.wast:163 assert_return( () => invoke($0, `i16x8.add`, [ i16x8([0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7]), i16x8([0x0, 0x2, 0x4, 0x6, 0x8, 0xa, 0xc, 0xe]), ]), [i16x8([0x0, 0x3, 0x6, 0x9, 0xc, 0xf, 0x12, 0x15])], ); // ./test/core/simd/simd_i16x8_arith.wast:166 assert_return( () => invoke($0, `i16x8.add`, [ i16x8([0x3039, 0x3039, 0x3039, 0x3039, 0x3039, 0x3039, 0x3039, 0x3039]), i16x8([0xddd5, 0xddd5, 0xddd5, 0xddd5, 0xddd5, 0xddd5, 0xddd5, 0xddd5]), ]), [i16x8([0xe0e, 0xe0e, 0xe0e, 0xe0e, 0xe0e, 0xe0e, 0xe0e, 0xe0e])], ); // ./test/core/simd/simd_i16x8_arith.wast:169 assert_return( () => invoke($0, `i16x8.add`, [ i16x8([0x1234, 0x1234, 0x1234, 0x1234, 0x1234, 0x1234, 0x1234, 0x1234]), i16x8([0x5678, 0x5678, 0x5678, 0x5678, 0x5678, 0x5678, 0x5678, 0x5678]), ]), [i16x8([0x68ac, 0x68ac, 0x68ac, 0x68ac, 0x68ac, 0x68ac, 0x68ac, 0x68ac])], ); // ./test/core/simd/simd_i16x8_arith.wast:174 assert_return( () => invoke($0, `i16x8.sub`, [ i16x8([0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0]), i16x8([0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0]), ]), [i16x8([0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0])], ); // ./test/core/simd/simd_i16x8_arith.wast:177 assert_return( () => invoke($0, `i16x8.sub`, [ i16x8([0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0]), i16x8([0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1]), ]), [i16x8([0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff])], ); // ./test/core/simd/simd_i16x8_arith.wast:180 assert_return( () => invoke($0, `i16x8.sub`, [ i16x8([0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1]), i16x8([0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1]), ]), [i16x8([0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0])], ); // ./test/core/simd/simd_i16x8_arith.wast:183 assert_return( () => invoke($0, `i16x8.sub`, [ i16x8([0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0]), i16x8([0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff]), ]), [i16x8([0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1])], ); // ./test/core/simd/simd_i16x8_arith.wast:186 assert_return( () => invoke($0, `i16x8.sub`, [ i16x8([0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1]), i16x8([0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff]), ]), [i16x8([0x2, 0x2, 0x2, 0x2, 0x2, 0x2, 0x2, 0x2])], ); // ./test/core/simd/simd_i16x8_arith.wast:189 assert_return( () => invoke($0, `i16x8.sub`, [ i16x8([0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff]), i16x8([0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff]), ]), [i16x8([0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0])], ); // ./test/core/simd/simd_i16x8_arith.wast:192 assert_return( () => invoke($0, `i16x8.sub`, [ i16x8([0x3fff, 0x3fff, 0x3fff, 0x3fff, 0x3fff, 0x3fff, 0x3fff, 0x3fff]), i16x8([0x4000, 0x4000, 0x4000, 0x4000, 0x4000, 0x4000, 0x4000, 0x4000]), ]), [i16x8([0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff])], ); // ./test/core/simd/simd_i16x8_arith.wast:195 assert_return( () => invoke($0, `i16x8.sub`, [ i16x8([0x4000, 0x4000, 0x4000, 0x4000, 0x4000, 0x4000, 0x4000, 0x4000]), i16x8([0x4000, 0x4000, 0x4000, 0x4000, 0x4000, 0x4000, 0x4000, 0x4000]), ]), [i16x8([0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0])], ); // ./test/core/simd/simd_i16x8_arith.wast:198 assert_return( () => invoke($0, `i16x8.sub`, [ i16x8([0xc001, 0xc001, 0xc001, 0xc001, 0xc001, 0xc001, 0xc001, 0xc001]), i16x8([0xc000, 0xc000, 0xc000, 0xc000, 0xc000, 0xc000, 0xc000, 0xc000]), ]), [i16x8([0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1])], ); // ./test/core/simd/simd_i16x8_arith.wast:201 assert_return( () => invoke($0, `i16x8.sub`, [ i16x8([0xc000, 0xc000, 0xc000, 0xc000, 0xc000, 0xc000, 0xc000, 0xc000]), i16x8([0xc000, 0xc000, 0xc000, 0xc000, 0xc000, 0xc000, 0xc000, 0xc000]), ]), [i16x8([0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0])], ); // ./test/core/simd/simd_i16x8_arith.wast:204 assert_return( () => invoke($0, `i16x8.sub`, [ i16x8([0xbfff, 0xbfff, 0xbfff, 0xbfff, 0xbfff, 0xbfff, 0xbfff, 0xbfff]), i16x8([0xc000, 0xc000, 0xc000, 0xc000, 0xc000, 0xc000, 0xc000, 0xc000]), ]), [i16x8([0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff])], ); // ./test/core/simd/simd_i16x8_arith.wast:207 assert_return( () => invoke($0, `i16x8.sub`, [ i16x8([0x7ffd, 0x7ffd, 0x7ffd, 0x7ffd, 0x7ffd, 0x7ffd, 0x7ffd, 0x7ffd]), i16x8([0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1]), ]), [i16x8([0x7ffc, 0x7ffc, 0x7ffc, 0x7ffc, 0x7ffc, 0x7ffc, 0x7ffc, 0x7ffc])], ); // ./test/core/simd/simd_i16x8_arith.wast:210 assert_return( () => invoke($0, `i16x8.sub`, [ i16x8([0x7ffe, 0x7ffe, 0x7ffe, 0x7ffe, 0x7ffe, 0x7ffe, 0x7ffe, 0x7ffe]), i16x8([0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1]), ]), [i16x8([0x7ffd, 0x7ffd, 0x7ffd, 0x7ffd, 0x7ffd, 0x7ffd, 0x7ffd, 0x7ffd])], ); // ./test/core/simd/simd_i16x8_arith.wast:213 assert_return( () => invoke($0, `i16x8.sub`, [ i16x8([0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000]), i16x8([0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1]), ]), [i16x8([0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff])], ); // ./test/core/simd/simd_i16x8_arith.wast:216 assert_return( () => invoke($0, `i16x8.sub`, [ i16x8([0x8002, 0x8002, 0x8002, 0x8002, 0x8002, 0x8002, 0x8002, 0x8002]), i16x8([0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff]), ]), [i16x8([0x8003, 0x8003, 0x8003, 0x8003, 0x8003, 0x8003, 0x8003, 0x8003])], ); // ./test/core/simd/simd_i16x8_arith.wast:219 assert_return( () => invoke($0, `i16x8.sub`, [ i16x8([0x8001, 0x8001, 0x8001, 0x8001, 0x8001, 0x8001, 0x8001, 0x8001]), i16x8([0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff]), ]), [i16x8([0x8002, 0x8002, 0x8002, 0x8002, 0x8002, 0x8002, 0x8002, 0x8002])], ); // ./test/core/simd/simd_i16x8_arith.wast:222 assert_return( () => invoke($0, `i16x8.sub`, [ i16x8([0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000]), i16x8([0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff]), ]), [i16x8([0x8001, 0x8001, 0x8001, 0x8001, 0x8001, 0x8001, 0x8001, 0x8001])], ); // ./test/core/simd/simd_i16x8_arith.wast:225 assert_return( () => invoke($0, `i16x8.sub`, [ i16x8([0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff]), i16x8([0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff]), ]), [i16x8([0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0])], ); // ./test/core/simd/simd_i16x8_arith.wast:228 assert_return( () => invoke($0, `i16x8.sub`, [ i16x8([0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000]), i16x8([0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000]), ]), [i16x8([0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0])], ); // ./test/core/simd/simd_i16x8_arith.wast:231 assert_return( () => invoke($0, `i16x8.sub`, [ i16x8([0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000]), i16x8([0x8001, 0x8001, 0x8001, 0x8001, 0x8001, 0x8001, 0x8001, 0x8001]), ]), [i16x8([0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff])], ); // ./test/core/simd/simd_i16x8_arith.wast:234 assert_return( () => invoke($0, `i16x8.sub`, [ i16x8([0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff]), i16x8([0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0]), ]), [i16x8([0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff])], ); // ./test/core/simd/simd_i16x8_arith.wast:237 assert_return( () => invoke($0, `i16x8.sub`, [ i16x8([0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff]), i16x8([0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1]), ]), [i16x8([0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe])], ); // ./test/core/simd/simd_i16x8_arith.wast:240 assert_return( () => invoke($0, `i16x8.sub`, [ i16x8([0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff]), i16x8([0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff]), ]), [i16x8([0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0])], ); // ./test/core/simd/simd_i16x8_arith.wast:243 assert_return( () => invoke($0, `i16x8.sub`, [ i16x8([0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff]), i16x8([0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff]), ]), [i16x8([0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000])], ); // ./test/core/simd/simd_i16x8_arith.wast:246 assert_return( () => invoke($0, `i16x8.sub`, [ i16x8([0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff]), i16x8([0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000]), ]), [i16x8([0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff])], ); // ./test/core/simd/simd_i16x8_arith.wast:249 assert_return( () => invoke($0, `i16x8.sub`, [ i16x8([0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff]), i16x8([0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff]), ]), [i16x8([0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0])], ); // ./test/core/simd/simd_i16x8_arith.wast:252 assert_return( () => invoke($0, `i16x8.sub`, [ i16x8([0x3fff, 0x3fff, 0x3fff, 0x3fff, 0x3fff, 0x3fff, 0x3fff, 0x3fff]), i16x8([0x4000, 0x4000, 0x4000, 0x4000, 0x4000, 0x4000, 0x4000, 0x4000]), ]), [i16x8([0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff])], ); // ./test/core/simd/simd_i16x8_arith.wast:255 assert_return( () => invoke($0, `i16x8.sub`, [ i16x8([0x4000, 0x4000, 0x4000, 0x4000, 0x4000, 0x4000, 0x4000, 0x4000]), i16x8([0x4000, 0x4000, 0x4000, 0x4000, 0x4000, 0x4000, 0x4000, 0x4000]), ]), [i16x8([0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0])], ); // ./test/core/simd/simd_i16x8_arith.wast:258 assert_return( () => invoke($0, `i16x8.sub`, [ i16x8([0xc001, 0xc001, 0xc001, 0xc001, 0xc001, 0xc001, 0xc001, 0xc001]), i16x8([0xc000, 0xc000, 0xc000, 0xc000, 0xc000, 0xc000, 0xc000, 0xc000]), ]), [i16x8([0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1])], ); // ./test/core/simd/simd_i16x8_arith.wast:261 assert_return( () => invoke($0, `i16x8.sub`, [ i16x8([0xc000, 0xc000, 0xc000, 0xc000, 0xc000, 0xc000, 0xc000, 0xc000]), i16x8([0xc000, 0xc000, 0xc000, 0xc000, 0xc000, 0xc000, 0xc000, 0xc000]), ]), [i16x8([0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0])], ); // ./test/core/simd/simd_i16x8_arith.wast:264 assert_return( () => invoke($0, `i16x8.sub`, [ i16x8([0xc000, 0xc000, 0xc000, 0xc000, 0xc000, 0xc000, 0xc000, 0xc000]), i16x8([0xbfff, 0xbfff, 0xbfff, 0xbfff, 0xbfff, 0xbfff, 0xbfff, 0xbfff]), ]), [i16x8([0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1])], ); // ./test/core/simd/simd_i16x8_arith.wast:267 assert_return( () => invoke($0, `i16x8.sub`, [ i16x8([0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff]), i16x8([0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff]), ]), [i16x8([0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0])], ); // ./test/core/simd/simd_i16x8_arith.wast:270 assert_return( () => invoke($0, `i16x8.sub`, [ i16x8([0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff]), i16x8([0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1]), ]), [i16x8([0x7ffe, 0x7ffe, 0x7ffe, 0x7ffe, 0x7ffe, 0x7ffe, 0x7ffe, 0x7ffe])], ); // ./test/core/simd/simd_i16x8_arith.wast:273 assert_return( () => invoke($0, `i16x8.sub`, [ i16x8([0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000]), i16x8([0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff]), ]), [i16x8([0x8001, 0x8001, 0x8001, 0x8001, 0x8001, 0x8001, 0x8001, 0x8001])], ); // ./test/core/simd/simd_i16x8_arith.wast:276 assert_return( () => invoke($0, `i16x8.sub`, [ i16x8([0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff]), i16x8([0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000]), ]), [i16x8([0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff])], ); // ./test/core/simd/simd_i16x8_arith.wast:279 assert_return( () => invoke($0, `i16x8.sub`, [ i16x8([0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000]), i16x8([0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000]), ]), [i16x8([0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0])], ); // ./test/core/simd/simd_i16x8_arith.wast:282 assert_return( () => invoke($0, `i16x8.sub`, [ i16x8([0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff]), i16x8([0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1]), ]), [i16x8([0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe])], ); // ./test/core/simd/simd_i16x8_arith.wast:285 assert_return( () => invoke($0, `i16x8.sub`, [ i16x8([0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff]), i16x8([0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff]), ]), [i16x8([0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0])], ); // ./test/core/simd/simd_i16x8_arith.wast:288 assert_return( () => invoke($0, `i16x8.sub`, [ i16x8([0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff]), i8x16([0x0, 0x80, 0x0, 0x80, 0x0, 0x80, 0x0, 0x80, 0x0, 0x80, 0x0, 0x80, 0x0, 0x80, 0x0, 0x80]), ]), [i16x8([0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff])], ); // ./test/core/simd/simd_i16x8_arith.wast:291 assert_return( () => invoke($0, `i16x8.sub`, [ i16x8([0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1]), i8x16([0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff]), ]), [i16x8([0x2, 0x2, 0x2, 0x2, 0x2, 0x2, 0x2, 0x2])], ); // ./test/core/simd/simd_i16x8_arith.wast:294 assert_return( () => invoke($0, `i16x8.sub`, [ i16x8([0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff]), i32x4([0x80008000, 0x80008000, 0x80008000, 0x80008000]), ]), [i16x8([0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff])], ); // ./test/core/simd/simd_i16x8_arith.wast:297 assert_return( () => invoke($0, `i16x8.sub`, [ i16x8([0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1]), i32x4([0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff]), ]), [i16x8([0x2, 0x2, 0x2, 0x2, 0x2, 0x2, 0x2, 0x2])], ); // ./test/core/simd/simd_i16x8_arith.wast:300 assert_return( () => invoke($0, `i16x8.sub`, [ i16x8([0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000]), f32x4([0, 0, 0, 0]), ]), [i16x8([0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000])], ); // ./test/core/simd/simd_i16x8_arith.wast:303 assert_return( () => invoke($0, `i16x8.sub`, [ i16x8([0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000]), f32x4([-0, -0, -0, -0]), ]), [i16x8([0x8000, 0x0, 0x8000, 0x0, 0x8000, 0x0, 0x8000, 0x0])], ); // ./test/core/simd/simd_i16x8_arith.wast:306 assert_return( () => invoke($0, `i16x8.sub`, [ i16x8([0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000]), f32x4([1, 1, 1, 1]), ]), [i16x8([0x8000, 0x4080, 0x8000, 0x4080, 0x8000, 0x4080, 0x8000, 0x4080])], ); // ./test/core/simd/simd_i16x8_arith.wast:309 assert_return( () => invoke($0, `i16x8.sub`, [ i16x8([0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000]), f32x4([-1, -1, -1, -1]), ]), [i16x8([0x8000, 0xc080, 0x8000, 0xc080, 0x8000, 0xc080, 0x8000, 0xc080])], ); // ./test/core/simd/simd_i16x8_arith.wast:312 assert_return( () => invoke($0, `i16x8.sub`, [ i16x8([0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1]), f32x4([Infinity, Infinity, Infinity, Infinity]), ]), [i16x8([0x1, 0x8081, 0x1, 0x8081, 0x1, 0x8081, 0x1, 0x8081])], ); // ./test/core/simd/simd_i16x8_arith.wast:315 assert_return( () => invoke($0, `i16x8.sub`, [ i16x8([0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1]), f32x4([-Infinity, -Infinity, -Infinity, -Infinity]), ]), [i16x8([0x1, 0x81, 0x1, 0x81, 0x1, 0x81, 0x1, 0x81])], ); // ./test/core/simd/simd_i16x8_arith.wast:318 assert_return( () => invoke($0, `i16x8.sub`, [ i16x8([0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1]), bytes('v128', [ 0x0, 0x0, 0xc0, 0x7f, 0x0, 0x0, 0xc0, 0x7f, 0x0, 0x0, 0xc0, 0x7f, 0x0, 0x0, 0xc0, 0x7f, ]), ]), [i16x8([0x1, 0x8041, 0x1, 0x8041, 0x1, 0x8041, 0x1, 0x8041])], ); // ./test/core/simd/simd_i16x8_arith.wast:321 assert_return( () => invoke($0, `i16x8.sub`, [ i16x8([0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7]), i16x8([0x0, 0xffff, 0xfffe, 0xfffd, 0xfffc, 0xfffb, 0xfffa, 0xfff9]), ]), [i16x8([0x0, 0x2, 0x4, 0x6, 0x8, 0xa, 0xc, 0xe])], ); // ./test/core/simd/simd_i16x8_arith.wast:324 assert_return( () => invoke($0, `i16x8.sub`, [ i16x8([0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7]), i16x8([0x0, 0x2, 0x4, 0x6, 0x8, 0xa, 0xc, 0xe]), ]), [i16x8([0x0, 0xffff, 0xfffe, 0xfffd, 0xfffc, 0xfffb, 0xfffa, 0xfff9])], ); // ./test/core/simd/simd_i16x8_arith.wast:327 assert_return( () => invoke($0, `i16x8.sub`, [ i16x8([0xddd5, 0xddd5, 0xddd5, 0xddd5, 0xddd5, 0xddd5, 0xddd5, 0xddd5]), i16x8([0x3039, 0x3039, 0x3039, 0x3039, 0x3039, 0x3039, 0x3039, 0x3039]), ]), [i16x8([0xad9c, 0xad9c, 0xad9c, 0xad9c, 0xad9c, 0xad9c, 0xad9c, 0xad9c])], ); // ./test/core/simd/simd_i16x8_arith.wast:330 assert_return( () => invoke($0, `i16x8.sub`, [ i16x8([0x5678, 0x5678, 0x5678, 0x5678, 0x5678, 0x5678, 0x5678, 0x5678]), i16x8([0x1234, 0x1234, 0x1234, 0x1234, 0x1234, 0x1234, 0x1234, 0x1234]), ]), [i16x8([0x4444, 0x4444, 0x4444, 0x4444, 0x4444, 0x4444, 0x4444, 0x4444])], ); // ./test/core/simd/simd_i16x8_arith.wast:335 assert_return( () => invoke($0, `i16x8.mul`, [ i16x8([0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0]), i16x8([0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0]), ]), [i16x8([0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0])], ); // ./test/core/simd/simd_i16x8_arith.wast:338 assert_return( () => invoke($0, `i16x8.mul`, [ i16x8([0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0]), i16x8([0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1]), ]), [i16x8([0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0])], ); // ./test/core/simd/simd_i16x8_arith.wast:341 assert_return( () => invoke($0, `i16x8.mul`, [ i16x8([0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1]), i16x8([0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1]), ]), [i16x8([0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1])], ); // ./test/core/simd/simd_i16x8_arith.wast:344 assert_return( () => invoke($0, `i16x8.mul`, [ i16x8([0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0]), i16x8([0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff]), ]), [i16x8([0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0])], ); // ./test/core/simd/simd_i16x8_arith.wast:347 assert_return( () => invoke($0, `i16x8.mul`, [ i16x8([0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1]), i16x8([0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff]), ]), [i16x8([0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff])], ); // ./test/core/simd/simd_i16x8_arith.wast:350 assert_return( () => invoke($0, `i16x8.mul`, [ i16x8([0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff]), i16x8([0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff]), ]), [i16x8([0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1])], ); // ./test/core/simd/simd_i16x8_arith.wast:353 assert_return( () => invoke($0, `i16x8.mul`, [ i16x8([0x3fff, 0x3fff, 0x3fff, 0x3fff, 0x3fff, 0x3fff, 0x3fff, 0x3fff]), i16x8([0x4000, 0x4000, 0x4000, 0x4000, 0x4000, 0x4000, 0x4000, 0x4000]), ]), [i16x8([0xc000, 0xc000, 0xc000, 0xc000, 0xc000, 0xc000, 0xc000, 0xc000])], ); // ./test/core/simd/simd_i16x8_arith.wast:356 assert_return( () => invoke($0, `i16x8.mul`, [ i16x8([0x4000, 0x4000, 0x4000, 0x4000, 0x4000, 0x4000, 0x4000, 0x4000]), i16x8([0x4000, 0x4000, 0x4000, 0x4000, 0x4000, 0x4000, 0x4000, 0x4000]), ]), [i16x8([0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0])], ); // ./test/core/simd/simd_i16x8_arith.wast:359 assert_return( () => invoke($0, `i16x8.mul`, [ i16x8([0xc001, 0xc001, 0xc001, 0xc001, 0xc001, 0xc001, 0xc001, 0xc001]), i16x8([0xc000, 0xc000, 0xc000, 0xc000, 0xc000, 0xc000, 0xc000, 0xc000]), ]), [i16x8([0xc000, 0xc000, 0xc000, 0xc000, 0xc000, 0xc000, 0xc000, 0xc000])], ); // ./test/core/simd/simd_i16x8_arith.wast:362 assert_return( () => invoke($0, `i16x8.mul`, [ i16x8([0xc000, 0xc000, 0xc000, 0xc000, 0xc000, 0xc000, 0xc000, 0xc000]), i16x8([0xc000, 0xc000, 0xc000, 0xc000, 0xc000, 0xc000, 0xc000, 0xc000]), ]), [i16x8([0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0])], ); // ./test/core/simd/simd_i16x8_arith.wast:365 assert_return( () => invoke($0, `i16x8.mul`, [ i16x8([0xbfff, 0xbfff, 0xbfff, 0xbfff, 0xbfff, 0xbfff, 0xbfff, 0xbfff]), i16x8([0xc000, 0xc000, 0xc000, 0xc000, 0xc000, 0xc000, 0xc000, 0xc000]), ]), [i16x8([0x4000, 0x4000, 0x4000, 0x4000, 0x4000, 0x4000, 0x4000, 0x4000])], ); // ./test/core/simd/simd_i16x8_arith.wast:368 assert_return( () => invoke($0, `i16x8.mul`, [ i16x8([0x7ffd, 0x7ffd, 0x7ffd, 0x7ffd, 0x7ffd, 0x7ffd, 0x7ffd, 0x7ffd]), i16x8([0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1]), ]), [i16x8([0x7ffd, 0x7ffd, 0x7ffd, 0x7ffd, 0x7ffd, 0x7ffd, 0x7ffd, 0x7ffd])], ); // ./test/core/simd/simd_i16x8_arith.wast:371 assert_return( () => invoke($0, `i16x8.mul`, [ i16x8([0x7ffe, 0x7ffe, 0x7ffe, 0x7ffe, 0x7ffe, 0x7ffe, 0x7ffe, 0x7ffe]), i16x8([0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1]), ]), [i16x8([0x7ffe, 0x7ffe, 0x7ffe, 0x7ffe, 0x7ffe, 0x7ffe, 0x7ffe, 0x7ffe])], ); // ./test/core/simd/simd_i16x8_arith.wast:374 assert_return( () => invoke($0, `i16x8.mul`, [ i16x8([0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000]), i16x8([0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1]), ]), [i16x8([0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000])], ); // ./test/core/simd/simd_i16x8_arith.wast:377 assert_return( () => invoke($0, `i16x8.mul`, [ i16x8([0x8002, 0x8002, 0x8002, 0x8002, 0x8002, 0x8002, 0x8002, 0x8002]), i16x8([0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff]), ]), [i16x8([0x7ffe, 0x7ffe, 0x7ffe, 0x7ffe, 0x7ffe, 0x7ffe, 0x7ffe, 0x7ffe])], ); // ./test/core/simd/simd_i16x8_arith.wast:380 assert_return( () => invoke($0, `i16x8.mul`, [ i16x8([0x8001, 0x8001, 0x8001, 0x8001, 0x8001, 0x8001, 0x8001, 0x8001]), i16x8([0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff]), ]), [i16x8([0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff])], ); // ./test/core/simd/simd_i16x8_arith.wast:383 assert_return( () => invoke($0, `i16x8.mul`, [ i16x8([0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000]), i16x8([0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff]), ]), [i16x8([0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000])], ); // ./test/core/simd/simd_i16x8_arith.wast:386 assert_return( () => invoke($0, `i16x8.mul`, [ i16x8([0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff]), i16x8([0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff]), ]), [i16x8([0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1])], ); // ./test/core/simd/simd_i16x8_arith.wast:389 assert_return( () => invoke($0, `i16x8.mul`, [ i16x8([0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000]), i16x8([0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000]), ]), [i16x8([0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0])], ); // ./test/core/simd/simd_i16x8_arith.wast:392 assert_return( () => invoke($0, `i16x8.mul`, [ i16x8([0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000]), i16x8([0x8001, 0x8001, 0x8001, 0x8001, 0x8001, 0x8001, 0x8001, 0x8001]), ]), [i16x8([0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000])], ); // ./test/core/simd/simd_i16x8_arith.wast:395 assert_return( () => invoke($0, `i16x8.mul`, [ i16x8([0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff]), i16x8([0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0]), ]), [i16x8([0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0])], ); // ./test/core/simd/simd_i16x8_arith.wast:398 assert_return( () => invoke($0, `i16x8.mul`, [ i16x8([0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff]), i16x8([0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1]), ]), [i16x8([0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff])], ); // ./test/core/simd/simd_i16x8_arith.wast:401 assert_return( () => invoke($0, `i16x8.mul`, [ i16x8([0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff]), i16x8([0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff]), ]), [i16x8([0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1])], ); // ./test/core/simd/simd_i16x8_arith.wast:404 assert_return( () => invoke($0, `i16x8.mul`, [ i16x8([0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff]), i16x8([0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff]), ]), [i16x8([0x8001, 0x8001, 0x8001, 0x8001, 0x8001, 0x8001, 0x8001, 0x8001])], ); // ./test/core/simd/simd_i16x8_arith.wast:407 assert_return( () => invoke($0, `i16x8.mul`, [ i16x8([0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff]), i16x8([0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000]), ]), [i16x8([0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000])], ); // ./test/core/simd/simd_i16x8_arith.wast:410 assert_return( () => invoke($0, `i16x8.mul`, [ i16x8([0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff]), i16x8([0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff]), ]), [i16x8([0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1])], ); // ./test/core/simd/simd_i16x8_arith.wast:413 assert_return( () => invoke($0, `i16x8.mul`, [ i16x8([0x3fff, 0x3fff, 0x3fff, 0x3fff, 0x3fff, 0x3fff, 0x3fff, 0x3fff]), i16x8([0x4000, 0x4000, 0x4000, 0x4000, 0x4000, 0x4000, 0x4000, 0x4000]), ]), [i16x8([0xc000, 0xc000, 0xc000, 0xc000, 0xc000, 0xc000, 0xc000, 0xc000])], ); // ./test/core/simd/simd_i16x8_arith.wast:416 assert_return( () => invoke($0, `i16x8.mul`, [ i16x8([0x4000, 0x4000, 0x4000, 0x4000, 0x4000, 0x4000, 0x4000, 0x4000]), i16x8([0x4000, 0x4000, 0x4000, 0x4000, 0x4000, 0x4000, 0x4000, 0x4000]), ]), [i16x8([0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0])], ); // ./test/core/simd/simd_i16x8_arith.wast:419 assert_return( () => invoke($0, `i16x8.mul`, [ i16x8([0xc001, 0xc001, 0xc001, 0xc001, 0xc001, 0xc001, 0xc001, 0xc001]), i16x8([0xc000, 0xc000, 0xc000, 0xc000, 0xc000, 0xc000, 0xc000, 0xc000]), ]), [i16x8([0xc000, 0xc000, 0xc000, 0xc000, 0xc000, 0xc000, 0xc000, 0xc000])], ); // ./test/core/simd/simd_i16x8_arith.wast:422 assert_return( () => invoke($0, `i16x8.mul`, [ i16x8([0xc000, 0xc000, 0xc000, 0xc000, 0xc000, 0xc000, 0xc000, 0xc000]), i16x8([0xc000, 0xc000, 0xc000, 0xc000, 0xc000, 0xc000, 0xc000, 0xc000]), ]), [i16x8([0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0])], ); // ./test/core/simd/simd_i16x8_arith.wast:425 assert_return( () => invoke($0, `i16x8.mul`, [ i16x8([0xc000, 0xc000, 0xc000, 0xc000, 0xc000, 0xc000, 0xc000, 0xc000]), i16x8([0xbfff, 0xbfff, 0xbfff, 0xbfff, 0xbfff, 0xbfff, 0xbfff, 0xbfff]), ]), [i16x8([0x4000, 0x4000, 0x4000, 0x4000, 0x4000, 0x4000, 0x4000, 0x4000])], ); // ./test/core/simd/simd_i16x8_arith.wast:428 assert_return( () => invoke($0, `i16x8.mul`, [ i16x8([0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff]), i16x8([0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff]), ]), [i16x8([0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1])], ); // ./test/core/simd/simd_i16x8_arith.wast:431 assert_return( () => invoke($0, `i16x8.mul`, [ i16x8([0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff]), i16x8([0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1]), ]), [i16x8([0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff])], ); // ./test/core/simd/simd_i16x8_arith.wast:434 assert_return( () => invoke($0, `i16x8.mul`, [ i16x8([0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000]), i16x8([0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff]), ]), [i16x8([0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000])], ); // ./test/core/simd/simd_i16x8_arith.wast:437 assert_return( () => invoke($0, `i16x8.mul`, [ i16x8([0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff]), i16x8([0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000]), ]), [i16x8([0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000])], ); // ./test/core/simd/simd_i16x8_arith.wast:440 assert_return( () => invoke($0, `i16x8.mul`, [ i16x8([0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000]), i16x8([0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000]), ]), [i16x8([0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0])], ); // ./test/core/simd/simd_i16x8_arith.wast:443 assert_return( () => invoke($0, `i16x8.mul`, [ i16x8([0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff]), i16x8([0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1]), ]), [i16x8([0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff])], ); // ./test/core/simd/simd_i16x8_arith.wast:446 assert_return( () => invoke($0, `i16x8.mul`, [ i16x8([0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff]), i16x8([0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff]), ]), [i16x8([0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1])], ); // ./test/core/simd/simd_i16x8_arith.wast:449 assert_return( () => invoke($0, `i16x8.mul`, [ i16x8([0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000]), i8x16([0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10]), ]), [i16x8([0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0])], ); // ./test/core/simd/simd_i16x8_arith.wast:452 assert_return( () => invoke($0, `i16x8.mul`, [ i16x8([0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff]), i8x16([0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff]), ]), [i16x8([0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1])], ); // ./test/core/simd/simd_i16x8_arith.wast:455 assert_return( () => invoke($0, `i16x8.mul`, [ i16x8([0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000]), i32x4([0x20002, 0x20002, 0x20002, 0x20002]), ]), [i16x8([0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0])], ); // ./test/core/simd/simd_i16x8_arith.wast:458 assert_return( () => invoke($0, `i16x8.mul`, [ i16x8([0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff]), i32x4([0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff]), ]), [i16x8([0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1])], ); // ./test/core/simd/simd_i16x8_arith.wast:461 assert_return( () => invoke($0, `i16x8.mul`, [ i16x8([0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000]), f32x4([0, 0, 0, 0]), ]), [i16x8([0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0])], ); // ./test/core/simd/simd_i16x8_arith.wast:464 assert_return( () => invoke($0, `i16x8.mul`, [ i16x8([0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000]), f32x4([-0, -0, -0, -0]), ]), [i16x8([0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0])], ); // ./test/core/simd/simd_i16x8_arith.wast:467 assert_return( () => invoke($0, `i16x8.mul`, [ i16x8([0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000]), f32x4([1, 1, 1, 1]), ]), [i16x8([0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0])], ); // ./test/core/simd/simd_i16x8_arith.wast:470 assert_return( () => invoke($0, `i16x8.mul`, [ i16x8([0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000]), f32x4([-1, -1, -1, -1]), ]), [i16x8([0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0])], ); // ./test/core/simd/simd_i16x8_arith.wast:473 assert_return( () => invoke($0, `i16x8.mul`, [ i16x8([0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1]), f32x4([Infinity, Infinity, Infinity, Infinity]), ]), [i16x8([0x0, 0x7f80, 0x0, 0x7f80, 0x0, 0x7f80, 0x0, 0x7f80])], ); // ./test/core/simd/simd_i16x8_arith.wast:476 assert_return( () => invoke($0, `i16x8.mul`, [ i16x8([0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1]), f32x4([-Infinity, -Infinity, -Infinity, -Infinity]), ]), [i16x8([0x0, 0xff80, 0x0, 0xff80, 0x0, 0xff80, 0x0, 0xff80])], ); // ./test/core/simd/simd_i16x8_arith.wast:479 assert_return( () => invoke($0, `i16x8.mul`, [ i16x8([0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1]), bytes('v128', [ 0x0, 0x0, 0xc0, 0x7f, 0x0, 0x0, 0xc0, 0x7f, 0x0, 0x0, 0xc0, 0x7f, 0x0, 0x0, 0xc0, 0x7f, ]), ]), [i16x8([0x0, 0x7fc0, 0x0, 0x7fc0, 0x0, 0x7fc0, 0x0, 0x7fc0])], ); // ./test/core/simd/simd_i16x8_arith.wast:482 assert_return( () => invoke($0, `i16x8.mul`, [ i16x8([0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7]), i16x8([0x0, 0xffff, 0xfffe, 0xfffd, 0xfffc, 0xfffb, 0xfffa, 0xfff9]), ]), [i16x8([0x0, 0xffff, 0xfffc, 0xfff7, 0xfff0, 0xffe7, 0xffdc, 0xffcf])], ); // ./test/core/simd/simd_i16x8_arith.wast:485 assert_return( () => invoke($0, `i16x8.mul`, [ i16x8([0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7]), i16x8([0x0, 0x2, 0x4, 0x6, 0x8, 0xa, 0xc, 0xe]), ]), [i16x8([0x0, 0x2, 0x8, 0x12, 0x20, 0x32, 0x48, 0x62])], ); // ./test/core/simd/simd_i16x8_arith.wast:488 assert_return( () => invoke($0, `i16x8.mul`, [ i16x8([0x3039, 0x3039, 0x3039, 0x3039, 0x3039, 0x3039, 0x3039, 0x3039]), i16x8([0xddd5, 0xddd5, 0xddd5, 0xddd5, 0xddd5, 0xddd5, 0xddd5, 0xddd5]), ]), [i16x8([0x546d, 0x546d, 0x546d, 0x546d, 0x546d, 0x546d, 0x546d, 0x546d])], ); // ./test/core/simd/simd_i16x8_arith.wast:491 assert_return( () => invoke($0, `i16x8.mul`, [ i16x8([0x1234, 0x1234, 0x1234, 0x1234, 0x1234, 0x1234, 0x1234, 0x1234]), i16x8([0xcdef, 0xcdef, 0xcdef, 0xcdef, 0xcdef, 0xcdef, 0xcdef, 0xcdef]), ]), [i16x8([0xa28c, 0xa28c, 0xa28c, 0xa28c, 0xa28c, 0xa28c, 0xa28c, 0xa28c])], ); // ./test/core/simd/simd_i16x8_arith.wast:496 assert_return( () => invoke($0, `i16x8.neg`, [i16x8([0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0])]), [i16x8([0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0])], ); // ./test/core/simd/simd_i16x8_arith.wast:498 assert_return( () => invoke($0, `i16x8.neg`, [i16x8([0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1])]), [i16x8([0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff])], ); // ./test/core/simd/simd_i16x8_arith.wast:500 assert_return( () => invoke($0, `i16x8.neg`, [ i16x8([0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff]), ]), [i16x8([0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1])], ); // ./test/core/simd/simd_i16x8_arith.wast:502 assert_return( () => invoke($0, `i16x8.neg`, [ i16x8([0x7ffe, 0x7ffe, 0x7ffe, 0x7ffe, 0x7ffe, 0x7ffe, 0x7ffe, 0x7ffe]), ]), [i16x8([0x8002, 0x8002, 0x8002, 0x8002, 0x8002, 0x8002, 0x8002, 0x8002])], ); // ./test/core/simd/simd_i16x8_arith.wast:504 assert_return( () => invoke($0, `i16x8.neg`, [ i16x8([0x8001, 0x8001, 0x8001, 0x8001, 0x8001, 0x8001, 0x8001, 0x8001]), ]), [i16x8([0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff])], ); // ./test/core/simd/simd_i16x8_arith.wast:506 assert_return( () => invoke($0, `i16x8.neg`, [ i16x8([0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000]), ]), [i16x8([0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000])], ); // ./test/core/simd/simd_i16x8_arith.wast:508 assert_return( () => invoke($0, `i16x8.neg`, [ i16x8([0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff]), ]), [i16x8([0x8001, 0x8001, 0x8001, 0x8001, 0x8001, 0x8001, 0x8001, 0x8001])], ); // ./test/core/simd/simd_i16x8_arith.wast:510 assert_return( () => invoke($0, `i16x8.neg`, [ i16x8([0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff]), ]), [i16x8([0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1])], ); // ./test/core/simd/simd_i16x8_arith.wast:512 assert_return( () => invoke($0, `i16x8.neg`, [i16x8([0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1])]), [i16x8([0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff])], ); // ./test/core/simd/simd_i16x8_arith.wast:514 assert_return( () => invoke($0, `i16x8.neg`, [ i16x8([0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff]), ]), [i16x8([0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1])], ); // ./test/core/simd/simd_i16x8_arith.wast:516 assert_return( () => invoke($0, `i16x8.neg`, [ i16x8([0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000]), ]), [i16x8([0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000])], ); // ./test/core/simd/simd_i16x8_arith.wast:518 assert_return( () => invoke($0, `i16x8.neg`, [ i16x8([0x8001, 0x8001, 0x8001, 0x8001, 0x8001, 0x8001, 0x8001, 0x8001]), ]), [i16x8([0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff])], ); // ./test/core/simd/simd_i16x8_arith.wast:520 assert_return( () => invoke($0, `i16x8.neg`, [ i16x8([0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff]), ]), [i16x8([0x8001, 0x8001, 0x8001, 0x8001, 0x8001, 0x8001, 0x8001, 0x8001])], ); // ./test/core/simd/simd_i16x8_arith.wast:522 assert_return( () => invoke($0, `i16x8.neg`, [ i16x8([0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000]), ]), [i16x8([0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000])], ); // ./test/core/simd/simd_i16x8_arith.wast:524 assert_return( () => invoke($0, `i16x8.neg`, [ i16x8([0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff]), ]), [i16x8([0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1])], ); // ./test/core/simd/simd_i16x8_arith.wast:528 assert_invalid( () => instantiate(`(module (func (result v128) (i16x8.neg (i32.const 0))))`), `type mismatch`, ); // ./test/core/simd/simd_i16x8_arith.wast:529 assert_invalid( () => instantiate(`(module (func (result v128) (i16x8.add (i32.const 0) (f32.const 0.0))))`), `type mismatch`, ); // ./test/core/simd/simd_i16x8_arith.wast:530 assert_invalid( () => instantiate(`(module (func (result v128) (i16x8.sub (i32.const 0) (f32.const 0.0))))`), `type mismatch`, ); // ./test/core/simd/simd_i16x8_arith.wast:531 assert_invalid( () => instantiate(`(module (func (result v128) (i16x8.mul (i32.const 0) (f32.const 0.0))))`), `type mismatch`, ); // ./test/core/simd/simd_i16x8_arith.wast:535 assert_invalid( () => instantiate(`(module (func $$i16x8.neg-arg-empty (result v128) (i16x8.neg) ) )`), `type mismatch`, ); // ./test/core/simd/simd_i16x8_arith.wast:543 assert_invalid( () => instantiate(`(module (func $$i16x8.add-1st-arg-empty (result v128) (i16x8.add (v128.const i16x8 0 0 0 0 0 0 0 0)) ) )`), `type mismatch`, ); // ./test/core/simd/simd_i16x8_arith.wast:551 assert_invalid( () => instantiate(`(module (func $$i16x8.add-arg-empty (result v128) (i16x8.add) ) )`), `type mismatch`, ); // ./test/core/simd/simd_i16x8_arith.wast:559 assert_invalid( () => instantiate(`(module (func $$i16x8.sub-1st-arg-empty (result v128) (i16x8.sub (v128.const i16x8 0 0 0 0 0 0 0 0)) ) )`), `type mismatch`, ); // ./test/core/simd/simd_i16x8_arith.wast:567 assert_invalid( () => instantiate(`(module (func $$i16x8.sub-arg-empty (result v128) (i16x8.sub) ) )`), `type mismatch`, ); // ./test/core/simd/simd_i16x8_arith.wast:575 assert_invalid( () => instantiate(`(module (func $$i16x8.mul-1st-arg-empty (result v128) (i16x8.mul (v128.const i16x8 0 0 0 0 0 0 0 0)) ) )`), `type mismatch`, ); // ./test/core/simd/simd_i16x8_arith.wast:583 assert_invalid( () => instantiate(`(module (func $$i16x8.mul-arg-empty (result v128) (i16x8.mul) ) )`), `type mismatch`, ); // ./test/core/simd/simd_i16x8_arith.wast:593 let $1 = instantiate(`(module (func (export "add-sub") (param v128 v128 v128) (result v128) (i16x8.add (i16x8.sub (local.get 0) (local.get 1))(local.get 2))) (func (export "mul-add") (param v128 v128 v128) (result v128) (i16x8.mul (i16x8.add (local.get 0) (local.get 1))(local.get 2))) (func (export "mul-sub") (param v128 v128 v128) (result v128) (i16x8.mul (i16x8.sub (local.get 0) (local.get 1))(local.get 2))) (func (export "sub-add") (param v128 v128 v128) (result v128) (i16x8.sub (i16x8.add (local.get 0) (local.get 1))(local.get 2))) (func (export "add-neg") (param v128 v128) (result v128) (i16x8.add (i16x8.neg (local.get 0)) (local.get 1))) (func (export "mul-neg") (param v128 v128) (result v128) (i16x8.mul (i16x8.neg (local.get 0)) (local.get 1))) (func (export "sub-neg") (param v128 v128) (result v128) (i16x8.sub (i16x8.neg (local.get 0)) (local.get 1))) )`); // ./test/core/simd/simd_i16x8_arith.wast:610 assert_return( () => invoke($1, `add-sub`, [ i16x8([0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7]), i16x8([0x0, 0x2, 0x4, 0x6, 0x8, 0xa, 0xc, 0xe]), i16x8([0x0, 0x2, 0x4, 0x6, 0x8, 0xa, 0xc, 0xe]), ]), [i16x8([0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7])], ); // ./test/core/simd/simd_i16x8_arith.wast:614 assert_return( () => invoke($1, `mul-add`, [ i16x8([0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7]), i16x8([0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7]), i16x8([0x2, 0x2, 0x2, 0x2, 0x2, 0x2, 0x2, 0x2]), ]), [i16x8([0x0, 0x4, 0x8, 0xc, 0x10, 0x14, 0x18, 0x1c])], ); // ./test/core/simd/simd_i16x8_arith.wast:618 assert_return( () => invoke($1, `mul-sub`, [ i16x8([0x0, 0x2, 0x4, 0x6, 0x8, 0xa, 0xc, 0xe]), i16x8([0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7]), i16x8([0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7]), ]), [i16x8([0x0, 0x1, 0x4, 0x9, 0x10, 0x19, 0x24, 0x31])], ); // ./test/core/simd/simd_i16x8_arith.wast:622 assert_return( () => invoke($1, `sub-add`, [ i16x8([0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7]), i16x8([0x0, 0x2, 0x4, 0x6, 0x8, 0xa, 0xc, 0xe]), i16x8([0x0, 0x2, 0x4, 0x6, 0x8, 0xa, 0xc, 0xe]), ]), [i16x8([0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7])], ); // ./test/core/simd/simd_i16x8_arith.wast:626 assert_return( () => invoke($1, `add-neg`, [ i16x8([0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7]), i16x8([0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7]), ]), [i16x8([0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0])], ); // ./test/core/simd/simd_i16x8_arith.wast:629 assert_return( () => invoke($1, `mul-neg`, [ i16x8([0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7]), i16x8([0x2, 0x2, 0x2, 0x2, 0x2, 0x2, 0x2, 0x2]), ]), [i16x8([0x0, 0xfffe, 0xfffc, 0xfffa, 0xfff8, 0xfff6, 0xfff4, 0xfff2])], ); // ./test/core/simd/simd_i16x8_arith.wast:632 assert_return( () => invoke($1, `sub-neg`, [ i16x8([0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7]), i16x8([0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7]), ]), [i16x8([0x0, 0xfffe, 0xfffc, 0xfffa, 0xfff8, 0xfff6, 0xfff4, 0xfff2])], );