diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/interp/simd-binary.txt | 21 | ||||
-rw-r--r-- | test/interp/simd-unary.txt | 6 |
2 files changed, 27 insertions, 0 deletions
diff --git a/test/interp/simd-binary.txt b/test/interp/simd-binary.txt index 144832a9..fb8ccf7b 100644 --- a/test/interp/simd-binary.txt +++ b/test/interp/simd-binary.txt @@ -150,6 +150,24 @@ v128.const i32 0x00ffffff 0x0400ffff 0x00000003 0x00000004 v128.const i32 0x00020001 0xfe000002 0x00000003 0x00000004 i16x8.sub_saturate_u) + + ;; v128 and + (func (export "v128_and_0") (result v128) + v128.const i32 0x00ff0001 0x00040002 0x44000003 0x00000004 + v128.const i32 0x00020001 0x00fe0002 0x00000003 0x55000004 + v128.and) + + ;; v128 or + (func (export "v128_or_0") (result v128) + v128.const i32 0x00ff0001 0x00040002 0x44000003 0x00000004 + v128.const i32 0x00020001 0x00fe0002 0x00000003 0x55000004 + v128.or) + + ;; v128 xor + (func (export "v128_xor_0") (result v128) + v128.const i32 0x00ff0001 0x00040002 0x44000003 0x00000004 + v128.const i32 0x00020001 0x00fe0002 0x00000003 0x55000004 + v128.xor) ) (;; STDOUT ;;; @@ -183,4 +201,7 @@ i8x16_sub_saturate_signed_0() => v128:0x00000000 0x0000007f 0x00000080 0x0000008 i8x16_sub_saturate_unsigned_0() => v128:0x00fd0000 0x00000000 0x0000ff7f 0x00000000 i16x8_sub_saturate_signed_0() => v128:0x00000000 0x00007fff 0x00008000 0x00008002 i16x8_sub_saturate_unsigned_0() => v128:0x00fdfffe 0x0000fffd 0x00000000 0x00000000 +v128_and_0() => v128:0x00020001 0x00040002 0x00000003 0x00000004 +v128_or_0() => v128:0x00ff0001 0x00fe0002 0x44000003 0x55000004 +v128_xor_0() => v128:0x00fd0000 0x00fa0000 0x44000000 0x55000000 ;;; STDOUT ;;) diff --git a/test/interp/simd-unary.txt b/test/interp/simd-unary.txt index c7c467f8..79882003 100644 --- a/test/interp/simd-unary.txt +++ b/test/interp/simd-unary.txt @@ -20,10 +20,16 @@ (func (export "i64x2_neg_0") (result v128) v128.const i32 0x00000001 0x00000002 0x00000003 0x00000004 i64x2.neg) + + ;; v128 not + (func (export "v128_not_0") (result v128) + v128.const i32 0x00ff0001 0x00550002 0x00000003 0x00000004 + v128.not) ) (;; 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 +v128_not_0() => v128:0xff00fffe 0xffaafffd 0xfffffffc 0xfffffffb ;;; STDOUT ;;) |