summary refs log tree commit diff
path: root/sysdeps/libm-i387/s_cos.S
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/libm-i387/s_cos.S')
-rw-r--r--sysdeps/libm-i387/s_cos.S6
1 files changed, 3 insertions, 3 deletions
diff --git a/sysdeps/libm-i387/s_cos.S b/sysdeps/libm-i387/s_cos.S
index 6b47e80d2e..f75e98060b 100644
--- a/sysdeps/libm-i387/s_cos.S
+++ b/sysdeps/libm-i387/s_cos.S
@@ -11,7 +11,7 @@ ENTRY(__cos)
 	fldl	4(%esp)
 	fcos
 	fnstsw	%ax
-	andw	$0x400,%ax
+	testl	$0x400,%eax
 	jnz	1f
 	ret
 1:	fldpi
@@ -19,10 +19,10 @@ ENTRY(__cos)
 	fxch	%st(1)
 2:	fprem1
 	fnstsw	%ax
-	andw	$0x400,%ax
+	testl	$0x400,%eax
 	jnz	2b
 	fstp	%st(1)
 	fcos
 	ret
-PSEUDO_END (__cos)
+END (__cos)
 weak_alias (__cos, cos)