summaryrefslogtreecommitdiff
path: root/src/math/x86_64/exp2l.s
diff options
context:
space:
mode:
Diffstat (limited to 'src/math/x86_64/exp2l.s')
-rw-r--r--src/math/x86_64/exp2l.s6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/math/x86_64/exp2l.s b/src/math/x86_64/exp2l.s
index 0e9bdf9f..effab2bd 100644
--- a/src/math/x86_64/exp2l.s
+++ b/src/math/x86_64/exp2l.s
@@ -6,7 +6,7 @@ expm1l:
fmulp
movl $0xc2820000,-4(%rsp)
flds -4(%rsp)
- fucomip %st(1)
+ fucomip %st(1),%st
fld1
jb 1f
# x*log2e <= -65, return -1 without underflow
@@ -15,7 +15,7 @@ expm1l:
ret
1: fld %st(1)
fabs
- fucomip %st(1)
+ fucomip %st(1),%st
fstp %st(0)
ja 1f
f2xm1
@@ -48,7 +48,7 @@ exp2l:
fld %st(1)
fsub %st(1)
faddp
- fucomip %st(1)
+ fucomip %st(1),%st
je 2f # x - 0x1p63 + 0x1p63 == x
movl $1,(%rsp)
flds (%rsp) # 0x1p-149