about summary refs log tree commit diff
path: root/sysdeps/libm-i387/s_cexp.S
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/libm-i387/s_cexp.S')
-rw-r--r--sysdeps/libm-i387/s_cexp.S3
1 files changed, 2 insertions, 1 deletions
diff --git a/sysdeps/libm-i387/s_cexp.S b/sysdeps/libm-i387/s_cexp.S
index 5630d3cb65..61158d9540 100644
--- a/sysdeps/libm-i387/s_cexp.S
+++ b/sysdeps/libm-i387/s_cexp.S
@@ -237,8 +237,9 @@ ENTRY(__cexp)
 
 	fldl	MOX(huge_nan_null_null,%edx,1)
 	fldl	MOX(huge_nan_null_null+8,%edx,1)
-	fstpl	8(%eax)
+	fxch
 	fstpl	(%eax)
+	fstpl	8(%eax)
 	ret	$4
 
 	/* The real part is NaN.  */