summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/interp/simd-unary.txt29
1 files changed, 29 insertions, 0 deletions
diff --git a/test/interp/simd-unary.txt b/test/interp/simd-unary.txt
new file mode 100644
index 00000000..addcecfe
--- /dev/null
+++ b/test/interp/simd-unary.txt
@@ -0,0 +1,29 @@
+;;; TOOL: run-interp
+;;; FLAGS: --enable-simd
+(module
+ ;; i8x16 neg
+ (func (export "i8x16_neg_0") (result v128)
+ v128.const i32 0x00000001 0x00000002 0x00000003 0x00000004
+ i8x16.neg)
+
+ ;; i16x8 neg
+ (func (export "i16x8_neg_0") (result v128)
+ v128.const i32 0x0000ffff 0x00007fff 0x00000003 0x00000004
+ i16x8.neg)
+
+ ;; i32x4 neg
+ (func (export "i32x4_neg_0") (result v128)
+ v128.const i32 0x00000001 0x00000002 0x00000003 0x00000004
+ i32x4.neg)
+
+ ;; i64x2 neg
+ (func (export "i64x2_neg_0") (result v128)
+ v128.const i32 0x00000001 0x00000002 0x00000003 0x00000004
+ i64x2.neg)
+)
+(;; STDOUT ;;;
+i8x16_neg_0() => v128:0x000000ff 0x000000fe 0x000000fd 0x000000fc
+i16x8_neg_0() => v128:0x00000001 0x00008001 0x0000fffd 0x0000fffc
+i32x4_neg_0() => v128:0xffffffff 0xfffffffe 0xfffffffd 0xfffffffc
+i64x2_neg_0() => v128:0xffffffff 0xfffffffd 0xfffffffd 0xfffffffb
+;;; STDOUT ;;)