X86: Implement POR, ORPD and ORPS.

This commit is contained in:
Gabe Black 2009-08-17 18:23:33 -07:00
parent 25c6b016a6
commit 83a78072df
4 changed files with 82 additions and 8 deletions

View file

@ -470,7 +470,7 @@
0x3: rcpps_Vo_Wo(); 0x3: rcpps_Vo_Wo();
0x4: andps_Vo_Wo(); 0x4: andps_Vo_Wo();
0x5: andnps_Vo_Wo(); 0x5: andnps_Vo_Wo();
0x6: orps_Vo_Wo(); 0x6: Inst::ORPS(Vo,Wo);
0x7: Inst::XORPS(Vo,Wo); 0x7: Inst::XORPS(Vo,Wo);
} }
// repe (0xF3) // repe (0xF3)
@ -486,7 +486,7 @@
0x1: sqrtpd_Vo_Wo(); 0x1: sqrtpd_Vo_Wo();
0x4: andpd_Vo_Wo(); 0x4: andpd_Vo_Wo();
0x5: andnpd_Vo_Wo(); 0x5: andnpd_Vo_Wo();
0x6: orpd_Vo_Wo(); 0x6: Inst::ORPD(Vo,Wo);
//This really should be type o, but it works on q sized //This really should be type o, but it works on q sized
//chunks at a time. //chunks at a time.
0x7: Inst::XORPD(Vq,Wq); 0x7: Inst::XORPD(Vq,Wq);
@ -1046,7 +1046,7 @@
0x0: psubsb_Pq_Qq(); 0x0: psubsb_Pq_Qq();
0x1: psubsw_Pq_Qq(); 0x1: psubsw_Pq_Qq();
0x2: pminsw_Pq_Qq(); 0x2: pminsw_Pq_Qq();
0x3: por_Pq_Qq(); 0x3: Inst::POR(Pq,Qq);
0x4: paddsb_Pq_Qq(); 0x4: paddsb_Pq_Qq();
0x5: paddsw_Pq_Qq(); 0x5: paddsw_Pq_Qq();
0x6: pmaxsw_Pq_Qq(); 0x6: pmaxsw_Pq_Qq();
@ -1057,7 +1057,7 @@
0x0: psubsb_Vo_Wo(); 0x0: psubsb_Vo_Wo();
0x1: psubsw_Vo_Wo(); 0x1: psubsw_Vo_Wo();
0x2: pminsw_Vo_Wo(); 0x2: pminsw_Vo_Wo();
0x3: por_Vo_Wo(); 0x3: Inst::POR(Vo,Wo);
0x4: paddsb_Vo_Wo(); 0x4: paddsb_Vo_Wo();
0x5: paddsw_Vo_Wo(); 0x5: paddsw_Vo_Wo();
0x6: pmaxsw_Vo_Wo(); 0x6: pmaxsw_Vo_Wo();

View file

@ -54,6 +54,47 @@
# Authors: Gabe Black # Authors: Gabe Black
microcode = ''' microcode = '''
# ORPS def macroop ORPS_XMM_XMM {
# ORPD mor xmml, xmml, xmmlm
mor xmmh, xmmh, xmmhm
};
def macroop ORPS_XMM_M {
lea t1, seg, sib, disp, dataSize=asz
ldfp ufp1, seg, [1, t0, t1], dataSize=8
ldfp ufp2, seg, [1, t0, t1], 8, dataSize=8
mor xmml, xmml, ufp1
mor xmmh, xmmh, ufp2
};
def macroop ORPS_XMM_P {
rdip t7
lea t1, seg, riprel, disp, dataSize=asz
ldfp ufp1, seg, [1, t0, t1], dataSize=8
ldfp ufp2, seg, [1, t0, t1], 8, dataSize=8
mor xmml, xmml, ufp1
mor xmmh, xmmh, ufp2
};
def macroop ORPD_XMM_XMM {
mor xmml, xmml, xmmlm
mor xmmh, xmmh, xmmhm
};
def macroop ORPD_XMM_M {
lea t1, seg, sib, disp, dataSize=asz
ldfp ufp1, seg, [1, t0, t1], dataSize=8
ldfp ufp2, seg, [1, t0, t1], 8, dataSize=8
mor xmml, xmml, ufp1
mor xmmh, xmmh, ufp2
};
def macroop ORPD_XMM_P {
rdip t7
lea t1, seg, riprel, disp, dataSize=asz
ldfp ufp1, seg, [1, t0, t1], dataSize=8
ldfp ufp2, seg, [1, t0, t1], 8, dataSize=8
mor xmml, xmml, ufp1
mor xmmh, xmmh, ufp2
};
''' '''

View file

@ -54,5 +54,25 @@
# Authors: Gabe Black # Authors: Gabe Black
microcode = ''' microcode = '''
# POR def macroop POR_XMM_XMM {
mor xmml, xmml, xmmlm
mor xmmh, xmmh, xmmhm
};
def macroop POR_XMM_M {
lea t1, seg, sib, disp, dataSize=asz
ldfp ufp1, seg, [1, t0, t1], dataSize=8
ldfp ufp2, seg, [1, t0, t1], 8, dataSize=8
mor xmml, xmml, ufp1
mor xmmh, xmmh, ufp2
};
def macroop POR_XMM_P {
rdip t7
lea t1, seg, riprel, disp, dataSize=asz
ldfp ufp1, seg, [1, t0, t1], dataSize=8
ldfp ufp2, seg, [1, t0, t1], 8, dataSize=8
mor xmml, xmml, ufp1
mor xmmh, xmmh, ufp2
};
''' '''

View file

@ -54,5 +54,18 @@
# Authors: Gabe Black # Authors: Gabe Black
microcode = ''' microcode = '''
# POR def macroop POR_MMX_MMX {
mor mmx, mmx, mmxm
};
def macroop POR_MMX_M {
ldfp ufp1, seg, sib, disp, dataSize=8
mor mmx, mmx, ufp1
};
def macroop POR_MMX_P {
rdip t7
ldfp ufp1, seg, riprel, disp, dataSize=8
mor mmx, mmx, ufp1
};
''' '''