summaryrefslogtreecommitdiff
path: root/test/example
diff options
context:
space:
mode:
Diffstat (limited to 'test/example')
-rw-r--r--test/example/c-api-kitchen-sink.c10
-rw-r--r--test/example/c-api-kitchen-sink.txt10
2 files changed, 20 insertions, 0 deletions
diff --git a/test/example/c-api-kitchen-sink.c b/test/example/c-api-kitchen-sink.c
index da4eeccca..bbffb1ea2 100644
--- a/test/example/c-api-kitchen-sink.c
+++ b/test/example/c-api-kitchen-sink.c
@@ -675,6 +675,16 @@ void test_core() {
0,
8,
makeInt32(module, 128)),
+ BinaryenSIMDLoad(module,
+ BinaryenLoad32Zero(),
+ 0,
+ 4,
+ makeInt32(module, 128)),
+ BinaryenSIMDLoad(module,
+ BinaryenLoad64Zero(),
+ 0,
+ 8,
+ makeInt32(module, 128)),
// Other SIMD
makeSIMDShuffle(module),
makeSIMDTernary(module, BinaryenBitselectVec128()),
diff --git a/test/example/c-api-kitchen-sink.txt b/test/example/c-api-kitchen-sink.txt
index 40fc10ef3..16dde8c00 100644
--- a/test/example/c-api-kitchen-sink.txt
+++ b/test/example/c-api-kitchen-sink.txt
@@ -1712,6 +1712,16 @@ BinaryenFeatureAll: 8191
)
)
(drop
+ (v128.load32_zero
+ (i32.const 128)
+ )
+ )
+ (drop
+ (v128.load64_zero
+ (i32.const 128)
+ )
+ )
+ (drop
(i8x16.shuffle 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
(v128.const i32x4 0x04030201 0x08070605 0x0c0b0a09 0x100f0e0d)
(v128.const i32x4 0x04030201 0x08070605 0x0c0b0a09 0x100f0e0d)