diff options
Diffstat (limited to 'js/src/jit-test/tests/wasm/spec/spec/simd_f64x2_rounding.wast.js')
-rw-r--r-- | js/src/jit-test/tests/wasm/spec/spec/simd_f64x2_rounding.wast.js | 2210 |
1 files changed, 2210 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/wasm/spec/spec/simd_f64x2_rounding.wast.js b/js/src/jit-test/tests/wasm/spec/spec/simd_f64x2_rounding.wast.js new file mode 100644 index 0000000000..c787804bc2 --- /dev/null +++ b/js/src/jit-test/tests/wasm/spec/spec/simd_f64x2_rounding.wast.js @@ -0,0 +1,2210 @@ +// |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_f64x2_rounding.wast + +// ./test/core/simd/simd_f64x2_rounding.wast:4 +let $0 = instantiate(`(module + (func (export "f64x2.ceil") (param v128) (result v128) (f64x2.ceil (local.get 0))) + (func (export "f64x2.floor") (param v128) (result v128) (f64x2.floor (local.get 0))) + (func (export "f64x2.trunc") (param v128) (result v128) (f64x2.trunc (local.get 0))) + (func (export "f64x2.nearest") (param v128) (result v128) (f64x2.nearest (local.get 0))) +)`); + +// ./test/core/simd/simd_f64x2_rounding.wast:11 +assert_return( + () => invoke($0, `f64x2.ceil`, [f64x2([0, 0])]), + [new F64x2Pattern(value("f64", 0), value("f64", 0))], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:13 +assert_return( + () => invoke($0, `f64x2.ceil`, [f64x2([-0, -0])]), + [new F64x2Pattern(value("f64", -0), value("f64", -0))], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:15 +assert_return( + () => invoke($0, `f64x2.ceil`, [ + f64x2([ + 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000022250738585072014, + 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000022250738585072014, + ]), + ]), + [new F64x2Pattern(value("f64", 1), value("f64", 1))], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:17 +assert_return( + () => invoke($0, `f64x2.ceil`, [ + f64x2([ + -0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000022250738585072014, + -0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000022250738585072014, + ]), + ]), + [new F64x2Pattern(value("f64", -0), value("f64", -0))], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:19 +assert_return( + () => invoke($0, `f64x2.ceil`, [f64x2([0.5, 0.5])]), + [new F64x2Pattern(value("f64", 1), value("f64", 1))], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:21 +assert_return( + () => invoke($0, `f64x2.ceil`, [f64x2([-0.5, -0.5])]), + [new F64x2Pattern(value("f64", -0), value("f64", -0))], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:23 +assert_return( + () => invoke($0, `f64x2.ceil`, [f64x2([1, 1])]), + [new F64x2Pattern(value("f64", 1), value("f64", 1))], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:25 +assert_return( + () => invoke($0, `f64x2.ceil`, [f64x2([-1, -1])]), + [new F64x2Pattern(value("f64", -1), value("f64", -1))], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:27 +assert_return( + () => invoke($0, `f64x2.ceil`, [f64x2([6.283185307179586, 6.283185307179586])]), + [new F64x2Pattern(value("f64", 7), value("f64", 7))], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:29 +assert_return( + () => invoke($0, `f64x2.ceil`, [f64x2([-6.283185307179586, -6.283185307179586])]), + [new F64x2Pattern(value("f64", -6), value("f64", -6))], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:31 +assert_return( + () => invoke($0, `f64x2.ceil`, [ + f64x2([ + 179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, + 179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, + ]), + ]), + [ + new F64x2Pattern( + value("f64", 179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), + value("f64", 179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), + ), + ], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:33 +assert_return( + () => invoke($0, `f64x2.ceil`, [ + f64x2([ + -179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, + -179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, + ]), + ]), + [ + new F64x2Pattern( + value("f64", -179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), + value("f64", -179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), + ), + ], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:35 +assert_return( + () => invoke($0, `f64x2.ceil`, [ + f64x2([ + 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005, + 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005, + ]), + ]), + [new F64x2Pattern(value("f64", 1), value("f64", 1))], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:37 +assert_return( + () => invoke($0, `f64x2.ceil`, [ + f64x2([ + 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005, + 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005, + ]), + ]), + [new F64x2Pattern(value("f64", 1), value("f64", 1))], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:39 +assert_return( + () => invoke($0, `f64x2.ceil`, [f64x2([Infinity, Infinity])]), + [new F64x2Pattern(value("f64", Infinity), value("f64", Infinity))], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:41 +assert_return( + () => invoke($0, `f64x2.ceil`, [f64x2([-Infinity, -Infinity])]), + [new F64x2Pattern(value("f64", -Infinity), value("f64", -Infinity))], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:43 +assert_return( + () => invoke($0, `f64x2.ceil`, [f64x2([123456789, 123456789])]), + [new F64x2Pattern(value("f64", 123456789), value("f64", 123456789))], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:45 +assert_return( + () => invoke($0, `f64x2.ceil`, [ + f64x2([1234567890000000000000000000, 1234567890000000000000000000]), + ]), + [ + new F64x2Pattern( + value("f64", 1234567890000000000000000000), + value("f64", 1234567890000000000000000000), + ), + ], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:47 +assert_return( + () => invoke($0, `f64x2.ceil`, [ + f64x2([1234567890000000000000000000, 1234567890000000000000000000]), + ]), + [ + new F64x2Pattern( + value("f64", 1234567890000000000000000000), + value("f64", 1234567890000000000000000000), + ), + ], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:49 +assert_return( + () => invoke($0, `f64x2.ceil`, [ + f64x2([0.0000000000123456789, 0.0000000000123456789]), + ]), + [new F64x2Pattern(value("f64", 1), value("f64", 1))], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:51 +assert_return( + () => invoke($0, `f64x2.ceil`, [f64x2([123456789, 123456789])]), + [new F64x2Pattern(value("f64", 123456789), value("f64", 123456789))], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:53 +assert_return( + () => invoke($0, `f64x2.ceil`, [ + f64x2([1234567890000000000000000000, 1234567890000000000000000000]), + ]), + [ + new F64x2Pattern( + value("f64", 1234567890000000000000000000), + value("f64", 1234567890000000000000000000), + ), + ], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:55 +assert_return( + () => invoke($0, `f64x2.ceil`, [ + f64x2([1234567890000000000000000000, 1234567890000000000000000000]), + ]), + [ + new F64x2Pattern( + value("f64", 1234567890000000000000000000), + value("f64", 1234567890000000000000000000), + ), + ], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:57 +assert_return( + () => invoke($0, `f64x2.ceil`, [ + f64x2([0.0000000000123456789, 0.0000000000123456789]), + ]), + [new F64x2Pattern(value("f64", 1), value("f64", 1))], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:59 +assert_return( + () => invoke($0, `f64x2.ceil`, [f64x2([123456789.01234567, 123456789.01234567])]), + [new F64x2Pattern(value("f64", 123456790), value("f64", 123456790))], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:61 +assert_return( + () => invoke($0, `f64x2.ceil`, [ + f64x2([1234567890123456900000000000, 1234567890123456900000000000]), + ]), + [ + new F64x2Pattern( + value("f64", 1234567890123456900000000000), + value("f64", 1234567890123456900000000000), + ), + ], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:63 +assert_return( + () => invoke($0, `f64x2.ceil`, [ + f64x2([1234567890123456900000000000, 1234567890123456900000000000]), + ]), + [ + new F64x2Pattern( + value("f64", 1234567890123456900000000000), + value("f64", 1234567890123456900000000000), + ), + ], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:65 +assert_return( + () => invoke($0, `f64x2.ceil`, [ + f64x2([0.000000000012345678901234568, 0.000000000012345678901234568]), + ]), + [new F64x2Pattern(value("f64", 1), value("f64", 1))], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:67 +assert_return( + () => invoke($0, `f64x2.ceil`, [ + f64x2([1375488932539311400000000, 1375488932539311400000000]), + ]), + [ + new F64x2Pattern( + value("f64", 1375488932539311400000000), + value("f64", 1375488932539311400000000), + ), + ], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:69 +assert_return( + () => invoke($0, `f64x2.ceil`, [ + f64x2([721152341463170500000000000000, 721152341463170500000000000000]), + ]), + [ + new F64x2Pattern( + value("f64", 721152341463170500000000000000), + value("f64", 721152341463170500000000000000), + ), + ], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:71 +assert_return( + () => invoke($0, `f64x2.ceil`, [ + f64x2([721152341463170500000000000000, 721152341463170500000000000000]), + ]), + [ + new F64x2Pattern( + value("f64", 721152341463170500000000000000), + value("f64", 721152341463170500000000000000), + ), + ], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:73 +assert_return( + () => invoke($0, `f64x2.ceil`, [f64x2([2623536934927580700, 2623536934927580700])]), + [ + new F64x2Pattern( + value("f64", 2623536934927580700), + value("f64", 2623536934927580700), + ), + ], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:75 +assert_return( + () => invoke($0, `f64x2.ceil`, [ + f64x2([1375488932539311400000000, 1375488932539311400000000]), + ]), + [ + new F64x2Pattern( + value("f64", 1375488932539311400000000), + value("f64", 1375488932539311400000000), + ), + ], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:77 +assert_return( + () => invoke($0, `f64x2.ceil`, [ + f64x2([721152341463170500000000000000, 721152341463170500000000000000]), + ]), + [ + new F64x2Pattern( + value("f64", 721152341463170500000000000000), + value("f64", 721152341463170500000000000000), + ), + ], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:79 +assert_return( + () => invoke($0, `f64x2.ceil`, [ + f64x2([721152341463170500000000000000, 721152341463170500000000000000]), + ]), + [ + new F64x2Pattern( + value("f64", 721152341463170500000000000000), + value("f64", 721152341463170500000000000000), + ), + ], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:81 +assert_return( + () => invoke($0, `f64x2.ceil`, [f64x2([2623536934927580700, 2623536934927580700])]), + [ + new F64x2Pattern( + value("f64", 2623536934927580700), + value("f64", 2623536934927580700), + ), + ], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:83 +assert_return( + () => invoke($0, `f64x2.ceil`, [ + f64x2([1375488932539311400000000, 1375488932539311400000000]), + ]), + [ + new F64x2Pattern( + value("f64", 1375488932539311400000000), + value("f64", 1375488932539311400000000), + ), + ], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:85 +assert_return( + () => invoke($0, `f64x2.ceil`, [ + f64x2([721152341463170500000000000000, 721152341463170500000000000000]), + ]), + [ + new F64x2Pattern( + value("f64", 721152341463170500000000000000), + value("f64", 721152341463170500000000000000), + ), + ], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:87 +assert_return( + () => invoke($0, `f64x2.ceil`, [ + f64x2([721152341463170500000000000000, 721152341463170500000000000000]), + ]), + [ + new F64x2Pattern( + value("f64", 721152341463170500000000000000), + value("f64", 721152341463170500000000000000), + ), + ], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:89 +assert_return( + () => invoke($0, `f64x2.ceil`, [f64x2([2623536934927580700, 2623536934927580700])]), + [ + new F64x2Pattern( + value("f64", 2623536934927580700), + value("f64", 2623536934927580700), + ), + ], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:91 +assert_return( + () => invoke($0, `f64x2.ceil`, [ + bytes('v128', [ + 0x0, + 0x0, + 0x0, + 0x0, + 0x0, + 0x0, + 0xf8, + 0x7f, + 0x0, + 0x0, + 0x0, + 0x0, + 0x0, + 0x0, + 0xf8, + 0x7f, + ]), + ]), + [new F64x2Pattern(`canonical_nan`, `canonical_nan`)], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:93 +assert_return( + () => invoke($0, `f64x2.ceil`, [ + bytes('v128', [ + 0x0, + 0x0, + 0x0, + 0x0, + 0x0, + 0x0, + 0xf8, + 0xff, + 0x0, + 0x0, + 0x0, + 0x0, + 0x0, + 0x0, + 0xf8, + 0xff, + ]), + ]), + [new F64x2Pattern(`canonical_nan`, `canonical_nan`)], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:95 +assert_return( + () => invoke($0, `f64x2.ceil`, [ + bytes('v128', [ + 0x0, + 0x0, + 0x0, + 0x0, + 0x0, + 0x0, + 0xf4, + 0x7f, + 0x0, + 0x0, + 0x0, + 0x0, + 0x0, + 0x0, + 0xf4, + 0x7f, + ]), + ]), + [new F64x2Pattern(`arithmetic_nan`, `arithmetic_nan`)], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:97 +assert_return( + () => invoke($0, `f64x2.ceil`, [ + bytes('v128', [ + 0x0, + 0x0, + 0x0, + 0x0, + 0x0, + 0x0, + 0xf4, + 0xff, + 0x0, + 0x0, + 0x0, + 0x0, + 0x0, + 0x0, + 0xf4, + 0xff, + ]), + ]), + [new F64x2Pattern(`arithmetic_nan`, `arithmetic_nan`)], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:99 +assert_return( + () => invoke($0, `f64x2.floor`, [f64x2([0, 0])]), + [new F64x2Pattern(value("f64", 0), value("f64", 0))], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:101 +assert_return( + () => invoke($0, `f64x2.floor`, [f64x2([-0, -0])]), + [new F64x2Pattern(value("f64", -0), value("f64", -0))], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:103 +assert_return( + () => invoke($0, `f64x2.floor`, [ + f64x2([ + 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000022250738585072014, + 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000022250738585072014, + ]), + ]), + [new F64x2Pattern(value("f64", 0), value("f64", 0))], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:105 +assert_return( + () => invoke($0, `f64x2.floor`, [ + f64x2([ + -0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000022250738585072014, + -0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000022250738585072014, + ]), + ]), + [new F64x2Pattern(value("f64", -1), value("f64", -1))], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:107 +assert_return( + () => invoke($0, `f64x2.floor`, [f64x2([0.5, 0.5])]), + [new F64x2Pattern(value("f64", 0), value("f64", 0))], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:109 +assert_return( + () => invoke($0, `f64x2.floor`, [f64x2([-0.5, -0.5])]), + [new F64x2Pattern(value("f64", -1), value("f64", -1))], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:111 +assert_return( + () => invoke($0, `f64x2.floor`, [f64x2([1, 1])]), + [new F64x2Pattern(value("f64", 1), value("f64", 1))], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:113 +assert_return( + () => invoke($0, `f64x2.floor`, [f64x2([-1, -1])]), + [new F64x2Pattern(value("f64", -1), value("f64", -1))], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:115 +assert_return( + () => invoke($0, `f64x2.floor`, [f64x2([6.283185307179586, 6.283185307179586])]), + [new F64x2Pattern(value("f64", 6), value("f64", 6))], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:117 +assert_return( + () => invoke($0, `f64x2.floor`, [f64x2([-6.283185307179586, -6.283185307179586])]), + [new F64x2Pattern(value("f64", -7), value("f64", -7))], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:119 +assert_return( + () => invoke($0, `f64x2.floor`, [ + f64x2([ + 179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, + 179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, + ]), + ]), + [ + new F64x2Pattern( + value("f64", 179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), + value("f64", 179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), + ), + ], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:121 +assert_return( + () => invoke($0, `f64x2.floor`, [ + f64x2([ + -179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, + -179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, + ]), + ]), + [ + new F64x2Pattern( + value("f64", -179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), + value("f64", -179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), + ), + ], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:123 +assert_return( + () => invoke($0, `f64x2.floor`, [ + f64x2([ + 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005, + 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005, + ]), + ]), + [new F64x2Pattern(value("f64", 0), value("f64", 0))], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:125 +assert_return( + () => invoke($0, `f64x2.floor`, [ + f64x2([ + 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005, + 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005, + ]), + ]), + [new F64x2Pattern(value("f64", 0), value("f64", 0))], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:127 +assert_return( + () => invoke($0, `f64x2.floor`, [f64x2([Infinity, Infinity])]), + [new F64x2Pattern(value("f64", Infinity), value("f64", Infinity))], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:129 +assert_return( + () => invoke($0, `f64x2.floor`, [f64x2([-Infinity, -Infinity])]), + [new F64x2Pattern(value("f64", -Infinity), value("f64", -Infinity))], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:131 +assert_return( + () => invoke($0, `f64x2.floor`, [f64x2([123456789, 123456789])]), + [new F64x2Pattern(value("f64", 123456789), value("f64", 123456789))], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:133 +assert_return( + () => invoke($0, `f64x2.floor`, [ + f64x2([1234567890000000000000000000, 1234567890000000000000000000]), + ]), + [ + new F64x2Pattern( + value("f64", 1234567890000000000000000000), + value("f64", 1234567890000000000000000000), + ), + ], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:135 +assert_return( + () => invoke($0, `f64x2.floor`, [ + f64x2([1234567890000000000000000000, 1234567890000000000000000000]), + ]), + [ + new F64x2Pattern( + value("f64", 1234567890000000000000000000), + value("f64", 1234567890000000000000000000), + ), + ], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:137 +assert_return( + () => invoke($0, `f64x2.floor`, [ + f64x2([0.0000000000123456789, 0.0000000000123456789]), + ]), + [new F64x2Pattern(value("f64", 0), value("f64", 0))], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:139 +assert_return( + () => invoke($0, `f64x2.floor`, [f64x2([123456789, 123456789])]), + [new F64x2Pattern(value("f64", 123456789), value("f64", 123456789))], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:141 +assert_return( + () => invoke($0, `f64x2.floor`, [ + f64x2([1234567890000000000000000000, 1234567890000000000000000000]), + ]), + [ + new F64x2Pattern( + value("f64", 1234567890000000000000000000), + value("f64", 1234567890000000000000000000), + ), + ], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:143 +assert_return( + () => invoke($0, `f64x2.floor`, [ + f64x2([1234567890000000000000000000, 1234567890000000000000000000]), + ]), + [ + new F64x2Pattern( + value("f64", 1234567890000000000000000000), + value("f64", 1234567890000000000000000000), + ), + ], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:145 +assert_return( + () => invoke($0, `f64x2.floor`, [ + f64x2([0.0000000000123456789, 0.0000000000123456789]), + ]), + [new F64x2Pattern(value("f64", 0), value("f64", 0))], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:147 +assert_return( + () => invoke($0, `f64x2.floor`, [f64x2([123456789.01234567, 123456789.01234567])]), + [new F64x2Pattern(value("f64", 123456789), value("f64", 123456789))], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:149 +assert_return( + () => invoke($0, `f64x2.floor`, [ + f64x2([1234567890123456900000000000, 1234567890123456900000000000]), + ]), + [ + new F64x2Pattern( + value("f64", 1234567890123456900000000000), + value("f64", 1234567890123456900000000000), + ), + ], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:151 +assert_return( + () => invoke($0, `f64x2.floor`, [ + f64x2([1234567890123456900000000000, 1234567890123456900000000000]), + ]), + [ + new F64x2Pattern( + value("f64", 1234567890123456900000000000), + value("f64", 1234567890123456900000000000), + ), + ], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:153 +assert_return( + () => invoke($0, `f64x2.floor`, [ + f64x2([0.000000000012345678901234568, 0.000000000012345678901234568]), + ]), + [new F64x2Pattern(value("f64", 0), value("f64", 0))], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:155 +assert_return( + () => invoke($0, `f64x2.floor`, [ + f64x2([1375488932539311400000000, 1375488932539311400000000]), + ]), + [ + new F64x2Pattern( + value("f64", 1375488932539311400000000), + value("f64", 1375488932539311400000000), + ), + ], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:157 +assert_return( + () => invoke($0, `f64x2.floor`, [ + f64x2([721152341463170500000000000000, 721152341463170500000000000000]), + ]), + [ + new F64x2Pattern( + value("f64", 721152341463170500000000000000), + value("f64", 721152341463170500000000000000), + ), + ], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:159 +assert_return( + () => invoke($0, `f64x2.floor`, [ + f64x2([721152341463170500000000000000, 721152341463170500000000000000]), + ]), + [ + new F64x2Pattern( + value("f64", 721152341463170500000000000000), + value("f64", 721152341463170500000000000000), + ), + ], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:161 +assert_return( + () => invoke($0, `f64x2.floor`, [f64x2([2623536934927580700, 2623536934927580700])]), + [ + new F64x2Pattern( + value("f64", 2623536934927580700), + value("f64", 2623536934927580700), + ), + ], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:163 +assert_return( + () => invoke($0, `f64x2.floor`, [ + f64x2([1375488932539311400000000, 1375488932539311400000000]), + ]), + [ + new F64x2Pattern( + value("f64", 1375488932539311400000000), + value("f64", 1375488932539311400000000), + ), + ], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:165 +assert_return( + () => invoke($0, `f64x2.floor`, [ + f64x2([721152341463170500000000000000, 721152341463170500000000000000]), + ]), + [ + new F64x2Pattern( + value("f64", 721152341463170500000000000000), + value("f64", 721152341463170500000000000000), + ), + ], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:167 +assert_return( + () => invoke($0, `f64x2.floor`, [ + f64x2([721152341463170500000000000000, 721152341463170500000000000000]), + ]), + [ + new F64x2Pattern( + value("f64", 721152341463170500000000000000), + value("f64", 721152341463170500000000000000), + ), + ], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:169 +assert_return( + () => invoke($0, `f64x2.floor`, [f64x2([2623536934927580700, 2623536934927580700])]), + [ + new F64x2Pattern( + value("f64", 2623536934927580700), + value("f64", 2623536934927580700), + ), + ], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:171 +assert_return( + () => invoke($0, `f64x2.floor`, [ + f64x2([1375488932539311400000000, 1375488932539311400000000]), + ]), + [ + new F64x2Pattern( + value("f64", 1375488932539311400000000), + value("f64", 1375488932539311400000000), + ), + ], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:173 +assert_return( + () => invoke($0, `f64x2.floor`, [ + f64x2([721152341463170500000000000000, 721152341463170500000000000000]), + ]), + [ + new F64x2Pattern( + value("f64", 721152341463170500000000000000), + value("f64", 721152341463170500000000000000), + ), + ], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:175 +assert_return( + () => invoke($0, `f64x2.floor`, [ + f64x2([721152341463170500000000000000, 721152341463170500000000000000]), + ]), + [ + new F64x2Pattern( + value("f64", 721152341463170500000000000000), + value("f64", 721152341463170500000000000000), + ), + ], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:177 +assert_return( + () => invoke($0, `f64x2.floor`, [f64x2([2623536934927580700, 2623536934927580700])]), + [ + new F64x2Pattern( + value("f64", 2623536934927580700), + value("f64", 2623536934927580700), + ), + ], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:179 +assert_return( + () => invoke($0, `f64x2.floor`, [ + bytes('v128', [ + 0x0, + 0x0, + 0x0, + 0x0, + 0x0, + 0x0, + 0xf8, + 0x7f, + 0x0, + 0x0, + 0x0, + 0x0, + 0x0, + 0x0, + 0xf8, + 0x7f, + ]), + ]), + [new F64x2Pattern(`canonical_nan`, `canonical_nan`)], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:181 +assert_return( + () => invoke($0, `f64x2.floor`, [ + bytes('v128', [ + 0x0, + 0x0, + 0x0, + 0x0, + 0x0, + 0x0, + 0xf8, + 0xff, + 0x0, + 0x0, + 0x0, + 0x0, + 0x0, + 0x0, + 0xf8, + 0xff, + ]), + ]), + [new F64x2Pattern(`canonical_nan`, `canonical_nan`)], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:183 +assert_return( + () => invoke($0, `f64x2.floor`, [ + bytes('v128', [ + 0x0, + 0x0, + 0x0, + 0x0, + 0x0, + 0x0, + 0xf4, + 0x7f, + 0x0, + 0x0, + 0x0, + 0x0, + 0x0, + 0x0, + 0xf4, + 0x7f, + ]), + ]), + [new F64x2Pattern(`arithmetic_nan`, `arithmetic_nan`)], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:185 +assert_return( + () => invoke($0, `f64x2.floor`, [ + bytes('v128', [ + 0x0, + 0x0, + 0x0, + 0x0, + 0x0, + 0x0, + 0xf4, + 0xff, + 0x0, + 0x0, + 0x0, + 0x0, + 0x0, + 0x0, + 0xf4, + 0xff, + ]), + ]), + [new F64x2Pattern(`arithmetic_nan`, `arithmetic_nan`)], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:187 +assert_return( + () => invoke($0, `f64x2.trunc`, [f64x2([0, 0])]), + [new F64x2Pattern(value("f64", 0), value("f64", 0))], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:189 +assert_return( + () => invoke($0, `f64x2.trunc`, [f64x2([-0, -0])]), + [new F64x2Pattern(value("f64", -0), value("f64", -0))], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:191 +assert_return( + () => invoke($0, `f64x2.trunc`, [ + f64x2([ + 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000022250738585072014, + 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000022250738585072014, + ]), + ]), + [new F64x2Pattern(value("f64", 0), value("f64", 0))], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:193 +assert_return( + () => invoke($0, `f64x2.trunc`, [ + f64x2([ + -0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000022250738585072014, + -0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000022250738585072014, + ]), + ]), + [new F64x2Pattern(value("f64", -0), value("f64", -0))], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:195 +assert_return( + () => invoke($0, `f64x2.trunc`, [f64x2([0.5, 0.5])]), + [new F64x2Pattern(value("f64", 0), value("f64", 0))], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:197 +assert_return( + () => invoke($0, `f64x2.trunc`, [f64x2([-0.5, -0.5])]), + [new F64x2Pattern(value("f64", -0), value("f64", -0))], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:199 +assert_return( + () => invoke($0, `f64x2.trunc`, [f64x2([1, 1])]), + [new F64x2Pattern(value("f64", 1), value("f64", 1))], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:201 +assert_return( + () => invoke($0, `f64x2.trunc`, [f64x2([-1, -1])]), + [new F64x2Pattern(value("f64", -1), value("f64", -1))], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:203 +assert_return( + () => invoke($0, `f64x2.trunc`, [f64x2([6.283185307179586, 6.283185307179586])]), + [new F64x2Pattern(value("f64", 6), value("f64", 6))], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:205 +assert_return( + () => invoke($0, `f64x2.trunc`, [f64x2([-6.283185307179586, -6.283185307179586])]), + [new F64x2Pattern(value("f64", -6), value("f64", -6))], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:207 +assert_return( + () => invoke($0, `f64x2.trunc`, [ + f64x2([ + 179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, + 179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, + ]), + ]), + [ + new F64x2Pattern( + value("f64", 179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), + value("f64", 179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), + ), + ], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:209 +assert_return( + () => invoke($0, `f64x2.trunc`, [ + f64x2([ + -179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, + -179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, + ]), + ]), + [ + new F64x2Pattern( + value("f64", -179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), + value("f64", -179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), + ), + ], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:211 +assert_return( + () => invoke($0, `f64x2.trunc`, [ + f64x2([ + 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005, + 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005, + ]), + ]), + [new F64x2Pattern(value("f64", 0), value("f64", 0))], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:213 +assert_return( + () => invoke($0, `f64x2.trunc`, [ + f64x2([ + 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005, + 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005, + ]), + ]), + [new F64x2Pattern(value("f64", 0), value("f64", 0))], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:215 +assert_return( + () => invoke($0, `f64x2.trunc`, [f64x2([Infinity, Infinity])]), + [new F64x2Pattern(value("f64", Infinity), value("f64", Infinity))], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:217 +assert_return( + () => invoke($0, `f64x2.trunc`, [f64x2([-Infinity, -Infinity])]), + [new F64x2Pattern(value("f64", -Infinity), value("f64", -Infinity))], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:219 +assert_return( + () => invoke($0, `f64x2.trunc`, [f64x2([123456789, 123456789])]), + [new F64x2Pattern(value("f64", 123456789), value("f64", 123456789))], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:221 +assert_return( + () => invoke($0, `f64x2.trunc`, [ + f64x2([1234567890000000000000000000, 1234567890000000000000000000]), + ]), + [ + new F64x2Pattern( + value("f64", 1234567890000000000000000000), + value("f64", 1234567890000000000000000000), + ), + ], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:223 +assert_return( + () => invoke($0, `f64x2.trunc`, [ + f64x2([1234567890000000000000000000, 1234567890000000000000000000]), + ]), + [ + new F64x2Pattern( + value("f64", 1234567890000000000000000000), + value("f64", 1234567890000000000000000000), + ), + ], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:225 +assert_return( + () => invoke($0, `f64x2.trunc`, [ + f64x2([0.0000000000123456789, 0.0000000000123456789]), + ]), + [new F64x2Pattern(value("f64", 0), value("f64", 0))], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:227 +assert_return( + () => invoke($0, `f64x2.trunc`, [f64x2([123456789, 123456789])]), + [new F64x2Pattern(value("f64", 123456789), value("f64", 123456789))], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:229 +assert_return( + () => invoke($0, `f64x2.trunc`, [ + f64x2([1234567890000000000000000000, 1234567890000000000000000000]), + ]), + [ + new F64x2Pattern( + value("f64", 1234567890000000000000000000), + value("f64", 1234567890000000000000000000), + ), + ], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:231 +assert_return( + () => invoke($0, `f64x2.trunc`, [ + f64x2([1234567890000000000000000000, 1234567890000000000000000000]), + ]), + [ + new F64x2Pattern( + value("f64", 1234567890000000000000000000), + value("f64", 1234567890000000000000000000), + ), + ], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:233 +assert_return( + () => invoke($0, `f64x2.trunc`, [ + f64x2([0.0000000000123456789, 0.0000000000123456789]), + ]), + [new F64x2Pattern(value("f64", 0), value("f64", 0))], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:235 +assert_return( + () => invoke($0, `f64x2.trunc`, [f64x2([123456789.01234567, 123456789.01234567])]), + [new F64x2Pattern(value("f64", 123456789), value("f64", 123456789))], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:237 +assert_return( + () => invoke($0, `f64x2.trunc`, [ + f64x2([1234567890123456900000000000, 1234567890123456900000000000]), + ]), + [ + new F64x2Pattern( + value("f64", 1234567890123456900000000000), + value("f64", 1234567890123456900000000000), + ), + ], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:239 +assert_return( + () => invoke($0, `f64x2.trunc`, [ + f64x2([1234567890123456900000000000, 1234567890123456900000000000]), + ]), + [ + new F64x2Pattern( + value("f64", 1234567890123456900000000000), + value("f64", 1234567890123456900000000000), + ), + ], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:241 +assert_return( + () => invoke($0, `f64x2.trunc`, [ + f64x2([0.000000000012345678901234568, 0.000000000012345678901234568]), + ]), + [new F64x2Pattern(value("f64", 0), value("f64", 0))], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:243 +assert_return( + () => invoke($0, `f64x2.trunc`, [ + f64x2([1375488932539311400000000, 1375488932539311400000000]), + ]), + [ + new F64x2Pattern( + value("f64", 1375488932539311400000000), + value("f64", 1375488932539311400000000), + ), + ], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:245 +assert_return( + () => invoke($0, `f64x2.trunc`, [ + f64x2([721152341463170500000000000000, 721152341463170500000000000000]), + ]), + [ + new F64x2Pattern( + value("f64", 721152341463170500000000000000), + value("f64", 721152341463170500000000000000), + ), + ], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:247 +assert_return( + () => invoke($0, `f64x2.trunc`, [ + f64x2([721152341463170500000000000000, 721152341463170500000000000000]), + ]), + [ + new F64x2Pattern( + value("f64", 721152341463170500000000000000), + value("f64", 721152341463170500000000000000), + ), + ], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:249 +assert_return( + () => invoke($0, `f64x2.trunc`, [f64x2([2623536934927580700, 2623536934927580700])]), + [ + new F64x2Pattern( + value("f64", 2623536934927580700), + value("f64", 2623536934927580700), + ), + ], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:251 +assert_return( + () => invoke($0, `f64x2.trunc`, [ + f64x2([1375488932539311400000000, 1375488932539311400000000]), + ]), + [ + new F64x2Pattern( + value("f64", 1375488932539311400000000), + value("f64", 1375488932539311400000000), + ), + ], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:253 +assert_return( + () => invoke($0, `f64x2.trunc`, [ + f64x2([721152341463170500000000000000, 721152341463170500000000000000]), + ]), + [ + new F64x2Pattern( + value("f64", 721152341463170500000000000000), + value("f64", 721152341463170500000000000000), + ), + ], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:255 +assert_return( + () => invoke($0, `f64x2.trunc`, [ + f64x2([721152341463170500000000000000, 721152341463170500000000000000]), + ]), + [ + new F64x2Pattern( + value("f64", 721152341463170500000000000000), + value("f64", 721152341463170500000000000000), + ), + ], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:257 +assert_return( + () => invoke($0, `f64x2.trunc`, [f64x2([2623536934927580700, 2623536934927580700])]), + [ + new F64x2Pattern( + value("f64", 2623536934927580700), + value("f64", 2623536934927580700), + ), + ], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:259 +assert_return( + () => invoke($0, `f64x2.trunc`, [ + f64x2([1375488932539311400000000, 1375488932539311400000000]), + ]), + [ + new F64x2Pattern( + value("f64", 1375488932539311400000000), + value("f64", 1375488932539311400000000), + ), + ], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:261 +assert_return( + () => invoke($0, `f64x2.trunc`, [ + f64x2([721152341463170500000000000000, 721152341463170500000000000000]), + ]), + [ + new F64x2Pattern( + value("f64", 721152341463170500000000000000), + value("f64", 721152341463170500000000000000), + ), + ], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:263 +assert_return( + () => invoke($0, `f64x2.trunc`, [ + f64x2([721152341463170500000000000000, 721152341463170500000000000000]), + ]), + [ + new F64x2Pattern( + value("f64", 721152341463170500000000000000), + value("f64", 721152341463170500000000000000), + ), + ], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:265 +assert_return( + () => invoke($0, `f64x2.trunc`, [f64x2([2623536934927580700, 2623536934927580700])]), + [ + new F64x2Pattern( + value("f64", 2623536934927580700), + value("f64", 2623536934927580700), + ), + ], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:267 +assert_return( + () => invoke($0, `f64x2.trunc`, [ + bytes('v128', [ + 0x0, + 0x0, + 0x0, + 0x0, + 0x0, + 0x0, + 0xf8, + 0x7f, + 0x0, + 0x0, + 0x0, + 0x0, + 0x0, + 0x0, + 0xf8, + 0x7f, + ]), + ]), + [new F64x2Pattern(`canonical_nan`, `canonical_nan`)], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:269 +assert_return( + () => invoke($0, `f64x2.trunc`, [ + bytes('v128', [ + 0x0, + 0x0, + 0x0, + 0x0, + 0x0, + 0x0, + 0xf8, + 0xff, + 0x0, + 0x0, + 0x0, + 0x0, + 0x0, + 0x0, + 0xf8, + 0xff, + ]), + ]), + [new F64x2Pattern(`canonical_nan`, `canonical_nan`)], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:271 +assert_return( + () => invoke($0, `f64x2.trunc`, [ + bytes('v128', [ + 0x0, + 0x0, + 0x0, + 0x0, + 0x0, + 0x0, + 0xf4, + 0x7f, + 0x0, + 0x0, + 0x0, + 0x0, + 0x0, + 0x0, + 0xf4, + 0x7f, + ]), + ]), + [new F64x2Pattern(`arithmetic_nan`, `arithmetic_nan`)], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:273 +assert_return( + () => invoke($0, `f64x2.trunc`, [ + bytes('v128', [ + 0x0, + 0x0, + 0x0, + 0x0, + 0x0, + 0x0, + 0xf4, + 0xff, + 0x0, + 0x0, + 0x0, + 0x0, + 0x0, + 0x0, + 0xf4, + 0xff, + ]), + ]), + [new F64x2Pattern(`arithmetic_nan`, `arithmetic_nan`)], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:275 +assert_return( + () => invoke($0, `f64x2.nearest`, [f64x2([0, 0])]), + [new F64x2Pattern(value("f64", 0), value("f64", 0))], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:277 +assert_return( + () => invoke($0, `f64x2.nearest`, [f64x2([-0, -0])]), + [new F64x2Pattern(value("f64", -0), value("f64", -0))], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:279 +assert_return( + () => invoke($0, `f64x2.nearest`, [ + f64x2([ + 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000022250738585072014, + 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000022250738585072014, + ]), + ]), + [new F64x2Pattern(value("f64", 0), value("f64", 0))], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:281 +assert_return( + () => invoke($0, `f64x2.nearest`, [ + f64x2([ + -0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000022250738585072014, + -0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000022250738585072014, + ]), + ]), + [new F64x2Pattern(value("f64", -0), value("f64", -0))], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:283 +assert_return( + () => invoke($0, `f64x2.nearest`, [f64x2([0.5, 0.5])]), + [new F64x2Pattern(value("f64", 0), value("f64", 0))], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:285 +assert_return( + () => invoke($0, `f64x2.nearest`, [f64x2([-0.5, -0.5])]), + [new F64x2Pattern(value("f64", -0), value("f64", -0))], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:287 +assert_return( + () => invoke($0, `f64x2.nearest`, [f64x2([1, 1])]), + [new F64x2Pattern(value("f64", 1), value("f64", 1))], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:289 +assert_return( + () => invoke($0, `f64x2.nearest`, [f64x2([-1, -1])]), + [new F64x2Pattern(value("f64", -1), value("f64", -1))], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:291 +assert_return( + () => invoke($0, `f64x2.nearest`, [f64x2([6.283185307179586, 6.283185307179586])]), + [new F64x2Pattern(value("f64", 6), value("f64", 6))], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:293 +assert_return( + () => invoke($0, `f64x2.nearest`, [f64x2([-6.283185307179586, -6.283185307179586])]), + [new F64x2Pattern(value("f64", -6), value("f64", -6))], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:295 +assert_return( + () => invoke($0, `f64x2.nearest`, [ + f64x2([ + 179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, + 179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, + ]), + ]), + [ + new F64x2Pattern( + value("f64", 179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), + value("f64", 179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), + ), + ], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:297 +assert_return( + () => invoke($0, `f64x2.nearest`, [ + f64x2([ + -179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, + -179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, + ]), + ]), + [ + new F64x2Pattern( + value("f64", -179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), + value("f64", -179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), + ), + ], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:299 +assert_return( + () => invoke($0, `f64x2.nearest`, [ + f64x2([ + 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005, + 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005, + ]), + ]), + [new F64x2Pattern(value("f64", 0), value("f64", 0))], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:301 +assert_return( + () => invoke($0, `f64x2.nearest`, [ + f64x2([ + 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005, + 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005, + ]), + ]), + [new F64x2Pattern(value("f64", 0), value("f64", 0))], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:303 +assert_return( + () => invoke($0, `f64x2.nearest`, [f64x2([Infinity, Infinity])]), + [new F64x2Pattern(value("f64", Infinity), value("f64", Infinity))], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:305 +assert_return( + () => invoke($0, `f64x2.nearest`, [f64x2([-Infinity, -Infinity])]), + [new F64x2Pattern(value("f64", -Infinity), value("f64", -Infinity))], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:307 +assert_return( + () => invoke($0, `f64x2.nearest`, [f64x2([123456789, 123456789])]), + [new F64x2Pattern(value("f64", 123456789), value("f64", 123456789))], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:309 +assert_return( + () => invoke($0, `f64x2.nearest`, [ + f64x2([1234567890000000000000000000, 1234567890000000000000000000]), + ]), + [ + new F64x2Pattern( + value("f64", 1234567890000000000000000000), + value("f64", 1234567890000000000000000000), + ), + ], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:311 +assert_return( + () => invoke($0, `f64x2.nearest`, [ + f64x2([1234567890000000000000000000, 1234567890000000000000000000]), + ]), + [ + new F64x2Pattern( + value("f64", 1234567890000000000000000000), + value("f64", 1234567890000000000000000000), + ), + ], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:313 +assert_return( + () => invoke($0, `f64x2.nearest`, [ + f64x2([0.0000000000123456789, 0.0000000000123456789]), + ]), + [new F64x2Pattern(value("f64", 0), value("f64", 0))], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:315 +assert_return( + () => invoke($0, `f64x2.nearest`, [f64x2([123456789, 123456789])]), + [new F64x2Pattern(value("f64", 123456789), value("f64", 123456789))], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:317 +assert_return( + () => invoke($0, `f64x2.nearest`, [ + f64x2([1234567890000000000000000000, 1234567890000000000000000000]), + ]), + [ + new F64x2Pattern( + value("f64", 1234567890000000000000000000), + value("f64", 1234567890000000000000000000), + ), + ], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:319 +assert_return( + () => invoke($0, `f64x2.nearest`, [ + f64x2([1234567890000000000000000000, 1234567890000000000000000000]), + ]), + [ + new F64x2Pattern( + value("f64", 1234567890000000000000000000), + value("f64", 1234567890000000000000000000), + ), + ], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:321 +assert_return( + () => invoke($0, `f64x2.nearest`, [ + f64x2([0.0000000000123456789, 0.0000000000123456789]), + ]), + [new F64x2Pattern(value("f64", 0), value("f64", 0))], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:323 +assert_return( + () => invoke($0, `f64x2.nearest`, [f64x2([123456789.01234567, 123456789.01234567])]), + [new F64x2Pattern(value("f64", 123456789), value("f64", 123456789))], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:325 +assert_return( + () => invoke($0, `f64x2.nearest`, [ + f64x2([1234567890123456900000000000, 1234567890123456900000000000]), + ]), + [ + new F64x2Pattern( + value("f64", 1234567890123456900000000000), + value("f64", 1234567890123456900000000000), + ), + ], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:327 +assert_return( + () => invoke($0, `f64x2.nearest`, [ + f64x2([1234567890123456900000000000, 1234567890123456900000000000]), + ]), + [ + new F64x2Pattern( + value("f64", 1234567890123456900000000000), + value("f64", 1234567890123456900000000000), + ), + ], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:329 +assert_return( + () => invoke($0, `f64x2.nearest`, [ + f64x2([0.000000000012345678901234568, 0.000000000012345678901234568]), + ]), + [new F64x2Pattern(value("f64", 0), value("f64", 0))], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:331 +assert_return( + () => invoke($0, `f64x2.nearest`, [ + f64x2([1375488932539311400000000, 1375488932539311400000000]), + ]), + [ + new F64x2Pattern( + value("f64", 1375488932539311400000000), + value("f64", 1375488932539311400000000), + ), + ], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:333 +assert_return( + () => invoke($0, `f64x2.nearest`, [ + f64x2([721152341463170500000000000000, 721152341463170500000000000000]), + ]), + [ + new F64x2Pattern( + value("f64", 721152341463170500000000000000), + value("f64", 721152341463170500000000000000), + ), + ], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:335 +assert_return( + () => invoke($0, `f64x2.nearest`, [ + f64x2([721152341463170500000000000000, 721152341463170500000000000000]), + ]), + [ + new F64x2Pattern( + value("f64", 721152341463170500000000000000), + value("f64", 721152341463170500000000000000), + ), + ], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:337 +assert_return( + () => invoke($0, `f64x2.nearest`, [f64x2([2623536934927580700, 2623536934927580700])]), + [ + new F64x2Pattern( + value("f64", 2623536934927580700), + value("f64", 2623536934927580700), + ), + ], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:339 +assert_return( + () => invoke($0, `f64x2.nearest`, [ + f64x2([1375488932539311400000000, 1375488932539311400000000]), + ]), + [ + new F64x2Pattern( + value("f64", 1375488932539311400000000), + value("f64", 1375488932539311400000000), + ), + ], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:341 +assert_return( + () => invoke($0, `f64x2.nearest`, [ + f64x2([721152341463170500000000000000, 721152341463170500000000000000]), + ]), + [ + new F64x2Pattern( + value("f64", 721152341463170500000000000000), + value("f64", 721152341463170500000000000000), + ), + ], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:343 +assert_return( + () => invoke($0, `f64x2.nearest`, [ + f64x2([721152341463170500000000000000, 721152341463170500000000000000]), + ]), + [ + new F64x2Pattern( + value("f64", 721152341463170500000000000000), + value("f64", 721152341463170500000000000000), + ), + ], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:345 +assert_return( + () => invoke($0, `f64x2.nearest`, [f64x2([2623536934927580700, 2623536934927580700])]), + [ + new F64x2Pattern( + value("f64", 2623536934927580700), + value("f64", 2623536934927580700), + ), + ], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:347 +assert_return( + () => invoke($0, `f64x2.nearest`, [ + f64x2([1375488932539311400000000, 1375488932539311400000000]), + ]), + [ + new F64x2Pattern( + value("f64", 1375488932539311400000000), + value("f64", 1375488932539311400000000), + ), + ], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:349 +assert_return( + () => invoke($0, `f64x2.nearest`, [ + f64x2([721152341463170500000000000000, 721152341463170500000000000000]), + ]), + [ + new F64x2Pattern( + value("f64", 721152341463170500000000000000), + value("f64", 721152341463170500000000000000), + ), + ], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:351 +assert_return( + () => invoke($0, `f64x2.nearest`, [ + f64x2([721152341463170500000000000000, 721152341463170500000000000000]), + ]), + [ + new F64x2Pattern( + value("f64", 721152341463170500000000000000), + value("f64", 721152341463170500000000000000), + ), + ], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:353 +assert_return( + () => invoke($0, `f64x2.nearest`, [f64x2([2623536934927580700, 2623536934927580700])]), + [ + new F64x2Pattern( + value("f64", 2623536934927580700), + value("f64", 2623536934927580700), + ), + ], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:355 +assert_return( + () => invoke($0, `f64x2.nearest`, [ + bytes('v128', [ + 0x0, + 0x0, + 0x0, + 0x0, + 0x0, + 0x0, + 0xf8, + 0x7f, + 0x0, + 0x0, + 0x0, + 0x0, + 0x0, + 0x0, + 0xf8, + 0x7f, + ]), + ]), + [new F64x2Pattern(`canonical_nan`, `canonical_nan`)], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:357 +assert_return( + () => invoke($0, `f64x2.nearest`, [ + bytes('v128', [ + 0x0, + 0x0, + 0x0, + 0x0, + 0x0, + 0x0, + 0xf8, + 0xff, + 0x0, + 0x0, + 0x0, + 0x0, + 0x0, + 0x0, + 0xf8, + 0xff, + ]), + ]), + [new F64x2Pattern(`canonical_nan`, `canonical_nan`)], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:359 +assert_return( + () => invoke($0, `f64x2.nearest`, [ + bytes('v128', [ + 0x0, + 0x0, + 0x0, + 0x0, + 0x0, + 0x0, + 0xf4, + 0x7f, + 0x0, + 0x0, + 0x0, + 0x0, + 0x0, + 0x0, + 0xf4, + 0x7f, + ]), + ]), + [new F64x2Pattern(`arithmetic_nan`, `arithmetic_nan`)], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:361 +assert_return( + () => invoke($0, `f64x2.nearest`, [ + bytes('v128', [ + 0x0, + 0x0, + 0x0, + 0x0, + 0x0, + 0x0, + 0xf4, + 0xff, + 0x0, + 0x0, + 0x0, + 0x0, + 0x0, + 0x0, + 0xf4, + 0xff, + ]), + ]), + [new F64x2Pattern(`arithmetic_nan`, `arithmetic_nan`)], +); + +// ./test/core/simd/simd_f64x2_rounding.wast:367 +assert_malformed( + () => instantiate(`(memory 1) (func (result v128) (i8x16.ceil (v128.const i32x4 0 0 0 0))) `), + `unknown operator`, +); + +// ./test/core/simd/simd_f64x2_rounding.wast:368 +assert_malformed( + () => instantiate(`(memory 1) (func (result v128) (i8x16.floor (v128.const i32x4 0 0 0 0))) `), + `unknown operator`, +); + +// ./test/core/simd/simd_f64x2_rounding.wast:369 +assert_malformed( + () => instantiate(`(memory 1) (func (result v128) (i8x16.trunc (v128.const i32x4 0 0 0 0))) `), + `unknown operator`, +); + +// ./test/core/simd/simd_f64x2_rounding.wast:370 +assert_malformed( + () => instantiate(`(memory 1) (func (result v128) (i8x16.nearest (v128.const i32x4 0 0 0 0))) `), + `unknown operator`, +); + +// ./test/core/simd/simd_f64x2_rounding.wast:371 +assert_malformed( + () => instantiate(`(memory 1) (func (result v128) (i16x8.ceil (v128.const i32x4 0 0 0 0))) `), + `unknown operator`, +); + +// ./test/core/simd/simd_f64x2_rounding.wast:372 +assert_malformed( + () => instantiate(`(memory 1) (func (result v128) (i16x8.floor (v128.const i32x4 0 0 0 0))) `), + `unknown operator`, +); + +// ./test/core/simd/simd_f64x2_rounding.wast:373 +assert_malformed( + () => instantiate(`(memory 1) (func (result v128) (i16x8.trunc (v128.const i32x4 0 0 0 0))) `), + `unknown operator`, +); + +// ./test/core/simd/simd_f64x2_rounding.wast:374 +assert_malformed( + () => instantiate(`(memory 1) (func (result v128) (i16x8.nearest (v128.const i32x4 0 0 0 0))) `), + `unknown operator`, +); + +// ./test/core/simd/simd_f64x2_rounding.wast:375 +assert_malformed( + () => instantiate(`(memory 1) (func (result v128) (i32x4.ceil (v128.const i32x4 0 0 0 0))) `), + `unknown operator`, +); + +// ./test/core/simd/simd_f64x2_rounding.wast:376 +assert_malformed( + () => instantiate(`(memory 1) (func (result v128) (i32x4.floor (v128.const i32x4 0 0 0 0))) `), + `unknown operator`, +); + +// ./test/core/simd/simd_f64x2_rounding.wast:377 +assert_malformed( + () => instantiate(`(memory 1) (func (result v128) (i32x4.trunc (v128.const i32x4 0 0 0 0))) `), + `unknown operator`, +); + +// ./test/core/simd/simd_f64x2_rounding.wast:378 +assert_malformed( + () => instantiate(`(memory 1) (func (result v128) (i32x4.nearest (v128.const i32x4 0 0 0 0))) `), + `unknown operator`, +); + +// ./test/core/simd/simd_f64x2_rounding.wast:379 +assert_malformed( + () => instantiate(`(memory 1) (func (result v128) (i64x2.ceil (v128.const i32x4 0 0 0 0))) `), + `unknown operator`, +); + +// ./test/core/simd/simd_f64x2_rounding.wast:380 +assert_malformed( + () => instantiate(`(memory 1) (func (result v128) (i64x2.floor (v128.const i32x4 0 0 0 0))) `), + `unknown operator`, +); + +// ./test/core/simd/simd_f64x2_rounding.wast:381 +assert_malformed( + () => instantiate(`(memory 1) (func (result v128) (i64x2.trunc (v128.const i32x4 0 0 0 0))) `), + `unknown operator`, +); + +// ./test/core/simd/simd_f64x2_rounding.wast:382 +assert_malformed( + () => instantiate(`(memory 1) (func (result v128) (i64x2.nearest (v128.const i32x4 0 0 0 0))) `), + `unknown operator`, +); + +// ./test/core/simd/simd_f64x2_rounding.wast:385 +assert_invalid( + () => instantiate(`(module (func (result v128) (f64x2.ceil (i32.const 0))))`), + `type mismatch`, +); + +// ./test/core/simd/simd_f64x2_rounding.wast:386 +assert_invalid( + () => instantiate(`(module (func (result v128) (f64x2.floor (i32.const 0))))`), + `type mismatch`, +); + +// ./test/core/simd/simd_f64x2_rounding.wast:387 +assert_invalid( + () => instantiate(`(module (func (result v128) (f64x2.trunc (i32.const 0))))`), + `type mismatch`, +); + +// ./test/core/simd/simd_f64x2_rounding.wast:388 +assert_invalid( + () => instantiate(`(module (func (result v128) (f64x2.nearest (i32.const 0))))`), + `type mismatch`, +); + +// ./test/core/simd/simd_f64x2_rounding.wast:392 +assert_invalid( + () => instantiate(`(module + (func $$f64x2.ceil-arg-empty (result v128) + (f64x2.ceil) + ) + )`), + `type mismatch`, +); + +// ./test/core/simd/simd_f64x2_rounding.wast:400 +assert_invalid( + () => instantiate(`(module + (func $$f64x2.floor-arg-empty (result v128) + (f64x2.floor) + ) + )`), + `type mismatch`, +); + +// ./test/core/simd/simd_f64x2_rounding.wast:408 +assert_invalid( + () => instantiate(`(module + (func $$f64x2.trunc-arg-empty (result v128) + (f64x2.trunc) + ) + )`), + `type mismatch`, +); + +// ./test/core/simd/simd_f64x2_rounding.wast:416 +assert_invalid( + () => instantiate(`(module + (func $$f64x2.nearest-arg-empty (result v128) + (f64x2.nearest) + ) + )`), + `type mismatch`, +); |