From: Szabolcs Nagy Date: Mon, 28 Oct 2013 20:33:54 +0000 (+0000) Subject: fenv: fix i386 fesetround for sse X-Git-Tag: v0.9.15~79 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=7e01b8f09b6d50991472e0198c4959b085884dec;p=oweals%2Fmusl.git 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. --- diff --git a/src/fenv/i386/fenv.s b/src/fenv/i386/fenv.s index eaeb6bed..f6036d67 100644 --- a/src/fenv/i386/fenv.s +++ b/src/fenv/i386/fenv.s @@ -75,7 +75,7 @@ __fesetround: 1: addl $__hwcap-1b,(%esp) pop %edx testl $0x02000000,(%edx) - jmp 1f + jz 1f stmxcsr (%esp) shl $3,%ch andb $0x9f,1(%esp)