Browse Source

Fast-interp should report unsupported opcode (#4723)

when meeting simd opcode on non-posix platforms
liang.he 1 month ago
parent
commit
53ffe451d0
1 changed files with 3 additions and 0 deletions
  1. 3 0
      core/iwasm/interpreter/wasm_interp_fast.c

+ 3 - 0
core/iwasm/interpreter/wasm_interp_fast.c

@@ -7534,6 +7534,9 @@ wasm_interp_call_func_bytecode(WASMModuleInstance *module,
         HANDLE_OP(EXT_OP_LOOP)
         HANDLE_OP(EXT_OP_IF)
         HANDLE_OP(EXT_OP_BR_TABLE_CACHE)
+#if WASM_ENABLE_SIMDE == 0
+        HANDLE_OP(WASM_OP_SIMD_PREFIX)
+#endif
         {
             wasm_set_exception(module, "unsupported opcode");
             goto got_exception;