From 6457fb7003157dfe6c4c910b6dfae8824cab4356 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Mon, 17 Aug 2009 18:15:24 -0700 Subject: X86: Implement the versions of MOVD that have an MMX destination. --- src/arch/x86/isa/decoder/two_byte_opcodes.isa | 2 +- .../x86/isa/insts/simd128/integer/data_transfer/move.py | 15 +++++++++++++-- 2 files changed, 14 insertions(+), 3 deletions(-) (limited to 'src/arch') diff --git a/src/arch/x86/isa/decoder/two_byte_opcodes.isa b/src/arch/x86/isa/decoder/two_byte_opcodes.isa index 55056da81..9efb96803 100644 --- a/src/arch/x86/isa/decoder/two_byte_opcodes.isa +++ b/src/arch/x86/isa/decoder/two_byte_opcodes.isa @@ -580,7 +580,7 @@ 0x1: punpckhwd_Pq_Qq(); 0x2: punpckhdq_Pq_Qq(); 0x3: packssdw_Pq_Qq(); - 0x6: movd_Pq_Ed(); + 0x6: Inst::MOVD(Pq,Edp); 0x7: movq_Pq_Qq(); default: Inst::UD2(); } diff --git a/src/arch/x86/isa/insts/simd128/integer/data_transfer/move.py b/src/arch/x86/isa/insts/simd128/integer/data_transfer/move.py index 4bee18c19..f6740a0ea 100644 --- a/src/arch/x86/isa/insts/simd128/integer/data_transfer/move.py +++ b/src/arch/x86/isa/insts/simd128/integer/data_transfer/move.py @@ -54,11 +54,22 @@ # Authors: Gabe Black microcode = ''' -# MOVD +def macroop MOVD_MMX_R { + mov2fp mmx, regm, srcSize=dsz, destSize=8 +}; + +def macroop MOVD_MMX_M { + ldfp mmx, seg, sib, disp, dataSize=8 +}; + +def macroop MOVD_MMX_P { + rdip t7 + ldfp mmx, seg, riprel, disp, dataSize=8 +}; +''' # MOVQ # MOVDQA # MOVDQU # MOVDQ2Q # MOVQ2DQ # LDDQU -''' -- cgit v1.2.3