Skip to contentSkip to conversation

test MOVAPS and MOVAPD SSE instructions

PATCH Applied Igor Mammedov 2 participants 4 messages Mar 15, 2014 – Mar 17, 2014 KVM

lore
Share & tools
lore
#0 lore raw

cover test MOVAPS and MOVAPD SSE instructions

This series adds checks for MOVAPS and MOVAPD SSE instructions. It's used by MS HCK test on 32-bit Windows 8.1

Igor Mammedov (2):
emulator: movaps
emulator: movapd

 x86/emulator.c | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
Signature · 1 line
1.8.5.3
#1 lore raw

PATCH 1/2 emulator: movaps

---
 x86/emulator.c | 7 +++++++
 1 file changed, 7 insertions(+)
x86/emulator.c +7 -0
index 2e25dd8..1296a99 100644
@@ -645,6 +645,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("movdqu %1, %0" : "=x"(v.sse) : "m"(*mem));
     report("movdqu (write)", sseeq(mem, &v));
+
+    v.u[0] = 1; v.u[1] = 2; v.u[2] = 3; v.u[3] = 4;
+    asm("movaps %1, %0" : "=m"(*mem) : "x"(v.sse));
+    report("movaps (read)", sseeq(mem, &v));
+    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));
 }
 
 static void test_mmx(uint64_t *mem)
Signature · 1 line
1.8.5.3
#2 lore raw

PATCH 2/2 emulator: movapd

In reply to Igor Mammedov
---
 x86/emulator.c | 7 +++++++
 1 file changed, 7 insertions(+)
x86/emulator.c +7 -0
index 1296a99..388db99 100644
@@ -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)
Signature · 1 line
1.8.5.3
maintainer Applied
#3 lore raw
In reply to Igor Mammedov

Il 15/03/2014 21:03, Igor Mammedov ha scritto:

Quoted 10 lines

This series adds checks for MOVAPS and MOVAPD SSE instructions. It's used by MS HCK test on 32-bit Windows 8.1

Igor Mammedov (2):
emulator: movaps
emulator: movapd

 x86/emulator.c | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

Applied both, thanks.

Paolo