Commit 705f3d47 authored by Loren Merritt's avatar Loren Merritt Committed by Justin Ruggles

x86inc: support AVX abstraction for 2-operand instructions

Add cvtdq2ps and cvtps2dq to the AVX instruction list.
Signed-off-by: 's avatarJustin Ruggles <justin.ruggles@gmail.com>
parent e73ec921
......@@ -822,7 +822,7 @@ INIT_XMM
;%1 == instruction
;%2 == 1 if float, 0 if int
;%3 == 1 if 4-operand (xmm, xmm, xmm, imm), 0 if 3-operand (xmm, xmm, xmm)
;%3 == 1 if 4-operand (xmm, xmm, xmm, imm), 0 if 2- or 3-operand (xmm, xmm, xmm)
;%4 == number of operands given
;%5+: operands
%macro RUN_AVX_INSTR 6-7+
......@@ -832,7 +832,11 @@ INIT_XMM
%define %%size mmsize
%endif
%if %%size==32
v%1 %5, %6, %7
%if %0 >= 7
v%1 %5, %6, %7
%else
v%1 %5, %6
%endif
%else
%if %%size==8
%define %%regmov movq
......@@ -918,6 +922,8 @@ AVX_INSTR cmppd, 1, 0, 0
AVX_INSTR cmpps, 1, 0, 0
AVX_INSTR cmpsd, 1, 0, 0
AVX_INSTR cmpss, 1, 0, 0
AVX_INSTR cvtdq2ps, 1, 0, 0
AVX_INSTR cvtps2dq, 1, 0, 0
AVX_INSTR divpd, 1, 0, 0
AVX_INSTR divps, 1, 0, 0
AVX_INSTR divsd, 1, 0, 0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment