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

index 9efb96803bd4dd4ed1e52cb9fce625307ff10dad..c78021b3cc2cad237ae38202a9d991fb0d5fa5f6 100644 (file)
             0x0C: decode LEGACY_DECODEVAL {
                 // no prefix
                 0x0: decode OPCODE_OP_BOTTOM3 {
-                    0x0: punpcklbw_Pq_Qd();
+                    0x0: Inst::PUNPCKLBW(Pq,Qd);
                     0x1: punpcklwd_Pq_Qd();
                     0x2: punpckldq_Pq_Qd();
                     0x3: packsswb_Pq_Qq();
index 1f4c617dd40deaefdc2cb04c29797a0b6aba63c0..8f3c35749b3f819caa9f5cae9c1aba5540d61a21 100644 (file)
 # Authors: Gabe Black
 
 microcode = '''
+def macroop PUNPCKLBW_MMX_MMX {
+    unpack mmx, mmx, mmxm, sel=0, size=1
+};
+
+def macroop PUNPCKLBW_MMX_M {
+    ldfp ufp1, seg, sib, disp, dataSize=8
+    unpack mmx, mmx, ufp1, sel=0, size=1
+};
+
+def macroop PUNPCKLBW_MMX_P {
+    rdip t7
+    ldfp ufp1, seg, riprel, disp, dataSize=8
+    unpack mmx, mmx, ufp1, sel=0, size=1
+};
+'''
 # PUNPCKHBW
 # PUNPCKHWD
 # PUNPCKHDQ
-# PUNPCKLBW
 # PUNPCKLWD
 # PUNPCKLDQ
-'''