From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/8580 Path: news.gmane.org!not-for-mail From: Szabolcs Nagy Newsgroups: gmane.linux.lib.musl.general Subject: Re: [PATCH] mips/fenv: fix fesetround by setting rounding mode Date: Mon, 28 Sep 2015 13:09:02 +0200 Message-ID: <20150928110902.GK10551@port70.net> References: <43DB94F35C9F9E47834E992E8B3C7AF16E67C374@PUMAIL01.pu.imgtec.org> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1443438560 29342 80.91.229.3 (28 Sep 2015 11:09:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 28 Sep 2015 11:09:20 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-8592-gllmg-musl=m.gmane.org@lists.openwall.com Mon Sep 28 13:09:19 2015 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1ZgWJ3-0003JW-R4 for gllmg-musl@m.gmane.org; Mon, 28 Sep 2015 13:09:17 +0200 Original-Received: (qmail 3645 invoked by uid 550); 28 Sep 2015 11:09:14 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 3625 invoked from network); 28 Sep 2015 11:09:14 -0000 Mail-Followup-To: musl@lists.openwall.com Content-Disposition: inline In-Reply-To: <43DB94F35C9F9E47834E992E8B3C7AF16E67C374@PUMAIL01.pu.imgtec.org> User-Agent: Mutt/1.5.23 (2014-03-12) Xref: news.gmane.org gmane.linux.lib.musl.general:8580 Archived-At: * Anand Takale [2015-09-28 10:38:36 +0000]: > mips fesetround does not write back the rounding mode to FCSR > looks ok thanks > > diff --git a/src/fenv/mips/fenv.s b/src/fenv/mips/fenv.s > index 9b45ffc..f60b0e7 100644 > --- a/src/fenv/mips/fenv.s > +++ b/src/fenv/mips/fenv.s > @@ -43,6 +43,7 @@ __fesetround: > li $6, -4 > and $5, $5, $6 > or $5, $5, $4 > + ctc1 $5, $31 > jr $ra > li $2, 0