diff options
author | Thomas Lively <7121787+tlively@users.noreply.github.com> | 2020-05-19 10:17:07 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-19 10:17:07 -0700 |
commit | fc7346918f8d15ce45639472f00fea5fa8102ff0 (patch) | |
tree | 9d6a3e179c69aedbcef4681db2454fe86c65cc3c /test/example | |
parent | 417ccb54ccbb0776148f51cb2869c122826db6d9 (diff) | |
download | binaryen-fc7346918f8d15ce45639472f00fea5fa8102ff0.tar.gz binaryen-fc7346918f8d15ce45639472f00fea5fa8102ff0.tar.bz2 binaryen-fc7346918f8d15ce45639472f00fea5fa8102ff0.zip |
Implement i64x2.mul (#2860)
This is the only instruction in the current spec proposal that had not
yet been implemnented in the tools.
Diffstat (limited to 'test/example')
-rw-r--r-- | test/example/c-api-kitchen-sink.c | 1 | ||||
-rw-r--r-- | test/example/c-api-kitchen-sink.txt | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/test/example/c-api-kitchen-sink.c b/test/example/c-api-kitchen-sink.c index 9b3b68cf7..3ea6c4ef0 100644 --- a/test/example/c-api-kitchen-sink.c +++ b/test/example/c-api-kitchen-sink.c @@ -550,6 +550,7 @@ void test_core() { makeBinary(module, BinaryenMulVecI32x4(), v128), makeBinary(module, BinaryenAddVecI64x2(), v128), makeBinary(module, BinaryenSubVecI64x2(), v128), + makeBinary(module, BinaryenMulVecI64x2(), v128), makeBinary(module, BinaryenAddVecF32x4(), v128), makeBinary(module, BinaryenSubVecF32x4(), v128), makeBinary(module, BinaryenMulVecF32x4(), v128), diff --git a/test/example/c-api-kitchen-sink.txt b/test/example/c-api-kitchen-sink.txt index d3e0281ee..ced13ac72 100644 --- a/test/example/c-api-kitchen-sink.txt +++ b/test/example/c-api-kitchen-sink.txt @@ -1147,6 +1147,12 @@ BinaryenFeatureAll: 1023 ) ) (drop + (i64x2.mul + (v128.const i32x4 0x04030201 0x08070605 0x0c0b0a09 0x100f0e0d) + (v128.const i32x4 0x04030201 0x08070605 0x0c0b0a09 0x100f0e0d) + ) + ) + (drop (f32x4.add (v128.const i32x4 0x04030201 0x08070605 0x0c0b0a09 0x100f0e0d) (v128.const i32x4 0x04030201 0x08070605 0x0c0b0a09 0x100f0e0d) |