arch-x86: Adding LDDQU instruction
authormarjanfariborz <mfariborz@ucdavis.edu>
Mon, 2 Dec 2019 23:03:02 +0000 (15:03 -0800)
committerHoa Nguyen <hoanguyen@ucdavis.edu>
Thu, 5 Dec 2019 00:56:55 +0000 (00:56 +0000)
Tested with simple c binaries.

Signed-off-by: marjanfariborz <mfariborz@ucdavis.edu>
Change-Id: I2f0852b136f966381d29af523e8ffdbca795afcd
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/23262
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Jason Lowe-Power <jason@lowepower.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/arch/x86/isa/decoder/two_byte_opcodes.isa
src/arch/x86/isa/insts/simd128/integer/data_transfer/move.py

index 1e0924382cbcffbf0faccc9108078ab51796e760..51154d5b8495a1a59c57ccfeaa9af0d1c04b9f31 100644 (file)
                 }
                 // repne (0xF2)
                 0x8: decode OPCODE_OP_BOTTOM3 {
-                    0x0: WarnUnimpl::lddqu_Vo_Mo();
+                    0x0: LDDQU(Vo,Mq);
                     default: UD2();
                 }
                 default: UD2();
index 301aeaebd2914c7646eee374425fbb4f20e7ffba..8d147b922dbfc3cbd8d8417c521b46c0947b3f39 100644 (file)
@@ -123,5 +123,15 @@ def macroop MOVDQU_P_XMM {
     stfp xmml, seg, riprel, "DISPLACEMENT", dataSize=8
     stfp xmmh, seg, riprel, "DISPLACEMENT + 8", dataSize=8
 };
+
+def macroop LDDQU_XMM_M {
+    ldfp xmml, seg, sib, "DISPLACEMENT", dataSize=8
+    ldfp xmmh, seg, sib, "DISPLACEMENT + 8", dataSize=8
+};
+
+def macroop LDDQU_XMM_P {
+    rdip t7
+    ldfp xmml, seg, sib, "DISPLACEMENT", dataSize=8
+    ldfp xmmh, seg, sib, "DISPLACEMENT + 8", dataSize=8
+};
 '''
-# LDDQU