Module Name: src Committed By: joerg Date: Sat Jun 18 20:49:26 UTC 2011
Modified Files: src/lib/libm/arch/i387: s_copysign.S s_copysignf.S Log Message: Switch to SSE code, since our gas supports it now. To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/lib/libm/arch/i387/s_copysign.S cvs rdiff -u -r1.5 -r1.6 src/lib/libm/arch/i387/s_copysignf.S Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/libm/arch/i387/s_copysign.S diff -u src/lib/libm/arch/i387/s_copysign.S:1.6 src/lib/libm/arch/i387/s_copysign.S:1.7 --- src/lib/libm/arch/i387/s_copysign.S:1.6 Sat Jul 26 19:25:01 2003 +++ src/lib/libm/arch/i387/s_copysign.S Sat Jun 18 20:49:26 2011 @@ -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 Index: src/lib/libm/arch/i387/s_copysignf.S diff -u src/lib/libm/arch/i387/s_copysignf.S:1.5 src/lib/libm/arch/i387/s_copysignf.S:1.6 --- src/lib/libm/arch/i387/s_copysignf.S:1.5 Sat Jul 26 19:25:01 2003 +++ src/lib/libm/arch/i387/s_copysignf.S Sat Jun 18 20:49:26 2011 @@ -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