Commit 61ab5260 by David S. Miller Committed by David S. Miller

crtfastmath.c (FPRS_NS): Get it right for little-endian.

2002-04-03  David S. Miller  <davem@redhat.com>

* config/sparc/crtfastmath.c (FPRS_NS): Get it right for
little-endian.
(set_fast_math): Correct 'fsr' type.

From-SVN: r51824
parent dffa4176
2002-04-03 David S. Miller <davem@redhat.com>
* config/sparc/crtfastmath.c (FPRS_NS): Get it right for
little-endian.
(set_fast_math): Correct 'fsr' type.
2002-04-03 Richard Henderson <rth@redhat.com>
PR opt/3569
......
......@@ -32,12 +32,16 @@
* the executable file might be covered by the GNU General Public License.
*/
#if defined (__LITTLE_ENDIAN__) || defined(__LITTLE_ENDIAN_DATA__)
#define FPRS_NS (1 << 14) /* Non-Standard fpu results */
#else
#define FPRS_NS (1 << 22) /* Non-Standard fpu results */
#endif
static void __attribute__((constructor))
set_fast_math (void)
{
unsigned long fsr;
unsigned int fsr;
/* This works for the 64-bit case because, even if 32-bit ld/st of
the fsr register modified the upper 32-bit, the only thing up there
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment