diff options
3 files changed, 37 insertions, 4 deletions
diff --git a/src/arch/x86/isa/decoder/two_byte_opcodes.isa b/src/arch/x86/isa/decoder/two_byte_opcodes.isa index 6a31ea164..efc3d295b 100644 --- a/src/arch/x86/isa/decoder/two_byte_opcodes.isa +++ b/src/arch/x86/isa/decoder/two_byte_opcodes.isa @@ -578,7 +578,7 @@ 0x0: decode OPCODE_OP_BOTTOM3 { 0x0: Inst::PUNPCKHBW(Pq,Qq); 0x1: Inst::PUNPCKHWD(Pq,Qq); - 0x2: punpckhdq_Pq_Qq(); + 0x2: Inst::PUNPCKHDQ(Pq,Qq); 0x3: packssdw_Pq_Qq(); 0x6: Inst::MOVD(Pq,Edp); 0x7: Inst::MOVQ(Pq,Qq); @@ -593,7 +593,7 @@ 0x1: decode OPCODE_OP_BOTTOM3 { 0x0: Inst::PUNPCKHBW(Vo,Wo); 0x1: Inst::PUNPCKHWD(Vo,Wo); - 0x2: punpckhdq_Vo_Wo(); + 0x2: Inst::PUNPCKHDQ(Vo,Wo); 0x3: packssdw_Vo_Wo(); 0x4: punpcklqdq_Vo_Wq(); 0x5: punpcklqdq_Vo_Wq(); 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 0869c42f9..0e11b5aba 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 @@ -147,7 +147,26 @@ def macroop PUNPCKHWD_XMM_P { unpack xmml, xmmh, ufp1, sel=0, size=2 unpack xmmh, xmmh, ufp1, sel=1, size=2 }; + +def macroop PUNPCKHDQ_XMM_XMM { + unpack xmml, xmmh, xmmhm, sel=0, size=4 + unpack xmmh, xmmh, xmmhm, sel=1, size=4 +}; + +def macroop PUNPCKHDQ_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=4 + unpack xmmh, xmmh, ufp1, sel=1, size=4 +}; + +def macroop PUNPCKHDQ_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=4 + unpack xmmh, xmmh, ufp1, sel=1, size=4 +}; ''' -# PUNPCKHDQ # PUNPCKHQDQ # PUNPCKLQDQ 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 b01f008e1..0743b43c5 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 @@ -128,5 +128,19 @@ def macroop PUNPCKHWD_MMX_P { ldfp ufp1, seg, riprel, disp, dataSize=8 unpack mmx, mmx, ufp1, sel=1, size=2 }; + +def macroop PUNPCKHDQ_MMX_MMX { + unpack mmx, mmx, mmxm, sel=1, size=4 +}; + +def macroop PUNPCKHDQ_MMX_M { + ldfp ufp1, seg, sib, disp, dataSize=8 + unpack mmx, mmx, ufp1, sel=1, size=4 +}; + +def macroop PUNPCKHDQ_MMX_P { + rdip t7 + ldfp ufp1, seg, riprel, disp, dataSize=8 + unpack mmx, mmx, ufp1, sel=1, size=4 +}; ''' -# PUNPCKHDQ |