diff options
author | Thomas Lively <7121787+tlively@users.noreply.github.com> | 2019-09-24 15:29:15 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-24 15:29:15 -0700 |
commit | 034ed383a968204427befda3f9fb8bb5d2f63f75 (patch) | |
tree | 36ae37db02cdae27416be250fe533d0f0bff77e8 /test/spec/simd.wast | |
parent | 835581f58eb5040656243f7345ebcacf6d7deee5 (diff) | |
download | binaryen-034ed383a968204427befda3f9fb8bb5d2f63f75.tar.gz binaryen-034ed383a968204427befda3f9fb8bb5d2f63f75.tar.bz2 binaryen-034ed383a968204427befda3f9fb8bb5d2f63f75.zip |
v128.andnot instruction (#2355)
As specified at https://github.com/WebAssembly/simd/pull/102.
Also fixes bugs in the JS API for other SIMD bitwise operators.
Diffstat (limited to 'test/spec/simd.wast')
-rw-r--r-- | test/spec/simd.wast | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/spec/simd.wast b/test/spec/simd.wast index ec5a3b012..81e679edb 100644 --- a/test/spec/simd.wast +++ b/test/spec/simd.wast @@ -98,6 +98,7 @@ (func (export "v128.and") (param $0 v128) (param $1 v128) (result v128) (v128.and (local.get $0) (local.get $1))) (func (export "v128.or") (param $0 v128) (param $1 v128) (result v128) (v128.or (local.get $0) (local.get $1))) (func (export "v128.xor") (param $0 v128) (param $1 v128) (result v128) (v128.xor (local.get $0) (local.get $1))) + (func (export "v128.andnot") (param $0 v128) (param $1 v128) (result v128) (v128.andnot (local.get $0) (local.get $1))) (func (export "v128.bitselect") (param $0 v128) (param $1 v128) (param $2 v128) (result v128) (v128.bitselect (local.get $0) (local.get $1) (local.get $2)) ) @@ -456,6 +457,7 @@ (assert_return (invoke "v128.and" (v128.const i32x4 0 0 -1 -1) (v128.const i32x4 0 -1 0 -1)) (v128.const i32x4 0 0 0 -1)) (assert_return (invoke "v128.or" (v128.const i32x4 0 0 -1 -1) (v128.const i32x4 0 -1 0 -1)) (v128.const i32x4 0 -1 -1 -1)) (assert_return (invoke "v128.xor" (v128.const i32x4 0 0 -1 -1) (v128.const i32x4 0 -1 0 -1)) (v128.const i32x4 0 -1 -1 0)) +(assert_return (invoke "v128.andnot" (v128.const i32x4 0 0 -1 -1) (v128.const i32x4 0 -1 0 -1)) (v128.const i32x4 0 0 -1 0)) (assert_return (invoke "v128.bitselect" (v128.const i32x4 0xAAAAAAAA 0xAAAAAAAA 0xAAAAAAAA 0xAAAAAAAA) (v128.const i32x4 0xBBBBBBBB 0xBBBBBBBB 0xBBBBBBBB 0xBBBBBBBB) |