Skip to content

Commit

Permalink
fix compile error with XBYAK_DISABLE_AVX512
Browse files Browse the repository at this point in the history
  • Loading branch information
herumi committed Jan 24, 2025
1 parent 3a823ad commit 5329faa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xbyak/xbyak.h
Original file line number Diff line number Diff line change
Expand Up @@ -2697,7 +2697,7 @@ class CodeGenerator : public CodeArray {
}
if ((sel == 0 && enc != VexEncoding && enc != EvexEncoding) || (sel == 1 && enc != PreAVX10v2Encoding && enc != AVX10v2Encoding)) XBYAK_THROW_RET(ERR_BAD_ENCODING_MODE, VexEncoding)
#ifdef XBYAK_DISABLE_AVX512
if (enc == EvexEncoding || enc == AVX10v2Encoding) XBYAK_THROW(ERR_EVEX_IS_INVALID)
if (enc == EvexEncoding || enc == AVX10v2Encoding) XBYAK_THROW_RET(ERR_EVEX_IS_INVALID, VexEncoding)
#endif
return enc;
}
Expand Down

0 comments on commit 5329faa

Please sign in to comment.