From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 18895 invoked from network); 23 Oct 1999 20:39:19 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 23 Oct 1999 20:39:19 -0000 Received: from piglet.twiddle.net (root@piglet.twiddle.net [207.104.6.26]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id QAA17252 for ; Sat, 23 Oct 1999 16:39:18 -0400 Received: (from rth@localhost) by piglet.twiddle.net (8.9.3/8.9.3) id NAA16070 for axp-list@redhat.com; Sat, 23 Oct 1999 13:39:17 -0700 Date: Sat, 23 Oct 1999 13:39:17 -0700 From: Richard Henderson To: axp-list@redhat.com Subject: Re: patch_v2: (on Alpha) emulating missing instructions Message-ID: <19991023133917.A15599@twiddle.net> References: <199910181446.QAA18379@pauillac.inria.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.5i In-Reply-To: ; from Phil Carmody on Mon, Oct 18, 1999 at 04:31:25PM +0100 On Mon, Oct 18, 1999 at 04:31:25PM +0100, Phil Carmody wrote: > D = (A & M) | (B & ~M); > can be turned into > D = A ^ ((A ^ B) & M); I'll note that the former expression, given an andnot operation, has 3 ops and a tree height of 2. The later expression has 3 ops and a tree height of 3. I.e. the former expression takes better advantage of instruction-level parallelism. r~