From 7d4db7266ea950bb1af6f74f407cc1e9e11faff6 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Mon, 17 Aug 2009 20:25:14 -0700 Subject: X86: Implement MOVSS. --- src/arch/x86/isa/decoder/two_byte_opcodes.isa | 4 ++-- .../simd128/floating_point/data_transfer/move.py | 26 +++++++++++++++++++++- 2 files changed, 27 insertions(+), 3 deletions(-) (limited to 'src/arch/x86/isa') diff --git a/src/arch/x86/isa/decoder/two_byte_opcodes.isa b/src/arch/x86/isa/decoder/two_byte_opcodes.isa index dabc1bb75..41cbdd869 100644 --- a/src/arch/x86/isa/decoder/two_byte_opcodes.isa +++ b/src/arch/x86/isa/decoder/two_byte_opcodes.isa @@ -306,8 +306,8 @@ } // repe (0xF3) 0x4: decode OPCODE_OP_BOTTOM3 { - 0x0: WarnUnimpl::movss_Vd_Wd(); - 0x1: WarnUnimpl::movss_Wd_Vd(); + 0x0: MOVSS(Vd,Wd); + 0x1: MOVSS(Wd,Vd); 0x2: WarnUnimpl::movsldup_Vo_Wo(); 0x6: WarnUnimpl::movshdup_Vo_Wo(); default: UD2(); 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 1a6be6783..1f4044bde 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 @@ -249,7 +249,31 @@ def macroop MOVLHPS_XMM_XMM { movfp xmmh, xmmlm, dataSize=8 }; -# MOVSS +def macroop MOVSS_XMM_XMM { + movfp xmml, xmmlm, dataSize=4 +}; + +def macroop MOVSS_XMM_M { + lfpimm xmml, 0 + lfpimm xmmh, 0 + ldfp xmml, seg, sib, disp, dataSize=4 +}; + +def macroop MOVSS_XMM_P { + rdip t7 + lfpimm xmml, 0 + lfpimm xmmh, 0 + ldfp xmml, seg, riprel, disp, dataSize=4 +}; + +def macroop MOVSS_M_XMM { + stfp xmml, seg, sib, disp, dataSize=4 +}; + +def macroop MOVSS_P_XMM { + rdip t7 + stfp xmml, seg, riprel, disp, dataSize=4 +}; def macroop MOVSD_XMM_M { # Zero xmmh -- cgit v1.2.3