]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Remove incorrect register mov in floorf/nearbyint on x86_64
authorSiddhesh Poyarekar <siddhesh@redhat.com>
Fri, 14 Aug 2015 12:30:17 +0000 (05:30 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 14 Aug 2015 12:30:17 +0000 (05:30 -0700)
The change in 0b5395f052ee09cd7e3d219af4e805c38058afb5 replaced calls
to __get_cpu_features@plt followed by a mov from rax to rdx, with a
single macro LOAD_RTLD_GLOBAL_RO_RDX.  It is pretty clear that there
was a typo in s_floorf and __nearbyint due to which the (now incorrect)
mov was not removed.  This patch removes that mov.

* sysdeps/x86_64/fpu/multiarch/s_floorf.S (__floorf): Remove
unnecessary movq.
* sysdeps/x86_64/fpu/multiarch/s_nearbyint.S (__nearbyint):
Likewise.

ChangeLog
sysdeps/x86_64/fpu/multiarch/s_floorf.S
sysdeps/x86_64/fpu/multiarch/s_nearbyint.S

index b9ff0dd58af941d912ff20898b02ccf293301632..f33a11a757fd0f6f3dabfdcc1a3e50ac43d2b3b0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2015-08-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
+
+       * sysdeps/x86_64/fpu/multiarch/s_floorf.S (__floorf): Remove
+       unnecessary movq.
+       * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S (__nearbyint):
+       Likewise.
+
 2015-08-13  Joseph Myers  <joseph@codesourcery.com>
 
        * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
index f60f662e0391483fc9a2420de0b4749bb289bf85..9d67847d07d6039d672558c41d33d2545ef97e1c 100644 (file)
@@ -23,7 +23,6 @@
 ENTRY(__floorf)
        .type   __floorf, @gnu_indirect_function
        LOAD_RTLD_GLOBAL_RO_RDX
-       movq    %rax, %rdx
        leaq    __floorf_sse41(%rip), %rax
        HAS_CPU_FEATURE (SSE4_1)
        jnz     2f
index 109395ca3711db7d2d80f26e98115dcf26f17c57..2c13024e8b35dc5c9632d852da24a383c6f7afdb 100644 (file)
@@ -23,7 +23,6 @@
 ENTRY(__nearbyint)
        .type   __nearbyint, @gnu_indirect_function
        LOAD_RTLD_GLOBAL_RO_RDX
-       movq    %rax, %rdx
        leaq    __nearbyint_sse41(%rip), %rax
        HAS_CPU_FEATURE (SSE4_1)
        jnz     2f