ce426f
commit 37dd6a19ca36b84cdef7e51dffcb68a2cbf54a6a
ce426f
Author: Siddhesh Poyarekar <siddhesh@redhat.com>
ce426f
Date:   Fri Aug 14 05:30:17 2015 -0700
ce426f
ce426f
    Remove incorrect register mov in floorf/nearbyint on x86_64
ce426f
    
ce426f
    The change in 0b5395f052ee09cd7e3d219af4e805c38058afb5 replaced calls
ce426f
    to __get_cpu_features@plt followed by a mov from rax to rdx, with a
ce426f
    single macro LOAD_RTLD_GLOBAL_RO_RDX.  It is pretty clear that there
ce426f
    was a typo in s_floorf and __nearbyint due to which the (now incorrect)
ce426f
    mov was not removed.  This patch removes that mov.
ce426f
    
ce426f
        * sysdeps/x86_64/fpu/multiarch/s_floorf.S (__floorf): Remove
ce426f
        unnecessary movq.
ce426f
        * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S (__nearbyint):
ce426f
        Likewise.
ce426f
ce426f
diff --git a/sysdeps/x86_64/fpu/multiarch/s_floorf.S b/sysdeps/x86_64/fpu/multiarch/s_floorf.S
ce426f
index f60f662..9d67847 100644
ce426f
--- a/sysdeps/x86_64/fpu/multiarch/s_floorf.S
ce426f
+++ b/sysdeps/x86_64/fpu/multiarch/s_floorf.S
ce426f
@@ -23,7 +23,6 @@
ce426f
 ENTRY(__floorf)
ce426f
 	.type	__floorf, @gnu_indirect_function
ce426f
 	LOAD_RTLD_GLOBAL_RO_RDX
ce426f
-	movq	%rax, %rdx
ce426f
 	leaq	__floorf_sse41(%rip), %rax
ce426f
 	HAS_CPU_FEATURE (SSE4_1)
ce426f
 	jnz	2f
ce426f
diff --git a/sysdeps/x86_64/fpu/multiarch/s_nearbyint.S b/sysdeps/x86_64/fpu/multiarch/s_nearbyint.S
ce426f
index 109395c..2c13024 100644
ce426f
--- a/sysdeps/x86_64/fpu/multiarch/s_nearbyint.S
ce426f
+++ b/sysdeps/x86_64/fpu/multiarch/s_nearbyint.S
ce426f
@@ -23,7 +23,6 @@
ce426f
 ENTRY(__nearbyint)
ce426f
 	.type	__nearbyint, @gnu_indirect_function
ce426f
 	LOAD_RTLD_GLOBAL_RO_RDX
ce426f
-	movq	%rax, %rdx
ce426f
 	leaq	__nearbyint_sse41(%rip), %rax
ce426f
 	HAS_CPU_FEATURE (SSE4_1)
ce426f
 	jnz	2f