This is the mail archive of the
cgen@sources.redhat.com
mailing list for the CGEN project.
Re: [RFA:] Fix lsb? bug with insn fields beyond base insn size.
- From: Hans-Peter Nilsson <hans-peter dot nilsson at axis dot com>
- To: dje at transmeta dot com
- Cc: hans-peter dot nilsson at axis dot com, cgen at sources dot redhat dot com
- Date: Mon, 24 Jun 2002 17:11:21 +0200
- Subject: Re: [RFA:] Fix lsb? bug with insn fields beyond base insn size.
> From: Doug Evans <dje@transmeta.com>
> Date: Fri, 21 Jun 2002 13:54:10 -0700 (PDT)
> Are you sure you want the +1 here (grep for >>>)?
Yes. The highest bit-number minus the lowest bit-number is the
number of bits less one. If the field starts at bit 2 and ends
at bit 2 it's one bit long. Oh... it's everything else that is
wrong. Oops. :-(
> [unless of course you rework the fieldpart high/low calculations]
Yup. Sorry, please ignore that patch. New patch forthcoming.
brgds, H-P