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 9b45ffc3291f44575a66876c36f9057ce6949f84..62828212ab965fba35e6cd205d001b5103245a26 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