Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libm/arch/i387 Switch to SSE code, since our gas support...
details: https://anonhg.NetBSD.org/src/rev/2cb77c30981d
branches: trunk
changeset: 766206:2cb77c30981d
user: joerg <joerg%NetBSD.org@localhost>
date: Sat Jun 18 20:49:26 2011 +0000
description:
Switch to SSE code, since our gas supports it now.
diffstat:
lib/libm/arch/i387/s_copysign.S | 17 +----------------
lib/libm/arch/i387/s_copysignf.S | 14 +-------------
2 files changed, 2 insertions(+), 29 deletions(-)
diffs (74 lines):
diff -r fe2e8623f081 -r 2cb77c30981d lib/libm/arch/i387/s_copysign.S
--- a/lib/libm/arch/i387/s_copysign.S Sat Jun 18 20:35:05 2011 +0000
+++ b/lib/libm/arch/i387/s_copysign.S Sat Jun 18 20:49:26 2011 +0000
@@ -9,7 +9,7 @@
#include <machine/asm.h>
-RCSID("$NetBSD: s_copysign.S,v 1.6 2003/07/26 19:25:01 salo Exp $")
+RCSID("$NetBSD: s_copysign.S,v 1.7 2011/06/18 20:49:26 joerg Exp $")
#ifdef __x86_64__
.Lpos:
@@ -29,25 +29,10 @@
movl %eax,8(%esp)
fldl 4(%esp)
#else
-#if 0
- /*
- * XXXfvdl gas doesn't grok this yet.
- */
movq .Lpos(%rip),%xmm2
movq .Lneg(%rip),%xmm3
pand %xmm2,%xmm1
pand %xmm3,%xmm0
por %xmm1,%xmm0
-#else
- movsd %xmm0,-8(%rsp)
- movsd %xmm1,-16(%rsp)
- movl -12(%rsp),%edx
- andl $0x80000000,%edx
- movl -4(%rsp),%eax
- andl $0x7fffffff,%eax
- orl %edx,%eax
- movl %eax,-4(%rsp)
- movsd -8(%rsp),%xmm0
-#endif
#endif
ret
diff -r fe2e8623f081 -r 2cb77c30981d lib/libm/arch/i387/s_copysignf.S
--- a/lib/libm/arch/i387/s_copysignf.S Sat Jun 18 20:35:05 2011 +0000
+++ b/lib/libm/arch/i387/s_copysignf.S Sat Jun 18 20:49:26 2011 +0000
@@ -9,7 +9,7 @@
* XXXfvdl split this file.
*/
-RCSID("$NetBSD: s_copysignf.S,v 1.5 2003/07/26 19:25:01 salo Exp $")
+RCSID("$NetBSD: s_copysignf.S,v 1.6 2011/06/18 20:49:26 joerg Exp $")
#ifdef __x86_64__
.Lneg:
@@ -28,17 +28,6 @@
movl %eax,4(%esp)
flds 4(%esp)
#else
-#if 0
- /*
- * XXXfvdl gas doesn't grok this.
- * but it's legal according to the p4 manual.
- */
- movss .Lpos(%rip),%xmm2
- movss .Lneg(%rip),%xmm3
- pandq %xmm2,%xmm1
- pandq %xmm3,%xmm0
- porq %xmm1,%xmm0
-#else
movss %xmm0,-4(%rsp)
movss %xmm1,-8(%rsp)
movl -8(%rsp),%edx
@@ -49,5 +38,4 @@
movl %eax,-4(%rsp)
movss -4(%rsp),%xmm0
#endif
-#endif
ret
Home |
Main Index |
Thread Index |
Old Index