mirror of
https://github.com/fluencelabs/musl
synced 2025-06-03 01:51:51 +00:00
fenv: fix i386 fesetround for sse
i386 fenv code checks __hwcap for sse support, but in fesetround the sse code was unconditionally jumped over after the test so the sse rounding mode was never set.
This commit is contained in:
parent
71d23b3103
commit
7e01b8f09b
@ -75,7 +75,7 @@ __fesetround:
|
|||||||
1: addl $__hwcap-1b,(%esp)
|
1: addl $__hwcap-1b,(%esp)
|
||||||
pop %edx
|
pop %edx
|
||||||
testl $0x02000000,(%edx)
|
testl $0x02000000,(%edx)
|
||||||
jmp 1f
|
jz 1f
|
||||||
stmxcsr (%esp)
|
stmxcsr (%esp)
|
||||||
shl $3,%ch
|
shl $3,%ch
|
||||||
andb $0x9f,1(%esp)
|
andb $0x9f,1(%esp)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user