summaryrefslogtreecommitdiff
path: root/src/arch/x86
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2009-08-17 18:50:29 -0700
committerGabe Black <gblack@eecs.umich.edu>2009-08-17 18:50:29 -0700
commitdf1b3fdcfba3039122d8b2ded5e64200fec6eebd (patch)
tree71798e9571c0ddabe6371bda7d0cc6a35c15a937 /src/arch/x86
parentcf9634a43f2c211105b7a5dbed5237fe5884291f (diff)
downloadgem5-df1b3fdcfba3039122d8b2ded5e64200fec6eebd.tar.xz
X86: Implement the MOVDDUP instruction.
Diffstat (limited to 'src/arch/x86')
-rw-r--r--src/arch/x86/isa/decoder/two_byte_opcodes.isa2
-rw-r--r--src/arch/x86/isa/insts/simd128/floating_point/data_transfer/move_with_duplication.py17
2 files changed, 17 insertions, 2 deletions
diff --git a/src/arch/x86/isa/decoder/two_byte_opcodes.isa b/src/arch/x86/isa/decoder/two_byte_opcodes.isa
index 96a030e61..b841a8183 100644
--- a/src/arch/x86/isa/decoder/two_byte_opcodes.isa
+++ b/src/arch/x86/isa/decoder/two_byte_opcodes.isa
@@ -326,7 +326,7 @@
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();
diff --git a/src/arch/x86/isa/insts/simd128/floating_point/data_transfer/move_with_duplication.py b/src/arch/x86/isa/insts/simd128/floating_point/data_transfer/move_with_duplication.py
index 096708393..539edfd74 100644
--- a/src/arch/x86/isa/insts/simd128/floating_point/data_transfer/move_with_duplication.py
+++ b/src/arch/x86/isa/insts/simd128/floating_point/data_transfer/move_with_duplication.py
@@ -54,7 +54,22 @@
# 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
'''