This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/29845] sh floating point emulation is inefficient
- From: "christian dot bruel at st dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Jan 2007 13:47:18 -0000
- Subject: [Bug target/29845] sh floating point emulation is inefficient
- References: <bug-29845-5394@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from christian dot bruel at st dot com 2007-01-31 13:47 -------
Hereattached a patch to fix a few problems:
1) Rounding to nearest must be infinity if the "infinitely precise result has a
magniture at least 2 exp Emax (2-2exp-p)" (ansi 754/1985 sect 4.1). The
implementation for addsf3 and adddf3 returned a NaN.
2) Infinity in divsf3.S was not set (case of 1.0/0.0).
2007-01-29 Christian Bruel <christian.bruel@st.com>
* config/sh/IEEE-754/m3/adddf3.S: Fix inf mantissa.
* config/sh/IEEE-754/m3/addsf3.S: Likewise.
* config/sh/IEEE-754/m3/divsf3.S: Intialize xff000000 label.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29845