Index: src/wasm/wasm-opcodes.cc |
diff --git a/src/wasm/wasm-opcodes.cc b/src/wasm/wasm-opcodes.cc |
index 2972f45103e6ad7e52d6852e4d44b52e41025fba..ec1cbd59b233d914eed75a5ddde05bdbef761dea 100644 |
--- a/src/wasm/wasm-opcodes.cc |
+++ b/src/wasm/wasm-opcodes.cc |
@@ -26,6 +26,8 @@ typedef Signature<ValueType> FunctionSig; |
#define CASE_I16x8_OP(name, str) CASE_OP(I16x8##name, "i16x8." str) |
#define CASE_I8x16_OP(name, str) CASE_OP(I8x16##name, "i8x16." str) |
#define CASE_S32x4_OP(name, str) CASE_OP(S32x4##name, "s32x4." str) |
+#define CASE_S16x8_OP(name, str) CASE_OP(S16x8##name, "s16x8." str) |
+#define CASE_S8x16_OP(name, str) CASE_OP(S8x16##name, "s8x16." str) |
#define CASE_INT_OP(name, str) CASE_I32_OP(name, str) CASE_I64_OP(name, str) |
#define CASE_FLOAT_OP(name, str) CASE_F32_OP(name, str) CASE_F64_OP(name, str) |
#define CASE_ALL_OP(name, str) CASE_FLOAT_OP(name, str) CASE_INT_OP(name, str) |
@@ -183,6 +185,7 @@ const char* WasmOpcodes::OpcodeName(WasmOpcode opcode) { |
CASE_F32x4_OP(Gt, "gt") |
CASE_F32x4_OP(Ge, "ge") |
CASE_CONVERT_OP(Convert, F32x4, I32x4, "i32", "convert") |
+ CASE_CONVERT_OP(Convert, I32x4, F32x4, "f32", "convert") |
CASE_F32x4_OP(ExtractLane, "extract_lane") |
CASE_F32x4_OP(ReplaceLane, "replace_lane") |
CASE_SIMDI_OP(ExtractLane, "extract_lane") |
@@ -195,21 +198,23 @@ const char* WasmOpcodes::OpcodeName(WasmOpcode opcode) { |
CASE_SIGN_OP(SIMDI, Ge, "ge") |
CASE_SIGN_OP(SIMDI, Shr, "shr") |
CASE_SIMDI_OP(Shl, "shl") |
- CASE_SIMDI_OP(Swizzle, "swizzle") |
- CASE_SIMDI_OP(Shuffle, "shuffle") |
- CASE_SIMDI_OP(Select, "select") |
- CASE_S128_OP(Ior, "or") |
+ CASE_SIGN_OP(I16x8, AddSaturate, "add_saturate") |
+ CASE_SIGN_OP(I8x16, AddSaturate, "add_saturate") |
+ CASE_SIGN_OP(I16x8, SubSaturate, "sub_saturate") |
+ CASE_SIGN_OP(I8x16, SubSaturate, "sub_saturate") |
+ CASE_S128_OP(Or, "or") |
CASE_S128_OP(Xor, "xor") |
CASE_S128_OP(And, "and") |
CASE_S128_OP(Not, "not") |
CASE_S32x4_OP(Select, "select") |
CASE_S32x4_OP(Swizzle, "swizzle") |
CASE_S32x4_OP(Shuffle, "shuffle") |
- CASE_CONVERT_OP(Convert, I32x4, F32x4, "f32", "convert") |
- CASE_SIGN_OP(I16x8, AddSaturate, "add_saturate") |
- CASE_SIGN_OP(I8x16, AddSaturate, "add_saturate") |
- CASE_SIGN_OP(I16x8, SubSaturate, "sub_saturate") |
- CASE_SIGN_OP(I8x16, SubSaturate, "sub_saturate") |
+ CASE_S16x8_OP(Select, "select") |
+ CASE_S16x8_OP(Swizzle, "swizzle") |
+ CASE_S16x8_OP(Shuffle, "shuffle") |
+ CASE_S8x16_OP(Select, "select") |
+ CASE_S8x16_OP(Swizzle, "swizzle") |
+ CASE_S8x16_OP(Shuffle, "shuffle") |
// Atomic operations. |
CASE_L32_OP(AtomicAdd, "atomic_add") |