mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-23 19:49:43 +00:00
ffree test
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@920 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
658c8bdadc
commit
665656a99b
@ -688,6 +688,14 @@ void test_fenv(void)
|
||||
TEST_ENV(&float_env16, "data16 fnsave", "data16 frstor");
|
||||
TEST_ENV(&float_env32, "fnstenv", "fldenv");
|
||||
TEST_ENV(&float_env32, "fnsave", "frstor");
|
||||
|
||||
/* test for ffree */
|
||||
for(i=0;i<5;i++)
|
||||
asm volatile ("fldl %0" : : "m" (dtab[i]));
|
||||
asm volatile("ffree %st(2)");
|
||||
asm volatile ("fnstenv %0\n" : : "m" (float_env32));
|
||||
asm volatile ("fninit");
|
||||
printf("fptag=%04x\n", float_env32.fptag);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user