Skip to content

Commit 70b35f9

Browse files
authored
Check for WASM_ENABLE_SIMDE in a couple more places (#4266)
For WAMR users who don't use cmake, it's possible that WASM_ENABLE_SIMD is set when WASM_ENABLE_SIMDE isn't. This was causing build failures.
1 parent 5c7f64b commit 70b35f9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

core/iwasm/interpreter/wasm_opcode.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -790,15 +790,14 @@ typedef enum WASMAtomicEXTOpcode {
790790
#endif
791791
#define SET_GOTO_TABLE_ELEM(opcode) [opcode] = HANDLE_OPCODE(opcode)
792792

793-
#if (WASM_ENABLE_JIT != 0 || WASM_ENABLE_FAST_INTERP != 0) \
794-
&& WASM_ENABLE_SIMD != 0
793+
#if WASM_ENABLE_SIMDE != 0
795794
#define SET_GOTO_TABLE_SIMD_PREFIX_ELEM() \
796795
SET_GOTO_TABLE_ELEM(WASM_OP_SIMD_PREFIX),
797796
#else
798797
#define SET_GOTO_TABLE_SIMD_PREFIX_ELEM()
799798
#endif
800799

801-
#if (WASM_ENABLE_FAST_INTERP != 0) && WASM_ENABLE_SIMD != 0
800+
#if WASM_ENABLE_SIMD != 0 && WASM_ENABLE_SIMDE != 0
802801
#define DEF_EXT_V128_HANDLE() \
803802
SET_GOTO_TABLE_ELEM(EXT_OP_SET_LOCAL_FAST_V128), /* 0xdd */ \
804803
SET_GOTO_TABLE_ELEM(EXT_OP_TEE_LOCAL_FAST_V128), /* 0xde */ \

0 commit comments

Comments
 (0)