X86: Implement the MOVDDUP instruction.
authorGabe Black <gblack@eecs.umich.edu>
Tue, 18 Aug 2009 01:50:29 +0000 (18:50 -0700)
committerGabe Black <gblack@eecs.umich.edu>
Tue, 18 Aug 2009 01:50:29 +0000 (18:50 -0700)
src/arch/x86/isa/decoder/two_byte_opcodes.isa
src/arch/x86/isa/insts/simd128/floating_point/data_transfer/move_with_duplication.py

index 96a030e61ec8ecb0fe213454953e2b2a6c083134..b841a81831c4e89200cffa5a554204c58ab93e7a 100644 (file)
                 0x8: decode OPCODE_OP_BOTTOM3 {
                     0x0: Inst::MOVSD(Vq,Wq);
                     0x1: Inst::MOVSD(Wq,Vq);
-                    0x2: movddup_Vo_Wq();
+                    0x2: Inst::MOVDDUP(Vo,Wq);
                     default: Inst::UD2();
                 }
                 default: Inst::UD2();
index 0967083934e72949be94fde8df751d649298da30..539edfd7419b24202b85dc26b0581efed610b5e2 100644 (file)
 # Authors: Gabe Black
 
 microcode = '''
-# MOVDDUP
+def macroop MOVDDUP_XMM_XMM {
+    movfp xmmh, xmmlm, dataSize=8
+    movfp xmml, xmmlm, dataSize=8
+};
+
+def macroop MOVDDUP_XMM_M {
+    ldfp xmml, seg, sib, disp, dataSize=8
+    movfp xmmh, xmml, dataSize=8
+};
+
+def macroop MOVDDUP_XMM_P {
+    rdip t7
+    ldfp xmml, seg, riprel, disp, dataSize=8
+    movfp xmmh, xmml, dataSize=8
+};
+
 # MOVSLDUP
 # MOVSHDUP
 '''