* [PATCH unit-test] test aad instruction
@ 2012-12-10 9:44 Gleb Natapov
2012-12-14 0:28 ` Marcelo Tosatti
0 siblings, 1 reply; 2+ messages in thread
From: Gleb Natapov @ 2012-12-10 9:44 UTC (permalink / raw)
To: kvm; +Cc: mtosatti
Add test for aad instruction emulation.
Signed-off-by: Gleb Natapov <gleb@redhat.com>
diff --git a/x86/realmode.c b/x86/realmode.c
index 82a66b3..549b36a 100644
--- a/x86/realmode.c
+++ b/x86/realmode.c
@@ -1375,6 +1375,15 @@ static void test_bswap(void)
report("bswap", R_CX, outregs.ecx == 0x78563412);
}
+static void test_aad(void)
+{
+ MK_INSN(aad, "aad");
+
+ inregs.eax = 0x12345678;
+ exec_in_big_real_mode(&insn_aad);
+ report("aad", R_AX, outregs.eax == 0x123400d4);
+}
+
void realmode_start(void)
{
test_null();
@@ -1414,6 +1423,7 @@ void realmode_start(void)
test_lahf();
test_movzx_movsx();
test_bswap();
+ test_aad();
exit(0);
}
--
Gleb.
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH unit-test] test aad instruction
2012-12-10 9:44 [PATCH unit-test] test aad instruction Gleb Natapov
@ 2012-12-14 0:28 ` Marcelo Tosatti
0 siblings, 0 replies; 2+ messages in thread
From: Marcelo Tosatti @ 2012-12-14 0:28 UTC (permalink / raw)
To: Gleb Natapov; +Cc: kvm
On Mon, Dec 10, 2012 at 11:44:35AM +0200, Gleb Natapov wrote:
> Add test for aad instruction emulation.
>
> Signed-off-by: Gleb Natapov <gleb@redhat.com>
Applied, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-12-14 14:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-10 9:44 [PATCH unit-test] test aad instruction Gleb Natapov
2012-12-14 0:28 ` Marcelo Tosatti
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).