]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
fpu-387.h (sigill_hdlr, [...]): Emit
authorTobias Burnus <burnus@net-b.de>
Wed, 11 Dec 2013 19:50:56 +0000 (20:50 +0100)
committerTobias Burnus <burnus@gcc.gnu.org>
Wed, 11 Dec 2013 19:50:56 +0000 (20:50 +0100)
2013-12-11  Tobias Burnus  <burnus@net-b.de>

        * config/fpu-387.h (sigill_hdlr, get_fpu_rounding_mode): Emit
        * SSE
        instructions when __SSE_MATH__ is defined.

From-SVN: r205903

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

index 02524ad35392cebbb4fe813879bf633809bcf1e3..ec2be14a4b6f1044bee7f7fe8e00d20d46ae7fd8 100644 (file)
@@ -1,3 +1,8 @@
+2013-12-11  Tobias Burnus  <burnus@net-b.de>
+
+       * config/fpu-387.h (sigill_hdlr, get_fpu_rounding_mode): Emit SSE
+       instructions when __SSE_MATH__ is defined.
+
 2013-12-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
 
        * intrinsics/erfc_scaled.c (_M_2_SQRTPI): Define if missing.
index b35c315445cf12d0c5104596d64e507e7d9b9c8b..0317ef192229b76b5a89a529ca21f6c91c6a2c02 100644 (file)
@@ -23,7 +23,7 @@ a copy of the GCC Runtime Library Exception along with this program;
 see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
 <http://www.gnu.org/licenses/>.  */
 
-#ifndef __x86_64__
+#ifndef __SSE_MATH__
 #include "cpuid.h"
 #endif
 
@@ -50,7 +50,7 @@ sigill_hdlr (int sig __attribute((unused)),
 static int
 has_sse (void)
 {
-#ifndef __x86_64__
+#ifndef __SSE_MATH__
   unsigned int eax, ebx, ecx, edx;
 
   if (!__get_cpuid (1, &eax, &ebx, &ecx, &edx))
@@ -227,7 +227,7 @@ get_fpu_rounding_mode (void)
 {
   int round_mode;
 
-#ifdef __x86_64__
+#ifdef __SSE_MATH__
   unsigned int cw;
 
   __asm__ __volatile__ ("%vstmxcsr\t%0" : "=m" (cw));