From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 21998 invoked from network); 18 Oct 1999 15:31:58 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 18 Oct 1999 15:31:58 -0000 Received: from mgw-x2.nokia.com (mgw-x2.nokia.com [131.228.20.22]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id LAA02104 for ; Mon, 18 Oct 1999 11:31:57 -0400 Received: from mgw-i2.ntc.nokia.com (mgw-i2.ntc.nokia.com [131.228.118.61]) by mgw-x2.nokia.com (8.9.3/8.9.3) with ESMTP id SAA29801 for ; Mon, 18 Oct 1999 18:31:29 +0300 (EETDST) Received: from ducati.uk.ntc.nokia.com (ducati.uk.ntc.nokia.com [131.228.132.169]) by mgw-i2.ntc.nokia.com (8.9.3/8.9.3) with SMTP id SAA05651 for ; Mon, 18 Oct 1999 18:31:27 +0300 (EETDST) Received: from mvagusta.uk.ntc.nokia.com by ducati.uk.ntc.nokia.com (SMI-8.6/SMI-SVR4) id QAA12489; Mon, 18 Oct 1999 16:29:44 +0100 Date: Mon, 18 Oct 1999 16:31:25 +0100 ( ) From: Phil Carmody X-Sender: carmody@mvagusta.uk.ntc.nokia.com To: axp-list@redhat.com Subject: Re: patch_v2: (on Alpha) emulating missing instructions In-Reply-To: <199910181446.QAA18379@pauillac.inria.fr> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Mon, 18 Oct 1999, EXT Robert Harley wrote: > ge2 = (ge1 & ~eq | eq & ge1<<1) & 0xAA; For the C coders out there, an expression of the form D = (A & M) | (B & ~M); can be turned into D = A ^ ((A ^ B) & M); i.e. change (^) the bits which are different (A^B) and within (&) the mask Now it appears that the alpha can do (B&~M) as one instruction, and there's no need to create a temporary ~M, so this isn't a win for us. However, as it is a win on other architectures, and isn't a loss for us I'd thought I'd share it. Phil -- Phil Carmody Not speaking for or on behalf of Nokia Telecommunications sequal : second part of a dilogy which is identical to the first part.