]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
PowerPC floating point little-endian [14 of 15]
authorAnton Blanchard <anton@au1.ibm.com>
Sat, 17 Aug 2013 09:03:02 +0000 (18:33 +0930)
committerAlan Modra <amodra@gmail.com>
Fri, 4 Oct 2013 01:06:24 +0000 (10:36 +0930)
http://sourceware.org/ml/libc-alpha/2013-07/msg00205.html

These all wrongly specified float constants in a 64-bit word.

* sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Correct float constants
for little-endian.
* sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
* sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
* sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
* sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
* sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.

ChangeLog
sysdeps/powerpc/powerpc64/fpu/s_ceilf.S
sysdeps/powerpc/powerpc64/fpu/s_floorf.S
sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S
sysdeps/powerpc/powerpc64/fpu/s_rintf.S
sysdeps/powerpc/powerpc64/fpu/s_roundf.S
sysdeps/powerpc/powerpc64/fpu/s_truncf.S

index 45b4f7664bd2ce83f7ac5715c6cfcd5d2ba92cde..f84a9e4acd2dd12f7afab5e102ceb0e47207446a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2013-10-04  Anton Blanchard <anton@au1.ibm.com>
+
+       * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Correct float constants
+       for little-endian.
+       * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
+       * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
+       * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
+       * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
+       * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
+
 2013-10-04  Alan Modra  <amodra@gmail.com>
 
        * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Increase alignment of
index 801af5d0aaca766bf221437d38be1514da5eb74f..45f71d7ac575c5a587077fcc360f6b684aa347cd 100644 (file)
 #include <sysdep.h>
 
        .section        ".toc","aw"
+       .p2align 3
 .LC0:  /* 2**23 */
-       .tc FD_4b000000_0[TC],0x4b00000000000000
+       .long 0x4b000000
+       .long 0x0
        .section        ".text"
 
 EALIGN (__ceilf, 4, 0)
index a0a22e7eb96b3bd6d85308c9e5d0abb6907bd19e..e85b820b212777958aba1f6c851e4ddcde5dd968 100644 (file)
 #include <sysdep.h>
 
        .section        ".toc","aw"
+       .p2align 3
 .LC0:  /* 2**23 */
-       .tc FD_4b000000_0[TC],0x4b00000000000000
+       .long 0x4b000000
+       .long 0x0
        .section        ".text"
 
 EALIGN (__floorf, 4, 0)
index 876707c766ac97b1aa831c85a04d4a272768651a..b1a2b8cd65ad01daf61401f6aa0f191a949d601a 100644 (file)
 /* float [fp1] nearbyintf(float [fp1]) */
 
        .section        ".toc","aw"
+       .p2align 3
 .LC0:  /* 2**23 */
-       .tc FD_4b000000_0[TC],0x4b00000000000000
+       .long 0x4b000000
+       .long 0x0
        .section        ".text"
 
 EALIGN (__nearbyintf, 4, 0)
index cb28ec748d4486d47c8b51f2bd7c9084d2b2bf51..18877174208e9bb8b7089ea6538accb8636a8bc3 100644 (file)
 #include <sysdep.h>
 
        .section        ".toc","aw"
+       .p2align 3
 .LC0:  /* 2**23 */
-       .tc FD_4b000000_0[TC],0x4b00000000000000
+       .long 0x4b000000
+       .long 0x0
        .section        ".text"
 
 EALIGN (__rintf, 4, 0)
index 980a77bde04018399a028781a52ba39629a0da6c..4f2c851631f71334554f4a51dcfecd9bd90f61d1 100644 (file)
 #include <sysdep.h>
 
        .section        ".toc","aw"
+       .p2align 3
 .LC0:  /* 2**23 */
-       .tc FD_4b000000_0[TC],0x4b00000000000000
+       .long 0x4b000000
 .LC1:  /* 0.5 */
-       .tc FD_3f000000_0[TC],0x3f00000000000000
+       .long 0x3f000000
+
        .section        ".text"
 
 /* float [fp1] roundf  (float x [fp1])
index 5ea5f3d04a8cc1ca4a49db132b1ce158cd5666e3..b8fd050319c6aa831e95c24ae9c876119df81a2c 100644 (file)
 #include <sysdep.h>
 
        .section        ".toc","aw"
+       .p2align 3
 .LC0:  /* 2**23 */
-       .tc FD_4b000000_0[TC],0x4b00000000000000
+       .long 0x4b000000
+       .long 0x0
        .section        ".text"
 
 /* float [fp1] truncf (float x [fp1])