From: Fabrice Bellard <fabrice@bellard.org>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] qemu/tests test-i386.c
Date: Mon, 19 Jun 2006 22:42:57 +0000 [thread overview]
Message-ID: <E1FsSSP-000612-Im@savannah.gnu.org> (raw)
CVSROOT: /sources/qemu
Module name: qemu
Changes by: Fabrice Bellard <bellard> 06/06/19 22:42:57
Modified files:
tests : test-i386.c
Log message:
fxam test
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemu/tests/test-i386.c?cvsroot=qemu&r1=1.49&r2=1.50
Patches:
Index: test-i386.c
===================================================================
RCS file: /sources/qemu/qemu/tests/test-i386.c,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -b -r1.49 -r1.50
--- test-i386.c 23 Apr 2005 17:54:59 -0000 1.49
+++ test-i386.c 19 Jun 2006 22:42:57 -0000 1.50
@@ -789,6 +789,12 @@
a, b, fpus & FPUS_EMASK, eflags & (CC_Z | CC_P | CC_C));
}
fpu_clear_exceptions();
+ asm volatile("fxam\n"
+ "fstsw %%ax\n"
+ : "=a" (fpus)
+ : "t" (a));
+ printf("fxam(%f)=%04lx\n", a, fpus & 0x4700);
+ fpu_clear_exceptions();
}
void test_fcvt(double a)
@@ -958,12 +964,17 @@
test_fcmp(2, 3);
test_fcmp(2, q_nan.d);
test_fcmp(q_nan.d, -1);
+ test_fcmp(-1.0/0.0, -1);
+ test_fcmp(1.0/0.0, -1);
test_fcvt(0.5);
test_fcvt(-0.5);
test_fcvt(1.0/7.0);
test_fcvt(-1.0/9.0);
test_fcvt(32768);
test_fcvt(-1e20);
+ test_fcvt(-1.0/0.0);
+ test_fcvt(1.0/0.0);
+ test_fcvt(q_nan.d);
test_fconst();
test_fbcd(1234567890123456);
test_fbcd(-123451234567890);
next reply other threads:[~2006-06-19 22:43 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-19 22:42 Fabrice Bellard [this message]
-- strict thread matches above, loose matches on Subject: below --
2008-01-31 14:56 [Qemu-devel] qemu/tests test-i386.c Fabrice Bellard
2007-11-11 14:43 Fabrice Bellard
2007-02-05 20:52 Fabrice Bellard
2006-06-24 14:01 Fabrice Bellard
2005-03-20 10:40 Fabrice Bellard
2005-03-03 1:13 Fabrice Bellard
2005-01-23 20:48 Fabrice Bellard
2005-01-16 1:09 Fabrice Bellard
2005-01-03 23:37 Fabrice Bellard
2003-12-02 21:55 Fabrice Bellard
2003-11-19 22:12 Fabrice Bellard
2003-11-16 20:18 Fabrice Bellard
2003-10-27 23:55 Fabrice Bellard
2003-09-17 22:49 Fabrice Bellard
2003-07-26 18:00 Fabrice Bellard
2003-07-13 17:27 Fabrice Bellard
2003-07-11 14:49 Fabrice Bellard
2003-06-25 16:21 Fabrice Bellard
2003-06-15 19:36 Fabrice Bellard
2003-05-29 20:06 Fabrice Bellard
2003-05-27 23:23 Fabrice Bellard
2003-05-25 16:47 Fabrice Bellard
2003-05-10 21:39 Fabrice Bellard
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=E1FsSSP-000612-Im@savannah.gnu.org \
--to=fabrice@bellard.org \
--cc=qemu-devel@nongnu.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 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).