diff options
Diffstat (limited to 'src/compat/Kbuild.include')
-rw-r--r-- | src/compat/Kbuild.include | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/compat/Kbuild.include b/src/compat/Kbuild.include index 34398dc..95041a9 100644 --- a/src/compat/Kbuild.include +++ b/src/compat/Kbuild.include @@ -75,4 +75,14 @@ ifeq ($(CONFIG_X86_64),y) ccflags-y += $(avx512_instr) asflags-y += $(avx512_instr) endif + ifeq ($(bmi2_instr),) + bmi2_instr :=$(call as-instr,mulx %rax$(comma)%rax$(comma)%rax,-DCONFIG_AS_BMI2=1) + ccflags-y += $(bmi2_instr) + asflags-y += $(bmi2_instr) + endif + ifeq ($(adx_instr),) + adx_instr :=$(call as-instr,adcx %rax$(comma)%rax,-DCONFIG_AS_ADX=1) + ccflags-y += $(adx_instr) + asflags-y += $(adx_instr) + endif endif |