From: Julian Seward Date: Mon, 6 Sep 2004 23:17:37 +0000 (+0000) Subject: Do further conversions in the test. X-Git-Tag: svn/VALGRIND_3_0_1^2~1104 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fcc66db3567cf5bc6036192e53f3b47e504cab09;p=thirdparty%2Fvalgrind.git Do further conversions in the test. git-svn-id: svn://svn.valgrind.org/vex/trunk@230 --- diff --git a/VEX/useful/x87_to_vex_and_back.c b/VEX/useful/x87_to_vex_and_back.c index 937b29532f..ed5de3dcd2 100644 --- a/VEX/useful/x87_to_vex_and_back.c +++ b/VEX/useful/x87_to_vex_and_back.c @@ -134,8 +134,17 @@ void capture_convert_show ( /* preallocated storage */ printf("\n\n"); printVexState(vex_state); printf("\n\n"); +#if 0 + asm volatile("frstor (%0) ; fsave (%0)" + : + : "r" (x87_state1) + : "memory" ); +#endif printFpuState(x87_state1); printf("\n\n"); + x87_to_vex(x87_state1, vex_state); + printVexState(vex_state); + printf("\n\n"); } int main ( void ) @@ -148,6 +157,7 @@ int main ( void ) asm volatile ("fldpi"); capture_convert_show(x87_state0, x87_state1, vex_state); asm volatile ("fldz ; fld1 ; fdiv %st(1)"); + asm volatile ("fldln2 ; fldlg2 ; fchs ; fsqrt"); capture_convert_show(x87_state0, x87_state1, vex_state); return 1; }