fpu-387.h (set_fpu): Prefix stmxcsr and ldmxcsr with %v.

* config/fpu-387.h (set_fpu): Prefix stmxcsr and ldmxcsr with %v.

From-SVN: r190997
This commit is contained in:
Uros Bizjak 2012-09-05 23:43:45 +02:00 committed by Uros Bizjak
parent 5285c21c6e
commit 588dbb1914
2 changed files with 3 additions and 4 deletions

View File

@ -1,7 +1,6 @@
2012-09-05 Uros Bizjak <ubizjak@gmail.com>
* config/fpu-387.h (set_fpu): Use __builtin_ia32_stmxcsr and
__builtin_ia32_ldmxcsr intrinsics.
* config/fpu-387.h (set_fpu): Prefix stmxcsr and ldmxcsr with %v.
2012-07-25 Andreas Schwab <schwab@linux-m68k.org>

View File

@ -118,7 +118,7 @@ void set_fpu (void)
{
unsigned int cw_sse;
cw_sse = __builtin_ia32_stmxcsr ();
asm volatile ("%vstmxcsr %0" : "=m" (cw_sse));
cw_sse &= 0xffff0000;
cw_sse |= (_FPU_MASK_IM | _FPU_MASK_DM | _FPU_MASK_ZM | _FPU_MASK_OM
@ -131,6 +131,6 @@ void set_fpu (void)
if (options.fpe & GFC_FPE_UNDERFLOW) cw_sse &= ~(_FPU_MASK_UM << 7);
if (options.fpe & GFC_FPE_INEXACT) cw_sse &= ~(_FPU_MASK_PM << 7);
__builtin_ia32_ldmxcsr (cw_sse);
asm volatile ("%vldmxcsr %0" : : "m" (cw_sse));
}
}