From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/9789 Path: news.gmane.org!not-for-mail From: Jaydeep Patil Newsgroups: gmane.linux.lib.musl.general Subject: RE: [PATCH] Fix atomic_arch.h for MIPS32 R6 Date: Thu, 31 Mar 2016 05:20:54 +0000 Message-ID: References: <20160323150302.GK21636@brightrain.aerifal.cx> <20160328130451.GH21636@brightrain.aerifal.cx> <20160329041055.GL21636@brightrain.aerifal.cx> <20160329133254.GM21636@brightrain.aerifal.cx> <20160330142926.GQ21636@brightrain.aerifal.cx> <20160330152827.GR21636@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1459401674 18800 80.91.229.3 (31 Mar 2016 05:21:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 31 Mar 2016 05:21:14 +0000 (UTC) Cc: "musl@lists.openwall.com" To: Rich Felker Original-X-From: musl-return-9802-gllmg-musl=m.gmane.org@lists.openwall.com Thu Mar 31 07:21:14 2016 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 1alV2f-00025u-GE for gllmg-musl@m.gmane.org; Thu, 31 Mar 2016 07:21:13 +0200 Original-Received: (qmail 26405 invoked by uid 550); 31 Mar 2016 05:21:10 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 26381 invoked from network); 31 Mar 2016 05:21:09 -0000 Thread-Topic: [musl] [PATCH] Fix atomic_arch.h for MIPS32 R6 Thread-Index: AQHRg5hzySIsGLLUbES01dme3Dr6SZ9k53DggAC29oCAANgNAIAAUFkAgAeMHPCAAC6HgIABVBQA//+pFACAAI87AIAADcgAgAFZ7RCAAEgzAIAAEH6AgAFEDRA= In-Reply-To: <20160330152827.GR21636@brightrain.aerifal.cx> Accept-Language: en-IN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [192.168.93.60] Xref: news.gmane.org gmane.linux.lib.musl.general:9789 Archived-At: >-----Original Message----- >From: Rich Felker [mailto:dalias@aerifal.cx] On Behalf Of Rich Felker >Sent: 30 March 2016 PM 08:58 >To: Jaydeep Patil >Cc: musl@lists.openwall.com >Subject: Re: [musl] [PATCH] Fix atomic_arch.h for MIPS32 R6 > >On Wed, Mar 30, 2016 at 10:29:26AM -0400, Rich Felker wrote: >> Since I've done most of the thinking about the above issues already >> and have a patch for some of them, let me prepare a complete patch and >> send it to the list for you to check and make sure it meets your needs >> for r6. I should be able to prepare it very quickly. Then we can look >> at applying the same changes to the n32 port and reviewing it. > >Can you see if the attached patch works for you? It not only adds r6 suppo= rt >but improves support for non-baseline (i.e. > mips1) ISA levels by optimiz= ing >out the unnecessary .set's (which hurt gcc's inlining, because gcc is dumb >about them) and lifts the $3 register restriction on rdhwr for ISA levels = where >the instructions are known to be available natively. The patch works fine. I have tried it for mips32 r2-r6, mips64 r2-r6, micro= mips32 r2-r5. I have tried it with both GCC and Clang 3.9.0 compilers. >Rich Thanks, Jaydeep