X86: Implement the versions of MOVD that have an MMX destination.

This commit is contained in:
Gabe Black 2009-08-17 18:15:24 -07:00
parent 191590bcc4
commit 6457fb7003
2 changed files with 14 additions and 3 deletions

View file

@ -580,7 +580,7 @@
0x1: punpckhwd_Pq_Qq(); 0x1: punpckhwd_Pq_Qq();
0x2: punpckhdq_Pq_Qq(); 0x2: punpckhdq_Pq_Qq();
0x3: packssdw_Pq_Qq(); 0x3: packssdw_Pq_Qq();
0x6: movd_Pq_Ed(); 0x6: Inst::MOVD(Pq,Edp);
0x7: movq_Pq_Qq(); 0x7: movq_Pq_Qq();
default: Inst::UD2(); default: Inst::UD2();
} }

View file

@ -54,11 +54,22 @@
# Authors: Gabe Black # Authors: Gabe Black
microcode = ''' 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 # MOVQ
# MOVDQA # MOVDQA
# MOVDQU # MOVDQU
# MOVDQ2Q # MOVDQ2Q
# MOVQ2DQ # MOVQ2DQ
# LDDQU # LDDQU
'''