fix mips fesetround failure to write back resulting mode
authorRich Felker <dalias@aerifal.cx>
Thu, 1 Oct 2015 05:10:54 +0000 (05:10 +0000)
committerRich Felker <dalias@aerifal.cx>
Thu, 1 Oct 2015 05:10:54 +0000 (05:10 +0000)
patch by Anand Takale.

src/fenv/mips/fenv.s

index 9b45ffc..6282821 100644 (file)
@@ -43,6 +43,7 @@ __fesetround:
        li      $6, -4
        and     $5, $5, $6
        or      $5, $5, $4
+       ctc1    $5, $31
        jr      $ra
        li      $2, 0