From: Gleb Natapov <gleb@redhat.com>
To: kvm@vger.kernel.org
Cc: mtosatti@redhat.com
Subject: [PATCH unit-test] test aad instruction
Date: Mon, 10 Dec 2012 11:44:35 +0200 [thread overview]
Message-ID: <20121210094435.GJ19514@redhat.com> (raw)
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.
next reply other threads:[~2012-12-10 9:44 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-10 9:44 Gleb Natapov [this message]
2012-12-14 0:28 ` [PATCH unit-test] test aad instruction Marcelo Tosatti
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=20121210094435.GJ19514@redhat.com \
--to=gleb@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=mtosatti@redhat.com \
/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 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).