summaryrefslogtreecommitdiff
path: root/src/wasm-binary.h
diff options
context:
space:
mode:
authorThomas Lively <7121787+tlively@users.noreply.github.com>2020-03-20 16:31:16 -0700
committerGitHub <noreply@github.com>2020-03-20 16:31:16 -0700
commit03ae7fcbfc5cedefd25c2414616cb1d3f77ab51b (patch)
tree17f6a9148ffd659f870dfe5745383fb1507e4d42 /src/wasm-binary.h
parent39fda77da51f83b200fc63bbfbc4dd2ccbfc2388 (diff)
downloadbinaryen-03ae7fcbfc5cedefd25c2414616cb1d3f77ab51b.tar.gz
binaryen-03ae7fcbfc5cedefd25c2414616cb1d3f77ab51b.tar.bz2
binaryen-03ae7fcbfc5cedefd25c2414616cb1d3f77ab51b.zip
SIMD integer abs and bitmask instructions (#2703)
Adds full support for the {i8x16,i16x8,i32x4}.abs instructions merged to the SIMD proposal in https://github.com/WebAssembly/simd/pull/128 as well as the {i8x16,i16x8,i32x4}.bitmask instructions proposed in https://github.com/WebAssembly/simd/pull/201.
Diffstat (limited to 'src/wasm-binary.h')
-rw-r--r--src/wasm-binary.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/wasm-binary.h b/src/wasm-binary.h
index 67211ea7d..a90d5fb5f 100644
--- a/src/wasm-binary.h
+++ b/src/wasm-binary.h
@@ -752,9 +752,11 @@ enum ASTNodes {
V128Xor = 0x4f,
V128AndNot = 0xd8,
V128Bitselect = 0x50,
+ I8x16Abs = 0xe1,
I8x16Neg = 0x51,
I8x16AnyTrue = 0x52,
I8x16AllTrue = 0x53,
+ I8x16Bitmask = 0xe4,
I8x16Shl = 0x54,
I8x16ShrS = 0x55,
I8x16ShrU = 0x56,
@@ -770,9 +772,11 @@ enum ASTNodes {
I8x16MaxS = 0x60,
I8x16MaxU = 0x61,
I8x16AvgrU = 0xd9,
+ I16x8Abs = 0xe2,
I16x8Neg = 0x62,
I16x8AnyTrue = 0x63,
I16x8AllTrue = 0x64,
+ I16x8Bitmask = 0xe5,
I16x8Shl = 0x65,
I16x8ShrS = 0x66,
I16x8ShrU = 0x67,
@@ -788,9 +792,11 @@ enum ASTNodes {
I16x8MaxS = 0x71,
I16x8MaxU = 0x72,
I16x8AvgrU = 0xda,
+ I32x4Abs = 0xe3,
I32x4Neg = 0x73,
I32x4AnyTrue = 0x74,
I32x4AllTrue = 0x75,
+ I32x4Bitmask = 0xe6,
I32x4Shl = 0x76,
I32x4ShrS = 0x77,
I32x4ShrU = 0x78,