Clean up the FP stack before returning. The i387 exp() leaked an FP

register on its first call.  Subsequent calls reused the register so
the leak didn't accumulate.  Fixes PR 1275.
This commit is contained in:
Bruce Evans 1996-06-01 18:00:07 +00:00
parent b68933975f
commit f05bebb3ad

View file

@ -35,7 +35,7 @@
#include <machine/asmacros.h>
RCSID("$Id: e_exp.S,v 1.1.1.1 1994/08/19 09:40:00 jkh Exp $")
RCSID("$Id: e_exp.S,v 1.2 1994/08/19 11:14:14 jkh Exp $")
/* e^x = 2^(x * log2(e)) */
ENTRY(__ieee754_exp)
@ -50,4 +50,5 @@ ENTRY(__ieee754_exp)
fld1
faddp /* 2^(fract(x * log2(e))) */
fscale /* e^x */
fstpl %st(1)
ret