From cf9634a43f2c211105b7a5dbed5237fe5884291f Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Mon, 17 Aug 2009 18:44:44 -0700 Subject: X86: Implement many of the media mov instructions. --- .../simd128/floating_point/data_transfer/move.py | 152 +++++++++++++++++++-- 1 file changed, 142 insertions(+), 10 deletions(-) (limited to 'src/arch/x86/isa/insts/simd128') diff --git a/src/arch/x86/isa/insts/simd128/floating_point/data_transfer/move.py b/src/arch/x86/isa/insts/simd128/floating_point/data_transfer/move.py index 1924f8f8c..1a6be6783 100644 --- a/src/arch/x86/isa/insts/simd128/floating_point/data_transfer/move.py +++ b/src/arch/x86/isa/insts/simd128/floating_point/data_transfer/move.py @@ -86,12 +86,142 @@ def macroop MOVAPS_XMM_XMM { movfp xmmh, xmmhm, dataSize=8 }; -# MOVAPD -# MOVUPS -# MOVUPD -# MOVHPS -# MOVHPD -# MOVLPS +def macroop MOVAPD_XMM_XMM { + movfp xmml, xmmlm, dataSize=8 + movfp xmmh, xmmhm, dataSize=8 +}; + +def macroop MOVAPD_XMM_M { + ldfp xmml, seg, sib, "DISPLACEMENT", dataSize=8 + ldfp xmmh, seg, sib, "DISPLACEMENT + 8", dataSize=8 +}; + +def macroop MOVAPD_XMM_P { + rdip t7 + ldfp xmml, seg, riprel, "DISPLACEMENT", dataSize=8 + ldfp xmmh, seg, riprel, "DISPLACEMENT + 8", dataSize=8 +}; + +def macroop MOVAPD_M_XMM { + stfp xmml, seg, sib, "DISPLACEMENT", dataSize=8 + stfp xmmh, seg, sib, "DISPLACEMENT + 8", dataSize=8 +}; + +def macroop MOVAPD_P_XMM { + rdip t7 + stfp xmml, seg, riprel, "DISPLACEMENT", dataSize=8 + stfp xmmh, seg, riprel, "DISPLACEMENT + 8", dataSize=8 +}; + +def macroop MOVUPS_XMM_XMM { + movfp xmml, xmmlm, dataSize=8 + movfp xmmh, xmmhm, dataSize=8 +}; + +def macroop MOVUPS_XMM_M { + ldfp xmml, seg, sib, "DISPLACEMENT", dataSize=8 + ldfp xmmh, seg, sib, "DISPLACEMENT + 8", dataSize=8 +}; + +def macroop MOVUPS_XMM_P { + rdip t7 + ldfp xmml, seg, riprel, "DISPLACEMENT", dataSize=8 + ldfp xmmh, seg, riprel, "DISPLACEMENT + 8", dataSize=8 +}; + +def macroop MOVUPS_M_XMM { + stfp xmml, seg, sib, "DISPLACEMENT", dataSize=8 + stfp xmmh, seg, sib, "DISPLACEMENT + 8", dataSize=8 +}; + +def macroop MOVUPS_P_XMM { + rdip t7 + stfp xmml, seg, riprel, "DISPLACEMENT", dataSize=8 + stfp xmmh, seg, riprel, "DISPLACEMENT + 8", dataSize=8 +}; + +def macroop MOVUPD_XMM_XMM { + movfp xmml, xmmlm, dataSize=8 + movfp xmmh, xmmhm, dataSize=8 +}; + +def macroop MOVUPD_XMM_M { + ldfp xmml, seg, sib, "DISPLACEMENT", dataSize=8 + ldfp xmmh, seg, sib, "DISPLACEMENT + 8", dataSize=8 +}; + +def macroop MOVUPD_XMM_P { + rdip t7 + ldfp xmml, seg, riprel, "DISPLACEMENT", dataSize=8 + ldfp xmmh, seg, riprel, "DISPLACEMENT + 8", dataSize=8 +}; + +def macroop MOVUPD_M_XMM { + stfp xmml, seg, sib, "DISPLACEMENT", dataSize=8 + stfp xmmh, seg, sib, "DISPLACEMENT + 8", dataSize=8 +}; + +def macroop MOVUPD_P_XMM { + rdip t7 + stfp xmml, seg, riprel, "DISPLACEMENT", dataSize=8 + stfp xmmh, seg, riprel, "DISPLACEMENT + 8", dataSize=8 +}; + +def macroop MOVHPS_XMM_M { + ldfp xmmh, seg, sib, "DISPLACEMENT + 8", dataSize=8 +}; + +def macroop MOVHPS_XMM_P { + rdip t7 + ldfp xmmh, seg, riprel, "DISPLACEMENT + 8", dataSize=8 +}; + +def macroop MOVHPS_M_XMM { + stfp xmmh, seg, sib, "DISPLACEMENT + 8", dataSize=8 +}; + +def macroop MOVHPS_P_XMM { + rdip t7 + stfp xmml, seg, riprel, "DISPLACEMENT", dataSize=8 + stfp xmmh, seg, riprel, "DISPLACEMENT + 8", dataSize=8 +}; + +def macroop MOVHPD_XMM_M { + ldfp xmmh, seg, sib, "DISPLACEMENT + 8", dataSize=8 +}; + +def macroop MOVHPD_XMM_P { + rdip t7 + ldfp xmmh, seg, riprel, "DISPLACEMENT + 8", dataSize=8 +}; + +def macroop MOVHPD_M_XMM { + stfp xmmh, seg, sib, "DISPLACEMENT + 8", dataSize=8 +}; + +def macroop MOVHPD_P_XMM { + rdip t7 + stfp xmml, seg, riprel, "DISPLACEMENT", dataSize=8 + stfp xmmh, seg, riprel, "DISPLACEMENT + 8", dataSize=8 +}; + +def macroop MOVLPS_XMM_M { + ldfp xmml, seg, sib, disp, dataSize=8 +}; + +def macroop MOVLPS_XMM_P { + rdip t7 + ldfp xmml, seg, riprel, disp, dataSize=8 +}; + +def macroop MOVLPS_M_XMM { + stfp xmml, seg, sib, disp, dataSize=8 +}; + +def macroop MOVLPS_P_XMM { + rdip t7 + stfp xmml, seg, riprel, disp, dataSize=8 +}; def macroop MOVLPD_XMM_M { ldfp xmml, seg, sib, disp, dataSize=8 @@ -111,12 +241,14 @@ def macroop MOVLPD_P_XMM { stfp xmml, seg, riprel, disp, dataSize=8 }; -def macroop MOVLPD_XMM_XMM { - movfp xmml, xmmlm, dataSize=8 +def macroop MOVHLPS_XMM_XMM { + movfp xmml, xmmhm, dataSize=8 +}; + +def macroop MOVLHPS_XMM_XMM { + movfp xmmh, xmmlm, dataSize=8 }; -# MOVHLPS -# MOVLHPS # MOVSS def macroop MOVSD_XMM_M { -- cgit v1.2.3