X86: Implement PUNPCKLWD.

This commit is contained in:
Gabe Black 2009-08-17 18:18:40 -07:00
parent ae4ee21ecd
commit 673b19f5d4
3 changed files with 35 additions and 4 deletions

View file

@ -552,7 +552,7 @@
// no prefix // no prefix
0x0: decode OPCODE_OP_BOTTOM3 { 0x0: decode OPCODE_OP_BOTTOM3 {
0x0: Inst::PUNPCKLBW(Pq,Qd); 0x0: Inst::PUNPCKLBW(Pq,Qd);
0x1: punpcklwd_Pq_Qd(); 0x1: Inst::PUNPCKLWD(Pq,Qd);
0x2: punpckldq_Pq_Qd(); 0x2: punpckldq_Pq_Qd();
0x3: packsswb_Pq_Qq(); 0x3: packsswb_Pq_Qq();
0x4: pcmpgtb_Pq_Qq(); 0x4: pcmpgtb_Pq_Qq();
@ -563,7 +563,7 @@
// operand size (0x66) // operand size (0x66)
0x1: decode OPCODE_OP_BOTTOM3 { 0x1: decode OPCODE_OP_BOTTOM3 {
0x0: Inst::PUNPCKLBW(Vo,Wq); 0x0: Inst::PUNPCKLBW(Vo,Wq);
0x1: punpcklwd_Vo_Wq(); 0x1: Inst::PUNPCKLWD(Vo,Wq);
0x2: punpckldq_Vo_Wq(); 0x2: punpckldq_Vo_Wq();
0x3: packsswb_Vo_Wo(); 0x3: packsswb_Vo_Wo();
0x4: pcmpgtb_Vo_Wo(); 0x4: pcmpgtb_Vo_Wo();

View file

@ -71,11 +71,28 @@ def macroop PUNPCKLBW_XMM_P {
unpack xmmh, xmml, ufp1, sel=1, size=1 unpack xmmh, xmml, ufp1, sel=1, size=1
unpack xmml, xmml, ufp1, sel=0, size=1 unpack xmml, xmml, ufp1, sel=0, size=1
}; };
def macroop PUNPCKLWD_XMM_XMM {
unpack xmmh, xmml, xmmlm, sel=1, size=2
unpack xmml, xmml, xmmlm, sel=0, size=2
};
def macroop PUNPCKLWD_XMM_M {
ldfp ufp1, seg, sib, disp, dataSize=8
unpack xmmh, xmml, ufp1, sel=1, size=2
unpack xmml, xmml, ufp1, sel=0, size=2
};
def macroop PUNPCKLWD_XMM_P {
rdip t7
ldfp ufp1, seg, riprel, disp, dataSize=8
unpack xmmh, xmml, ufp1, sel=1, size=2
unpack xmml, xmml, ufp1, sel=0, size=2
};
''' '''
# PUNPCKHBW # PUNPCKHBW
# PUNPCKHWD # PUNPCKHWD
# PUNPCKHDQ # PUNPCKHDQ
# PUNPCKHQDQ # PUNPCKHQDQ
# PUNPCKLWD
# PUNPCKLDQ # PUNPCKLDQ
# PUNPCKLQDQ # PUNPCKLQDQ

View file

@ -68,9 +68,23 @@ def macroop PUNPCKLBW_MMX_P {
ldfp ufp1, seg, riprel, disp, dataSize=8 ldfp ufp1, seg, riprel, disp, dataSize=8
unpack mmx, mmx, ufp1, sel=0, size=1 unpack mmx, mmx, ufp1, sel=0, size=1
}; };
def macroop PUNPCKLWD_MMX_MMX {
unpack mmx, mmx, mmxm, sel=0, size=2
};
def macroop PUNPCKLWD_MMX_M {
ldfp ufp1, seg, sib, disp, dataSize=8
unpack mmx, mmx, ufp1, sel=0, size=2
};
def macroop PUNPCKLWD_MMX_P {
rdip t7
ldfp ufp1, seg, riprel, disp, dataSize=8
unpack mmx, mmx, ufp1, sel=0, size=2
};
''' '''
# PUNPCKHBW # PUNPCKHBW
# PUNPCKHWD # PUNPCKHWD
# PUNPCKHDQ # PUNPCKHDQ
# PUNPCKLWD
# PUNPCKLDQ # PUNPCKLDQ