x86: Detect BMI2 instruction support.

This commit is contained in:
Mike Pall
2016-03-28 23:04:33 +02:00
parent c24c8e5312
commit 6801e7165c
4 changed files with 10 additions and 1 deletions

View File

@@ -2639,6 +2639,7 @@ static void build_subroutines(BuildCtx *ctx)
| mov eax, CARG1d
| .if X64WIN; push rsi; mov rsi, CARG2; .endif
| push rbx
| xor ecx, ecx
| cpuid
| mov [rsi], eax
| mov [rsi+4], ebx