From: Igor Mammedov <imammedo@redhat.com>
To: linux-kernel@vger.kernel.org
Cc: gleb@kernel.org, pbonzini@redhat.com, tglx@linutronix.de,
mingo@redhat.com, hpa@zytor.com, x86@kernel.org,
kvm@vger.kernel.org
Subject: [PATCH kvm-unit-tests 2/2] emulator: movapd
Date: Sat, 15 Mar 2014 21:03:38 +0100 [thread overview]
Message-ID: <1394913818-6616-3-git-send-email-imammedo@redhat.com> (raw)
In-Reply-To: <1394913818-6616-1-git-send-email-imammedo@redhat.com>
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
next prev parent reply other threads:[~2014-03-15 20:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2014-03-17 11:18 ` [PATCH kvm-unit-tests 0/2] test MOVAPS and MOVAPD SSE instructions Paolo Bonzini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1394913818-6616-3-git-send-email-imammedo@redhat.com \
--to=imammedo@redhat.com \
--cc=gleb@kernel.org \
--cc=hpa@zytor.com \
--cc=kvm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=pbonzini@redhat.com \
--cc=tglx@linutronix.de \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.