summaryrefslogtreecommitdiffstats
path: root/libgcc
diff options
context:
space:
mode:
authorjye2 <jye2@138bc75d-0d04-0410-961f-82ee72b054a4>2014-02-28 21:53:40 +0000
committerjye2 <jye2@138bc75d-0d04-0410-961f-82ee72b054a4>2014-02-28 21:53:40 +0000
commitc63fabc41d20977ba9bd2b920ad74f6e02e75b71 (patch)
treea69088cc5b4d8371c964023d23a0e7cf86fb7d3e /libgcc
parent18fe23ca5ae9d4d709e3de9e192d4f2995e77a14 (diff)
downloadppe42-gcc-c63fabc41d20977ba9bd2b920ad74f6e02e75b71.tar.gz
ppe42-gcc-c63fabc41d20977ba9bd2b920ad74f6e02e75b71.zip
2014-02-28 Joey Ye <joey.ye@arm.com>
PR libgcc/60166 * config/arm/sfp-machine.h (_FP_NANFRAC_H, _FP_NANFRAC_S, _FP_NANFRAC_D, _FP_NANFRAC_Q): Set to zero. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208229 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgcc')
-rw-r--r--libgcc/ChangeLog7
-rw-r--r--libgcc/config/arm/sfp-machine.h10
2 files changed, 13 insertions, 4 deletions
diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog
index 167e7a90b3c..2fe114e4a94 100644
--- a/libgcc/ChangeLog
+++ b/libgcc/ChangeLog
@@ -1,3 +1,10 @@
+2014-02-28 Joey Ye <joey.ye@arm.com>
+
+ PR libgcc/60166
+ * config/arm/sfp-machine.h (_FP_NANFRAC_H,
+ _FP_NANFRAC_S, _FP_NANFRAC_D, _FP_NANFRAC_Q):
+ Set to zero.
+
2014-02-24 Walter Lee <walt@tilera.com>
* config.host: Support "tilegx*" and "tilepro*" triplets.
diff --git a/libgcc/config/arm/sfp-machine.h b/libgcc/config/arm/sfp-machine.h
index 03236173361..4f2b15d7e55 100644
--- a/libgcc/config/arm/sfp-machine.h
+++ b/libgcc/config/arm/sfp-machine.h
@@ -19,10 +19,12 @@ typedef int __gcc_CMPtype __attribute__ ((mode (__libgcc_cmp_return__)));
#define _FP_DIV_MEAT_D(R,X,Y) _FP_DIV_MEAT_2_udiv(D,R,X,Y)
#define _FP_DIV_MEAT_Q(R,X,Y) _FP_DIV_MEAT_4_udiv(Q,R,X,Y)
-#define _FP_NANFRAC_H ((_FP_QNANBIT_H << 1) - 1)
-#define _FP_NANFRAC_S ((_FP_QNANBIT_S << 1) - 1)
-#define _FP_NANFRAC_D ((_FP_QNANBIT_D << 1) - 1), -1
-#define _FP_NANFRAC_Q ((_FP_QNANBIT_Q << 1) - 1), -1, -1, -1
+/* According to RTABI, QNAN is only with the most significant bit of the
+ significand set, and all other significand bits zero. */
+#define _FP_NANFRAC_H 0
+#define _FP_NANFRAC_S 0
+#define _FP_NANFRAC_D 0, 0
+#define _FP_NANFRAC_Q 0, 0, 0, 0
#define _FP_NANSIGN_H 0
#define _FP_NANSIGN_S 0
#define _FP_NANSIGN_D 0
OpenPOWER on IntegriCloud