From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 385D8B6FB4 for ; Thu, 7 Jun 2012 07:20:15 +1000 (EST) Message-ID: <1339017602.7150.174.camel@pasglop> Subject: Re: [PATCH] powerpc: Optimise the 64bit optimised __clear_user From: Benjamin Herrenschmidt To: Segher Boessenkool Date: Thu, 07 Jun 2012 07:20:02 +1000 In-Reply-To: <178E3BC0-C6E2-4E33-BA66-8144F192A151@kernel.crashing.org> References: <20120604175858.38dac554@kryten> <20120605120222.6722a3e3@kryten> <178E3BC0-C6E2-4E33-BA66-8144F192A151@kernel.crashing.org> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Cc: mikey@neuling.org, michael@ellerman.id.au, paulus@samba.org, Anton Blanchard , olof@lixom.net, linuxppc-dev@lists.ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Wed, 2012-06-06 at 18:40 +0200, Segher Boessenkool wrote: > > +err1; dcbz r0,r3 > > There is no such instruction, you probably meant "dcbz 0,r3"? This reminds me... what would happen if we changed all our #define r0 0 #define r1 1 etc... to: #define r0 %r0 #define r1 %r1 ? I'm thinking it might help catch that sort of nasties (and some of them can be really nasty, such as inverting mfspr/mtspr arguments, or vs ori, etc... ). I'm sure we'd have a problem with a few macros & inline constructs but nothing we can't fix.. (Haven't tested ... still home, officially sick :-) Cheers, Ben.