changeset b7f5a02ea9b7 in /z/repo/m5
details: http://repo.m5sim.org/m5?cmd=changeset;node=b7f5a02ea9b7
description:
X86: Implement the MOVDDUP instruction.
diffstat:
2 files changed, 17 insertions(+), 2 deletions(-)
src/arch/x86/isa/decoder/two_byte_opcodes.isa
| 2 -
src/arch/x86/isa/insts/simd128/floating_point/data_transfer/move_with_duplication.py
| 17 +++++++++-
diffs (39 lines):
diff -r 9ed64f6888cf -r b7f5a02ea9b7
src/arch/x86/isa/decoder/two_byte_opcodes.isa
--- a/src/arch/x86/isa/decoder/two_byte_opcodes.isa Mon Aug 17 18:44:44
2009 -0700
+++ b/src/arch/x86/isa/decoder/two_byte_opcodes.isa Mon Aug 17 18:50:29
2009 -0700
@@ -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 -r 9ed64f6888cf -r b7f5a02ea9b7
src/arch/x86/isa/insts/simd128/floating_point/data_transfer/move_with_duplication.py
---
a/src/arch/x86/isa/insts/simd128/floating_point/data_transfer/move_with_duplication.py
Mon Aug 17 18:44:44 2009 -0700
+++
b/src/arch/x86/isa/insts/simd128/floating_point/data_transfer/move_with_duplication.py
Mon Aug 17 18:50:29 2009 -0700
@@ -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
'''
_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev