From: Phil Carmody <carmody@cpd.ntc.nokia.com>
To: axp-list@redhat.com
Subject: Re: patch_v2: (on Alpha) emulating missing instructions
Date: Mon, 18 Oct 1999 16:31:25 +0100 ( ) [thread overview]
Message-ID: <Pine.GSO.4.10.9910181625180.21280-100000@mvagusta.uk.ntc.nokia.com> (raw)
In-Reply-To: <199910181446.QAA18379@pauillac.inria.fr>
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.
next prev parent reply other threads:[~1999-10-18 15:31 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-10-18 14:46 patch_v2: (on Alpha) emulating missing instructions Robert Harley
1999-10-18 15:31 ` Phil Carmody [this message]
1999-10-23 20:39 ` Richard Henderson
1999-10-21 16:23 ` patch_v3: emulating missing instructions on Alpha Luke Deller
1999-10-23 20:55 ` Richard Henderson
1999-10-24 0:28 ` Daniel Potts
1999-10-25 1:22 ` Luke Deller
1999-10-28 23:34 ` Richard Henderson
-- strict thread matches above, loose matches on Subject: below --
1999-10-18 13:05 patch_v2: (on Alpha) emulating missing instructions Robert Harley
1999-10-15 9:30 PATCH: " Luke Deller
1999-10-16 9:13 ` patch_v2: " Luke Deller
1999-01-13 14:10 Alpha 21264 Andy Almond
1999-01-13 16:36 ` Jeff Sturm
1999-01-14 6:50 ` Richard Henderson
1999-01-12 3:55 rpcc Christoph Dworzak
1999-01-12 3:20 ` rpcc Peter Petrakis
1999-01-12 4:59 ` rpcc Richard Henderson
[not found] ` <rth@twiddle.net>
1999-01-12 16:59 ` rpcc Christoph Dworzak
1999-01-12 19:27 ` rpcc Richard Henderson
1999-01-12 21:06 ` rpcc Wes Bauske
1999-01-13 2:16 ` rpcc Richard Henderson
1999-01-14 16:17 ` Alpha 21264 Christoph Dworzak
1999-01-14 15:46 ` Greg Lindahl
1999-01-14 17:27 ` Richard Henderson
1999-10-24 15:04 ` patch_v2: (on Alpha) emulating missing instructions Christoph Dworzak
1999-10-25 9:47 ` Phil Carmody
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox