fpu-387.h: Use previously added SSE code in all cases, as it really is the right...
authorFrancois-Xavier Coudert <coudert@clipper.ens.fr>
Sat, 1 Apr 2006 21:24:24 +0000 (23:24 +0200)
committerFrançois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Sat, 1 Apr 2006 21:24:24 +0000 (21:24 +0000)
* config/fpu-387.h: Use previously added SSE code in all
cases, as it really is the right thing to do.

From-SVN: r112610

libgfortran/ChangeLog
libgfortran/config/fpu-387.h

index 33cfb15d0b4fab72d14eac6d406cd333cd8ac709..e3c5bbb5aad01bbd8dcdaff83f38d143f765ade0 100644 (file)
@@ -1,3 +1,8 @@
+2006-04-01  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
+
+       * config/fpu-387.h: Use previously added SSE code in all
+       cases, as it really is the right thing to do.
+
 2006-03-30  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
 
        PR libgfortran/26890
index 5e3dec2d4df33215c8430da6d6d9db1ab389ca5d..5678ade3f6aedf6ca5b304adf2ea50570fcdb1ec 100644 (file)
@@ -93,7 +93,6 @@ void set_fpu (void)
       /* SSE */
       asm volatile ("stmxcsr %0" : "=m" (cw_sse));
       cw_sse &= 0xFFFF0000;
-#ifdef __APPLE__
       cw_sse |= (_FPU_MASK_IM | _FPU_MASK_DM | _FPU_MASK_ZM | _FPU_MASK_OM
                 | _FPU_MASK_UM | _FPU_MASK_PM ) << 7;
       if (options.fpe & GFC_FPE_INVALID) cw_sse &= ~(_FPU_MASK_IM << 7);
@@ -103,14 +102,5 @@ void set_fpu (void)
       if (options.fpe & GFC_FPE_UNDERFLOW) cw_sse &= ~(_FPU_MASK_UM << 7);
       if (options.fpe & GFC_FPE_PRECISION) cw_sse &= ~(_FPU_MASK_PM << 7);
       asm volatile ("ldmxcsr %0" : : "m" (cw_sse));
-#else
-      if (options.fpe & GFC_FPE_INVALID) cw_sse |= 1 << 7;
-      if (options.fpe & GFC_FPE_DENORMAL) cw_sse |= 1 << 8;
-      if (options.fpe & GFC_FPE_ZERO) cw_sse |= 1 << 9;
-      if (options.fpe & GFC_FPE_OVERFLOW) cw_sse |= 1 << 10;
-      if (options.fpe & GFC_FPE_UNDERFLOW) cw_sse |= 1 << 11;
-      if (options.fpe & GFC_FPE_PRECISION) cw_sse |= 1 << 12;
-      asm volatile ("ldmxcsr %0" : : "m" (cw_sse));
-#endif
     }
 }