summaryrefslogtreecommitdiff
path: root/src/lj_jit.h
diff options
context:
space:
mode:
authorMike Pall <mike>2016-03-28 23:04:33 +0200
committerMike Pall <mike>2016-03-28 23:04:33 +0200
commit6801e7165c3a5031db3cfe0e52f50cebb918695f (patch)
tree6a26e078a7ecee447dc861860e2bacaf20f04d3c /src/lj_jit.h
parentc24c8e5312003da5ac0643645e321e84a672fea3 (diff)
downloadluajit-6801e7165c3a5031db3cfe0e52f50cebb918695f.tar.gz
luajit-6801e7165c3a5031db3cfe0e52f50cebb918695f.tar.bz2
luajit-6801e7165c3a5031db3cfe0e52f50cebb918695f.zip
x86: Detect BMI2 instruction support.
Diffstat (limited to 'src/lj_jit.h')
-rw-r--r--src/lj_jit.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lj_jit.h b/src/lj_jit.h
index 5a51357e..2d2e833a 100644
--- a/src/lj_jit.h
+++ b/src/lj_jit.h
@@ -19,10 +19,11 @@
19#define JIT_F_SSE4_1 0x00000040 19#define JIT_F_SSE4_1 0x00000040
20#define JIT_F_PREFER_IMUL 0x00000080 20#define JIT_F_PREFER_IMUL 0x00000080
21#define JIT_F_LEA_AGU 0x00000100 21#define JIT_F_LEA_AGU 0x00000100
22#define JIT_F_BMI2 0x00000200
22 23
23/* Names for the CPU-specific flags. Must match the order above. */ 24/* Names for the CPU-specific flags. Must match the order above. */
24#define JIT_F_CPU_FIRST JIT_F_SSE2 25#define JIT_F_CPU_FIRST JIT_F_SSE2
25#define JIT_F_CPUSTRING "\4SSE2\4SSE3\6SSE4.1\3AMD\4ATOM" 26#define JIT_F_CPUSTRING "\4SSE2\4SSE3\6SSE4.1\3AMD\4ATOM\4BMI2"
26#elif LJ_TARGET_ARM 27#elif LJ_TARGET_ARM
27#define JIT_F_ARMV6_ 0x00000010 28#define JIT_F_ARMV6_ 0x00000010
28#define JIT_F_ARMV6T2_ 0x00000020 29#define JIT_F_ARMV6T2_ 0x00000020