X86: Implement the versions of PUNPCKLBW that use XMM registers.
authorGabe Black <gblack@eecs.umich.edu>
Tue, 18 Aug 2009 01:18:19 +0000 (18:18 -0700)
committerGabe Black <gblack@eecs.umich.edu>
Tue, 18 Aug 2009 01:18:19 +0000 (18:18 -0700)
src/arch/x86/isa/decoder/two_byte_opcodes.isa
src/arch/x86/isa/insts/simd128/integer/data_reordering/unpack_and_interleave.py

index 75312ff45b5cb51841a87ede43312934c80f2711..6b24b38262ccad32452c8f35e2a95836ac4872f7 100644 (file)
                 }
                 // operand size (0x66)
                 0x1: decode OPCODE_OP_BOTTOM3 {
-                    0x0: punpcklbw_Vo_Wq();
+                    0x0: Inst::PUNPCKLBW(Vo,Wq);
                     0x1: punpcklwd_Vo_Wq();
                     0x2: punpckldq_Vo_Wq();
                     0x3: packsswb_Vo_Wo();
index e8c22ea9f71c12794247c050c6c3830720f4184f..96419b1ad7d044d8d61135102e6c332016756275 100644 (file)
 # Authors: Gabe Black
 
 microcode = '''
+def macroop PUNPCKLBW_XMM_XMM {
+    unpack xmmh, xmml, xmmlm, sel=1, size=1
+    unpack xmml, xmml, xmmlm, sel=0, size=1
+};
+
+def macroop PUNPCKLBW_XMM_M {
+    ldfp ufp1, seg, sib, disp, dataSize=8
+    unpack xmmh, xmml, ufp1, sel=1, size=1
+    unpack xmml, xmml, ufp1, sel=0, size=1
+};
+
+def macroop PUNPCKLBW_XMM_P {
+    rdip t7
+    ldfp ufp1, seg, riprel, disp, dataSize=8
+    unpack xmmh, xmml, ufp1, sel=1, size=1
+    unpack xmml, xmml, ufp1, sel=0, size=1
+};
+'''
 # PUNPCKHBW
 # PUNPCKHWD
 # PUNPCKHDQ
 # PUNPCKHQDQ
-# PUNPCKLBW
 # PUNPCKLWD
 # PUNPCKLDQ
 # PUNPCKLQDQ
-'''