@@ -343,30 +343,6 @@ print_complex_function_ulps (const char *function_name, FLOAT real_ulp,
343343#endif
344344
345345
346-
347- /* Test if Floating-Point stack hasn't changed */
348- static void
349- fpstack_test (const char * test_name )
350- {
351- #ifdef i386
352- static int old_stack ;
353- int sw ;
354-
355- asm ("fnstsw" : "=a" (sw ));
356- sw >>= 11 ;
357- sw &= 7 ;
358-
359- if (sw != old_stack )
360- {
361- printf ("FP-Stack wrong after test %s (%d, should be %d)\n" ,
362- test_name , sw , old_stack );
363- ++ noErrors ;
364- old_stack = sw ;
365- }
366- #endif
367- }
368-
369-
370346static void
371347print_max_error (const char * func_name , FLOAT allowed , int xfail )
372348{
@@ -564,8 +540,6 @@ check_float_internal (const char *test_name, FLOAT computed, FLOAT expected,
564540 }
565541 }
566542 update_stats (ok , xfail );
567-
568- fpstack_test (test_name );
569543}
570544
571545
@@ -638,7 +612,6 @@ check_int (const char *test_name, int computed, int expected, int max_ulp,
638612 }
639613
640614 update_stats (ok , xfail );
641- fpstack_test (test_name );
642615}
643616
644617
@@ -669,7 +642,6 @@ check_long (const char *test_name, long int computed, long int expected,
669642 }
670643
671644 update_stats (ok , xfail );
672- fpstack_test (test_name );
673645}
674646
675647
@@ -696,7 +668,6 @@ check_bool (const char *test_name, int computed, int expected,
696668 }
697669
698670 update_stats (ok , xfail );
699- fpstack_test (test_name );
700671}
701672
702673
@@ -729,7 +700,6 @@ check_longlong (const char *test_name, long long int computed,
729700 }
730701
731702 update_stats (ok , xfail );
732- fpstack_test (test_name );
733703}
734704
735705
@@ -4265,7 +4235,6 @@ yn_test (void)
42654235static void
42664236initialize (void )
42674237{
4268- fpstack_test ("start *init*" );
42694238 plus_zero = 0.0 ;
42704239 nan_value = plus_zero / plus_zero ; /* Suppress GCC warning */
42714240
@@ -4283,9 +4252,6 @@ initialize (void)
42834252
42844253 /* Clear all exceptions. From now on we must not get random exceptions. */
42854254 feclearexcept (FE_ALL_EXCEPT );
4286-
4287- /* Test to make sure we start correctly. */
4288- fpstack_test ("end *init*" );
42894255}
42904256
42914257#if 0 /* XXX scp XXX */
0 commit comments