diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2009-08-17 18:19:43 -0700 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2009-08-17 18:19:43 -0700 |
commit | 535ba241f8fa655c99afb0978fdd7e63c33dbe74 (patch) | |
tree | 068b2672f44098000cc1ee1ce0292569e49cadbb /src/arch/x86/isa/insts/simd128 | |
parent | 093b5b3274a8650798956827fbfb6c98fa7e17b8 (diff) | |
download | gem5-535ba241f8fa655c99afb0978fdd7e63c33dbe74.tar.xz |
X86: Implement PUNPCKHWD.
Diffstat (limited to 'src/arch/x86/isa/insts/simd128')
-rw-r--r-- | src/arch/x86/isa/insts/simd128/integer/data_reordering/unpack_and_interleave.py | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/src/arch/x86/isa/insts/simd128/integer/data_reordering/unpack_and_interleave.py b/src/arch/x86/isa/insts/simd128/integer/data_reordering/unpack_and_interleave.py index defa76a6a..0869c42f9 100644 --- a/src/arch/x86/isa/insts/simd128/integer/data_reordering/unpack_and_interleave.py +++ b/src/arch/x86/isa/insts/simd128/integer/data_reordering/unpack_and_interleave.py @@ -127,8 +127,27 @@ def macroop PUNPCKHBW_XMM_P { unpack xmml, xmmh, ufp1, sel=0, size=1 unpack xmmh, xmmh, ufp1, sel=1, size=1 }; + +def macroop PUNPCKHWD_XMM_XMM { + unpack xmml, xmmh, xmmhm, sel=0, size=2 + unpack xmmh, xmmh, xmmhm, sel=1, size=2 +}; + +def macroop PUNPCKHWD_XMM_M { + lea t1, seg, sib, disp, dataSize=asz + ldfp ufp1, seg, [1, t0, t1], 8, dataSize=8 + unpack xmml, xmmh, ufp1, sel=0, size=2 + unpack xmmh, xmmh, ufp1, sel=1, size=2 +}; + +def macroop PUNPCKHWD_XMM_P { + rdip t7 + lea t1, seg, riprel, disp, dataSize=asz + ldfp ufp1, seg, [1, t0, t1], 8, dataSize=8 + unpack xmml, xmmh, ufp1, sel=0, size=2 + unpack xmmh, xmmh, ufp1, sel=1, size=2 +}; ''' -# PUNPCKHWD # PUNPCKHDQ # PUNPCKHQDQ # PUNPCKLQDQ |