fenv: fix i386 fesetround for sse
authorSzabolcs Nagy <nsz@port70.net>
Mon, 28 Oct 2013 20:33:54 +0000 (20:33 +0000)
committerSzabolcs Nagy <nsz@port70.net>
Mon, 28 Oct 2013 20:33:54 +0000 (20:33 +0000)
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.

src/fenv/i386/fenv.s

index eaeb6be..f6036d6 100644 (file)
@@ -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)