aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/i386/fpu/feenablxcpt.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/i386/fpu/feenablxcpt.c')
-rw-r--r--sysdeps/i386/fpu/feenablxcpt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/i386/fpu/feenablxcpt.c b/sysdeps/i386/fpu/feenablxcpt.c
index a000d02d35..8bf8bd9ec1 100644
--- a/sysdeps/i386/fpu/feenablxcpt.c
+++ b/sysdeps/i386/fpu/feenablxcpt.c
@@ -44,11 +44,11 @@ feenableexcept (int excepts)
unsigned int xnew_exc;
/* Get the current control word. */
- __asm__ ("ldmxcsr %0" : "=m" (*&xnew_exc));
+ __asm__ ("stmxcsr %0" : "=m" (*&xnew_exc));
xnew_exc &= ~(excepts << 7);
- __asm__ ("stmxcsr %0" : : "m" (*&xnew_exc));
+ __asm__ ("ldmxcsr %0" : : "m" (*&xnew_exc));
}
return old_exc;