[PATCH kvm-unit-tests 2/2] emulator: movapd

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Igor Mammedov <imammedo@xxxxxxxxxx>
---
 x86/emulator.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/x86/emulator.c b/x86/emulator.c
index 1296a99..388db99 100644
--- a/x86/emulator.c
+++ b/x86/emulator.c
@@ -652,6 +652,13 @@ static void test_sse(sse_union *mem)
     mem->u[0] = 5; mem->u[1] = 6; mem->u[2] = 7; mem->u[3] = 8;
     asm("movaps %1, %0" : "=x"(v.sse) : "m"(*mem));
     report("movaps (write)", sseeq(&v, mem));
+
+    v.u[0] = 1; v.u[1] = 2; v.u[2] = 3; v.u[3] = 4;
+    asm("movapd %1, %0" : "=m"(*mem) : "x"(v.sse));
+    report("movapd (read)", sseeq(mem, &v));
+    mem->u[0] = 5; mem->u[1] = 6; mem->u[2] = 7; mem->u[3] = 8;
+    asm("movapd %1, %0" : "=x"(v.sse) : "m"(*mem));
+    report("movapd (write)", sseeq(&v, mem));
 }
 
 static void test_mmx(uint64_t *mem)
-- 
1.8.5.3

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux