From: Gabe Black Date: Tue, 18 Aug 2009 01:21:09 +0000 (-0700) Subject: X86: Implement PUNPCKHQDQ. X-Git-Tag: Calvin_Submission~121 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cfaeb5eaf7d1aaa6dad7c8677c8829ac1be5c90b;p=gem5.git X86: Implement PUNPCKHQDQ. --- diff --git a/src/arch/x86/isa/decoder/two_byte_opcodes.isa b/src/arch/x86/isa/decoder/two_byte_opcodes.isa index efc3d295b..fd07f3192 100644 --- a/src/arch/x86/isa/decoder/two_byte_opcodes.isa +++ b/src/arch/x86/isa/decoder/two_byte_opcodes.isa @@ -596,7 +596,7 @@ 0x2: Inst::PUNPCKHDQ(Vo,Wo); 0x3: packssdw_Vo_Wo(); 0x4: punpcklqdq_Vo_Wq(); - 0x5: punpcklqdq_Vo_Wq(); + 0x5: Inst::PUNPCKHQDQ(Vo,Wq); 0x6: movd_Vo_Ed(); 0x7: movdqa_Vo_Wo(); } 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 0e11b5aba..9ae617d36 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 @@ -167,6 +167,25 @@ def macroop PUNPCKHDQ_XMM_P { unpack xmml, xmmh, ufp1, sel=0, size=4 unpack xmmh, xmmh, ufp1, sel=1, size=4 }; + +def macroop PUNPCKHQDQ_XMM_XMM { + movfp xmml, xmmh + movfp xmmh, xmmhm +}; + +def macroop PUNPCKHQDQ_XMM_M { + lea t1, seg, sib, disp, dataSize=asz + ldfp ufp1, seg, [1, t0, t1], 8, dataSize=8 + movfp xmml, xmmh + movfp xmmh, ufp1 +}; + +def macroop PUNPCKHQDQ_XMM_P { + rdip t7 + lea t1, seg, riprel, disp, dataSize=asz + ldfp ufp1, seg, riprel, 8, dataSize=8 + movfp xmml, xmmh + movfp xmmh, ufp1 +}; ''' -# PUNPCKHQDQ # PUNPCKLQDQ