diff options
author | Thomas Lively <7121787+tlively@users.noreply.github.com> | 2019-09-24 16:57:57 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-24 16:57:57 -0700 |
commit | ed2c3cd0892be8a1380a6c6bfddfa3492c16f91c (patch) | |
tree | 32e5f1499f69caa359c130c92e1d28153e7506d3 /test/example/c-api-kitchen-sink.c | |
parent | 034ed383a968204427befda3f9fb8bb5d2f63f75 (diff) | |
download | binaryen-ed2c3cd0892be8a1380a6c6bfddfa3492c16f91c.tar.gz binaryen-ed2c3cd0892be8a1380a6c6bfddfa3492c16f91c.tar.bz2 binaryen-ed2c3cd0892be8a1380a6c6bfddfa3492c16f91c.zip |
SIMD load and extend instructions (#2353)
Adds support for the new load and extend instructions. Also updates
from C++11 to C++17 in order to use generic lambdas in the interpreter
implementation.
Diffstat (limited to 'test/example/c-api-kitchen-sink.c')
-rw-r--r-- | test/example/c-api-kitchen-sink.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test/example/c-api-kitchen-sink.c b/test/example/c-api-kitchen-sink.c index a321290f2..689adcae0 100644 --- a/test/example/c-api-kitchen-sink.c +++ b/test/example/c-api-kitchen-sink.c @@ -491,6 +491,30 @@ void test_core() { module, BinaryenLoadSplatVec32x4(), 16, 4, makeInt32(module, 128)), BinaryenSIMDLoad( module, BinaryenLoadSplatVec64x2(), 0, 4, makeInt32(module, 128)), + BinaryenSIMDLoad( + module, BinaryenLoadExtSVec8x8ToVecI16x8(), 0, 8, makeInt32(module, 128)), + BinaryenSIMDLoad( + module, BinaryenLoadExtUVec8x8ToVecI16x8(), 0, 8, makeInt32(module, 128)), + BinaryenSIMDLoad(module, + BinaryenLoadExtSVec16x4ToVecI32x4(), + 0, + 8, + makeInt32(module, 128)), + BinaryenSIMDLoad(module, + BinaryenLoadExtUVec16x4ToVecI32x4(), + 0, + 8, + makeInt32(module, 128)), + BinaryenSIMDLoad(module, + BinaryenLoadExtSVec32x2ToVecI64x2(), + 0, + 8, + makeInt32(module, 128)), + BinaryenSIMDLoad(module, + BinaryenLoadExtUVec32x2ToVecI64x2(), + 0, + 8, + makeInt32(module, 128)), // Other SIMD makeSIMDShuffle(module), makeSIMDTernary(module, BinaryenBitselectVec128()), |