diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2009-08-17 18:19:19 -0700 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2009-08-17 18:19:19 -0700 |
commit | 093b5b3274a8650798956827fbfb6c98fa7e17b8 (patch) | |
tree | 3fee012dc6feac0db8191d76f884715b09dd8a32 /src/arch/x86/isa/insts | |
parent | 3ae2f039275f2a27ba04d509bc7c055dd137b52d (diff) | |
download | gem5-093b5b3274a8650798956827fbfb6c98fa7e17b8.tar.xz |
X86: Implement PUNPCKHBW.
Diffstat (limited to 'src/arch/x86/isa/insts')
-rw-r--r-- | src/arch/x86/isa/insts/simd128/integer/data_reordering/unpack_and_interleave.py | 21 | ||||
-rw-r--r-- | src/arch/x86/isa/insts/simd64/integer/data_reordering/unpack_and_interleave.py | 16 |
2 files changed, 35 insertions, 2 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 9049350f8..defa76a6a 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 @@ -107,8 +107,27 @@ def macroop PUNPCKLDQ_XMM_P { unpack xmmh, xmml, ufp1, sel=1, size=4 unpack xmml, xmml, ufp1, sel=0, size=4 }; + +def macroop PUNPCKHBW_XMM_XMM { + unpack xmml, xmmh, xmmhm, sel=0, size=1 + unpack xmmh, xmmh, xmmhm, sel=1, size=1 +}; + +def macroop PUNPCKHBW_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=1 + unpack xmmh, xmmh, ufp1, sel=1, size=1 +}; + +def macroop PUNPCKHBW_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=1 + unpack xmmh, xmmh, ufp1, sel=1, size=1 +}; ''' -# PUNPCKHBW # PUNPCKHWD # PUNPCKHDQ # PUNPCKHQDQ 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 46d99f1b4..53c4dc81e 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 @@ -98,7 +98,21 @@ def macroop PUNPCKLDQ_MMX_P { ldfp ufp1, seg, riprel, disp, dataSize=8 unpack mmx, mmx, ufp1, sel=0, size=4 }; + +def macroop PUNPCKHBW_MMX_MMX { + unpack mmx, mmx, mmxm, sel=1, size=1 +}; + +def macroop PUNPCKHBW_MMX_M { + ldfp ufp1, seg, sib, disp, dataSize=8 + unpack mmx, mmx, ufp1, sel=1, size=1 +}; + +def macroop PUNPCKHBW_MMX_P { + rdip t7 + ldfp ufp1, seg, riprel, disp, dataSize=8 + unpack mmx, mmx, ufp1, sel=1, size=1 +}; ''' -# PUNPCKHBW # PUNPCKHWD # PUNPCKHDQ |