summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/arch/x86/isa/decoder/two_byte_opcodes.isa4
-rw-r--r--src/arch/x86/isa/insts/simd128/integer/data_reordering/unpack_and_interleave.py19
-rw-r--r--src/arch/x86/isa/insts/simd64/integer/data_reordering/unpack_and_interleave.py16
3 files changed, 35 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 6b24b3826..763b661ca 100644
--- a/src/arch/x86/isa/decoder/two_byte_opcodes.isa
+++ b/src/arch/x86/isa/decoder/two_byte_opcodes.isa
@@ -552,7 +552,7 @@
// no prefix
0x0: decode OPCODE_OP_BOTTOM3 {
0x0: Inst::PUNPCKLBW(Pq,Qd);
- 0x1: punpcklwd_Pq_Qd();
+ 0x1: Inst::PUNPCKLWD(Pq,Qd);
0x2: punpckldq_Pq_Qd();
0x3: packsswb_Pq_Qq();
0x4: pcmpgtb_Pq_Qq();
@@ -563,7 +563,7 @@
// operand size (0x66)
0x1: decode OPCODE_OP_BOTTOM3 {
0x0: Inst::PUNPCKLBW(Vo,Wq);
- 0x1: punpcklwd_Vo_Wq();
+ 0x1: Inst::PUNPCKLWD(Vo,Wq);
0x2: punpckldq_Vo_Wq();
0x3: packsswb_Vo_Wo();
0x4: pcmpgtb_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 96419b1ad..0bf063ede 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
@@ -71,11 +71,28 @@ def macroop PUNPCKLBW_XMM_P {
unpack xmmh, xmml, ufp1, sel=1, size=1
unpack xmml, xmml, ufp1, sel=0, size=1
};
+
+def macroop PUNPCKLWD_XMM_XMM {
+ unpack xmmh, xmml, xmmlm, sel=1, size=2
+ unpack xmml, xmml, xmmlm, sel=0, size=2
+};
+
+def macroop PUNPCKLWD_XMM_M {
+ ldfp ufp1, seg, sib, disp, dataSize=8
+ unpack xmmh, xmml, ufp1, sel=1, size=2
+ unpack xmml, xmml, ufp1, sel=0, size=2
+};
+
+def macroop PUNPCKLWD_XMM_P {
+ rdip t7
+ ldfp ufp1, seg, riprel, disp, dataSize=8
+ unpack xmmh, xmml, ufp1, sel=1, size=2
+ unpack xmml, xmml, ufp1, sel=0, size=2
+};
'''
# PUNPCKHBW
# PUNPCKHWD
# PUNPCKHDQ
# PUNPCKHQDQ
-# PUNPCKLWD
# PUNPCKLDQ
# 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 8f3c35749..196706c9b 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
@@ -68,9 +68,23 @@ def macroop PUNPCKLBW_MMX_P {
ldfp ufp1, seg, riprel, disp, dataSize=8
unpack mmx, mmx, ufp1, sel=0, size=1
};
+
+def macroop PUNPCKLWD_MMX_MMX {
+ unpack mmx, mmx, mmxm, sel=0, size=2
+};
+
+def macroop PUNPCKLWD_MMX_M {
+ ldfp ufp1, seg, sib, disp, dataSize=8
+ unpack mmx, mmx, ufp1, sel=0, size=2
+};
+
+def macroop PUNPCKLWD_MMX_P {
+ rdip t7
+ ldfp ufp1, seg, riprel, disp, dataSize=8
+ unpack mmx, mmx, ufp1, sel=0, size=2
+};
'''
# PUNPCKHBW
# PUNPCKHWD
# PUNPCKHDQ
-# PUNPCKLWD
# PUNPCKLDQ