diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2009-08-17 18:15:42 -0700 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2009-08-17 18:15:42 -0700 |
commit | 247ed2379d92c42d1b52cdda4a8cc80bdb9a239d (patch) | |
tree | e85791098511bd7c6f1ca3879c457aec5dcdbd0b /src | |
parent | ecc62e750e5f9a34c2c89570d2cd940b2dcf0035 (diff) | |
download | gem5-247ed2379d92c42d1b52cdda4a8cc80bdb9a239d.tar.xz |
X86: Implement the versions of PUNPCKLBW that use MMX registers.
Diffstat (limited to 'src')
-rw-r--r-- | src/arch/x86/isa/decoder/two_byte_opcodes.isa | 2 | ||||
-rw-r--r-- | src/arch/x86/isa/insts/simd64/integer/data_reordering/unpack_and_interleave.py | 17 |
2 files changed, 16 insertions, 3 deletions
diff --git a/src/arch/x86/isa/decoder/two_byte_opcodes.isa b/src/arch/x86/isa/decoder/two_byte_opcodes.isa index 9efb96803..c78021b3c 100644 --- a/src/arch/x86/isa/decoder/two_byte_opcodes.isa +++ b/src/arch/x86/isa/decoder/two_byte_opcodes.isa @@ -551,7 +551,7 @@ 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(); diff --git a/src/arch/x86/isa/insts/simd64/integer/data_reordering/unpack_and_interleave.py b/src/arch/x86/isa/insts/simd64/integer/data_reordering/unpack_and_interleave.py index 1f4c617dd..8f3c35749 100644 --- a/src/arch/x86/isa/insts/simd64/integer/data_reordering/unpack_and_interleave.py +++ b/src/arch/x86/isa/insts/simd64/integer/data_reordering/unpack_and_interleave.py @@ -54,10 +54,23 @@ # 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 -''' |