* [PATCH kvm-unit-tests 0/2] test MOVAPS and MOVAPD SSE instructions
@ 2014-03-15 20:03 Igor Mammedov
2014-03-15 20:03 ` [PATCH kvm-unit-tests 1/2] emulator: movaps Igor Mammedov
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Igor Mammedov @ 2014-03-15 20:03 UTC (permalink / raw)
To: linux-kernel; +Cc: gleb, pbonzini, tglx, mingo, hpa, x86, kvm
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(+)
--
1.8.5.3
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH kvm-unit-tests 1/2] emulator: movaps
2014-03-15 20:03 [PATCH kvm-unit-tests 0/2] test MOVAPS and MOVAPD SSE instructions Igor Mammedov
@ 2014-03-15 20:03 ` Igor Mammedov
2014-03-15 20:03 ` [PATCH kvm-unit-tests 2/2] emulator: movapd Igor Mammedov
2014-03-17 11:18 ` [PATCH kvm-unit-tests 0/2] test MOVAPS and MOVAPD SSE instructions Paolo Bonzini
2 siblings, 0 replies; 4+ messages in thread
From: Igor Mammedov @ 2014-03-15 20:03 UTC (permalink / raw)
To: linux-kernel; +Cc: gleb, pbonzini, tglx, mingo, hpa, x86, kvm
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
---
x86/emulator.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/x86/emulator.c b/x86/emulator.c
index 2e25dd8..1296a99 100644
--- a/x86/emulator.c
+++ b/x86/emulator.c
@@ -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)
--
1.8.5.3
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH kvm-unit-tests 2/2] emulator: movapd
2014-03-15 20:03 [PATCH kvm-unit-tests 0/2] test MOVAPS and MOVAPD SSE instructions Igor Mammedov
2014-03-15 20:03 ` [PATCH kvm-unit-tests 1/2] emulator: movaps Igor Mammedov
@ 2014-03-15 20:03 ` Igor Mammedov
2014-03-17 11:18 ` [PATCH kvm-unit-tests 0/2] test MOVAPS and MOVAPD SSE instructions Paolo Bonzini
2 siblings, 0 replies; 4+ messages in thread
From: Igor Mammedov @ 2014-03-15 20:03 UTC (permalink / raw)
To: linux-kernel; +Cc: gleb, pbonzini, tglx, mingo, hpa, x86, kvm
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
---
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
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH kvm-unit-tests 0/2] test MOVAPS and MOVAPD SSE instructions
2014-03-15 20:03 [PATCH kvm-unit-tests 0/2] test MOVAPS and MOVAPD SSE instructions Igor Mammedov
2014-03-15 20:03 ` [PATCH kvm-unit-tests 1/2] emulator: movaps Igor Mammedov
2014-03-15 20:03 ` [PATCH kvm-unit-tests 2/2] emulator: movapd Igor Mammedov
@ 2014-03-17 11:18 ` Paolo Bonzini
2 siblings, 0 replies; 4+ messages in thread
From: Paolo Bonzini @ 2014-03-17 11:18 UTC (permalink / raw)
To: Igor Mammedov, linux-kernel; +Cc: gleb, tglx, mingo, hpa, x86, kvm
Il 15/03/2014 21:03, Igor Mammedov ha scritto:
> 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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-03-17 11:18 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-15 20:03 [PATCH kvm-unit-tests 0/2] test MOVAPS and MOVAPD SSE instructions Igor Mammedov
2014-03-15 20:03 ` [PATCH kvm-unit-tests 1/2] emulator: movaps Igor Mammedov
2014-03-15 20:03 ` [PATCH kvm-unit-tests 2/2] emulator: movapd Igor Mammedov
2014-03-17 11:18 ` [PATCH kvm-unit-tests 0/2] test MOVAPS and MOVAPD SSE instructions Paolo Bonzini
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.