diff options
author | Mike Pall <mike> | 2016-03-28 23:04:33 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2016-03-28 23:04:33 +0200 |
commit | 6801e7165c3a5031db3cfe0e52f50cebb918695f (patch) | |
tree | 6a26e078a7ecee447dc861860e2bacaf20f04d3c /src/vm_x86.dasc | |
parent | c24c8e5312003da5ac0643645e321e84a672fea3 (diff) | |
download | luajit-6801e7165c3a5031db3cfe0e52f50cebb918695f.tar.gz luajit-6801e7165c3a5031db3cfe0e52f50cebb918695f.tar.bz2 luajit-6801e7165c3a5031db3cfe0e52f50cebb918695f.zip |
x86: Detect BMI2 instruction support.
Diffstat (limited to 'src/vm_x86.dasc')
-rw-r--r-- | src/vm_x86.dasc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vm_x86.dasc b/src/vm_x86.dasc index fcef660c..f108c0b5 100644 --- a/src/vm_x86.dasc +++ b/src/vm_x86.dasc | |||
@@ -3026,6 +3026,7 @@ static void build_subroutines(BuildCtx *ctx) | |||
3026 | | mov eax, CARG1d | 3026 | | mov eax, CARG1d |
3027 | | .if X64WIN; push rsi; mov rsi, CARG2; .endif | 3027 | | .if X64WIN; push rsi; mov rsi, CARG2; .endif |
3028 | | push rbx | 3028 | | push rbx |
3029 | | xor ecx, ecx | ||
3029 | | cpuid | 3030 | | cpuid |
3030 | | mov [rsi], eax | 3031 | | mov [rsi], eax |
3031 | | mov [rsi+4], ebx | 3032 | | mov [rsi+4], ebx |
@@ -3049,6 +3050,7 @@ static void build_subroutines(BuildCtx *ctx) | |||
3049 | | mov eax, [esp+4] // Argument 1 is function number. | 3050 | | mov eax, [esp+4] // Argument 1 is function number. |
3050 | | push edi | 3051 | | push edi |
3051 | | push ebx | 3052 | | push ebx |
3053 | | xor ecx, ecx | ||
3052 | | cpuid | 3054 | | cpuid |
3053 | | mov edi, [esp+16] // Argument 2 is result area. | 3055 | | mov edi, [esp+16] // Argument 2 is result area. |
3054 | | mov [edi], eax | 3056 | | mov [edi], eax |