changeset 962f58808d53 in /z/repo/m5
details: http://repo.m5sim.org/m5?cmd=changeset;node=962f58808d53
description:
X86: Implement the versions of MOVD that have an MMX destination.
diffstat:
2 files changed, 14 insertions(+), 3 deletions(-)
src/arch/x86/isa/decoder/two_byte_opcodes.isa | 2 -
src/arch/x86/isa/insts/simd128/integer/data_transfer/move.py | 15 ++++++++--
diffs (40 lines):
diff -r 36369ba5fad6 -r 962f58808d53
src/arch/x86/isa/decoder/two_byte_opcodes.isa
--- a/src/arch/x86/isa/decoder/two_byte_opcodes.isa Mon Aug 17 18:15:23
2009 -0700
+++ b/src/arch/x86/isa/decoder/two_byte_opcodes.isa Mon Aug 17 18:15:24
2009 -0700
@@ -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 -r 36369ba5fad6 -r 962f58808d53
src/arch/x86/isa/insts/simd128/integer/data_transfer/move.py
--- a/src/arch/x86/isa/insts/simd128/integer/data_transfer/move.py Mon Aug
17 18:15:23 2009 -0700
+++ b/src/arch/x86/isa/insts/simd128/integer/data_transfer/move.py Mon Aug
17 18:15:24 2009 -0700
@@ -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
-'''
_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev