Commit 711df88d by Tobias Burnus Committed by Tobias Burnus

fpu-387.h (sigill_hdlr, [...]): Emit

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
parent 12893402
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> 2013-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* intrinsics/erfc_scaled.c (_M_2_SQRTPI): Define if missing. * intrinsics/erfc_scaled.c (_M_2_SQRTPI): Define if missing.
......
...@@ -23,7 +23,7 @@ a copy of the GCC Runtime Library Exception along with this program; ...@@ -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 see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
<http://www.gnu.org/licenses/>. */ <http://www.gnu.org/licenses/>. */
#ifndef __x86_64__ #ifndef __SSE_MATH__
#include "cpuid.h" #include "cpuid.h"
#endif #endif
...@@ -50,7 +50,7 @@ sigill_hdlr (int sig __attribute((unused)), ...@@ -50,7 +50,7 @@ sigill_hdlr (int sig __attribute((unused)),
static int static int
has_sse (void) has_sse (void)
{ {
#ifndef __x86_64__ #ifndef __SSE_MATH__
unsigned int eax, ebx, ecx, edx; unsigned int eax, ebx, ecx, edx;
if (!__get_cpuid (1, &eax, &ebx, &ecx, &edx)) if (!__get_cpuid (1, &eax, &ebx, &ecx, &edx))
...@@ -227,7 +227,7 @@ get_fpu_rounding_mode (void) ...@@ -227,7 +227,7 @@ get_fpu_rounding_mode (void)
{ {
int round_mode; int round_mode;
#ifdef __x86_64__ #ifdef __SSE_MATH__
unsigned int cw; unsigned int cw;
__asm__ __volatile__ ("%vstmxcsr\t%0" : "=m" (cw)); __asm__ __volatile__ ("%vstmxcsr\t%0" : "=m" (cw));
......
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