From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8867 invoked by alias); 24 Jun 2002 16:05:49 -0000 Mailing-List: contact cgen-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cgen-owner@sources.redhat.com Received: (qmail 8841 invoked from network); 24 Jun 2002 16:05:46 -0000 Received: from unknown (HELO krynn.axis.se) (193.13.178.10) by sources.redhat.com with SMTP; 24 Jun 2002 16:05:46 -0000 Received: from ignucius.axis.se (root@ignucius.axis.se [10.13.1.18]) by krynn.axis.se (8.12.2/8.12.2/Debian -5) with ESMTP id g5OG5iS3023270; Mon, 24 Jun 2002 18:05:44 +0200 Received: (from hp@localhost) by ignucius.axis.se (8.9.3/8.9.3/Debian 8.9.3-21) id SAA20094; Mon, 24 Jun 2002 18:05:43 +0200 Date: Mon, 24 Jun 2002 09:05:00 -0000 Message-Id: <200206241605.SAA20094@ignucius.axis.se> From: Hans-Peter Nilsson To: dje@transmeta.com CC: hans-peter.nilsson@axis.com, cgen@sources.redhat.com In-reply-to: <15639.14387.11726.547375@casey.transmeta.com> (message from Doug Evans on Mon, 24 Jun 2002 08:18:11 -0700 (PDT)) Subject: Re: [RFA:] Fix lsb? bug with insn fields beyond base insn size. X-SW-Source: 2002-q2/txt/msg00039.txt.bz2 > From: Doug Evans > Date: Mon, 24 Jun 2002 08:18:11 -0700 (PDT) > Hans-Peter Nilsson writes: > > The highest bit-number minus the lowest bit-number is the > > number of bits less one. > > Assuming one defines the field to be [low,high]. > Another legitimate definition, within a localized context such > as intermediates used to produce some final result, is [low,high). > I'm sure there are other contexts where such a definition is legitimate. Ok, the comment above field-high and field-low needs expansion, since "canonicalize on the low and high numbered ends of the field; use the lsb?-adjusted numbering only when necessary" is ambiguous, opening up to such off-by-one interpretation. Never mind, as mentioned I'll send a new patch. brgds, H-P