Ver Fonte

Fast-interp should report unsupported opcode (#4723)

when meeting simd opcode on non-posix platforms
liang.he há 3 meses atrás
pai
commit
53ffe451d0
1 ficheiros alterados com 3 adições e 0 exclusões
  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;