summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMax Graey <maxgraey@gmail.com>2021-07-26 17:12:20 +0300
committerGitHub <noreply@github.com>2021-07-26 07:12:20 -0700
commitccd0c966cbd6a9d94d57cd93a39de1aeb9feccc2 (patch)
treeeae6d039df33aca5a29a16c69d9d504b833df875 /test
parentae060f070064fd87adae7ea9db5aeb2dace5a4ff (diff)
downloadbinaryen-ccd0c966cbd6a9d94d57cd93a39de1aeb9feccc2.tar.gz
binaryen-ccd0c966cbd6a9d94d57cd93a39de1aeb9feccc2.tar.bz2
binaryen-ccd0c966cbd6a9d94d57cd93a39de1aeb9feccc2.zip
[Simd] Add extension from i32x4 to i64x2 ops to interpreter (#4016)
Diffstat (limited to 'test')
-rw-r--r--test/spec/simd.wast4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/spec/simd.wast b/test/spec/simd.wast
index 9a76fec3b..31c44b453 100644
--- a/test/spec/simd.wast
+++ b/test/spec/simd.wast
@@ -977,6 +977,10 @@
(assert_return (invoke "i32x4.extend_high_i16x8_s" (v128.const i16x8 0 1 -1 32768 32767 32769 16384 -16384)) (v128.const i32x4 32767 -32767 16384 -16384))
(assert_return (invoke "i32x4.extend_low_i16x8_u" (v128.const i16x8 0 1 -1 32768 32767 32769 16384 -16384)) (v128.const i32x4 0 1 65535 32768))
(assert_return (invoke "i32x4.extend_high_i16x8_u" (v128.const i16x8 0 1 -1 32768 32767 32769 16384 -16384)) (v128.const i32x4 32767 32769 16384 49152))
+(assert_return (invoke "i64x2.extend_low_i32x4_s" (v128.const i32x4 -1 -1 -2147483648 -2147483648)) (v128.const i64x2 -1 -1))
+(assert_return (invoke "i64x2.extend_high_i32x4_s" (v128.const i32x4 2147483647 2147483647 -1 -1)) (v128.const i64x2 -1 -1))
+(assert_return (invoke "i64x2.extend_low_i32x4_u" (v128.const i32x4 -1 -1 2 2)) (v128.const i64x2 4294967295 4294967295))
+(assert_return (invoke "i64x2.extend_high_i32x4_u" (v128.const i32x4 2 2 -1 -1)) (v128.const i64x2 4294967295 4294967295))
(assert_return (invoke "v128.load8x8_s" (i32.const 256)) (v128.const i16x8 0xff80 0xff90 0xffa0 0xffb0 0xffc0 0xffd0 0xffe0 0xfff0))
(assert_return (invoke "v128.load8x8_u" (i32.const 256)) (v128.const i16x8 0x0080 0x0090 0x00a0 0x00b0 0x00c0 0x00d0 0x00e0 0x00f0))
(assert_return (invoke "v128.load16x4_s" (i32.const 256)) (v128.const i32x4 0xffff9080 0xffffb0a0 0xffffd0c0 0xfffff0e0))