x86inc: Add an option for forcing VEX-encoding in non-AVX functions
This commit is contained in:
@@ -86,6 +86,11 @@
|
|||||||
%define mangle(x) x
|
%define mangle(x) x
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
; Use VEX-encoding even in non-AVX functions
|
||||||
|
%ifndef FORCE_VEX_ENCODING
|
||||||
|
%define FORCE_VEX_ENCODING 0
|
||||||
|
%endif
|
||||||
|
|
||||||
%macro SECTION_RODATA 0-1 16
|
%macro SECTION_RODATA 0-1 16
|
||||||
%ifidn __OUTPUT_FORMAT__,win32
|
%ifidn __OUTPUT_FORMAT__,win32
|
||||||
SECTION .rdata align=%1
|
SECTION .rdata align=%1
|
||||||
@@ -1014,7 +1019,7 @@ BRANCH_INSTR jz, je, jnz, jne, jl, jle, jnl, jnle, jg, jge, jng, jnge, ja, jae,
|
|||||||
%endmacro
|
%endmacro
|
||||||
|
|
||||||
%macro INIT_XMM 0-1+
|
%macro INIT_XMM 0-1+
|
||||||
%assign avx_enabled 0
|
%assign avx_enabled FORCE_VEX_ENCODING
|
||||||
%define RESET_MM_PERMUTATION INIT_XMM %1
|
%define RESET_MM_PERMUTATION INIT_XMM %1
|
||||||
%define mmsize 16
|
%define mmsize 16
|
||||||
%define mova movdqa
|
%define mova movdqa
|
||||||
|
|||||||
Reference in New Issue
Block a user