From f3fb444af4d4fc5ea3376278bc0c0c4bc0129e5e Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Mon, 17 Aug 2009 18:21:46 -0700 Subject: X86: Implement PUNPCKLQDQ. --- src/arch/x86/isa/decoder/two_byte_opcodes.isa | 2 +- .../integer/data_reordering/unpack_and_interleave.py | 14 +++++++++++++- 2 files changed, 14 insertions(+), 2 deletions(-) (limited to 'src/arch/x86') diff --git a/src/arch/x86/isa/decoder/two_byte_opcodes.isa b/src/arch/x86/isa/decoder/two_byte_opcodes.isa index fd07f3192..3e1bc5cfb 100644 --- a/src/arch/x86/isa/decoder/two_byte_opcodes.isa +++ b/src/arch/x86/isa/decoder/two_byte_opcodes.isa @@ -595,7 +595,7 @@ 0x1: Inst::PUNPCKHWD(Vo,Wo); 0x2: Inst::PUNPCKHDQ(Vo,Wo); 0x3: packssdw_Vo_Wo(); - 0x4: punpcklqdq_Vo_Wq(); + 0x4: Inst::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 9ae617d36..be58a2551 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 @@ -187,5 +187,17 @@ def macroop PUNPCKHQDQ_XMM_P { movfp xmml, xmmh movfp xmmh, ufp1 }; + +def macroop PUNPCKLQDQ_XMM_XMM { + movfp xmmh, xmmlm +}; + +def macroop PUNPCKLQDQ_XMM_M { + ldfp xmmh, seg, sib, disp, dataSize=8 +}; + +def macroop PUNPCKLQDQ_XMM_P { + rdip t7 + ldfp xmmh, seg, riprel, disp, dataSize=8 +}; ''' -# PUNPCKLQDQ -- cgit v1.2.3