summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/arch/x86/isa/decoder/two_byte_opcodes.isa2
-rw-r--r--src/arch/x86/isa/insts/simd128/integer/data_reordering/unpack_and_interleave.py21
2 files changed, 21 insertions, 2 deletions
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