[RFA:] Fix lsb? bug with insn fields beyond base insn size.

Hans-Peter Nilsson hans-peter.nilsson@axis.com
Mon Jun 24 08:11:00 GMT 2002


> 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



More information about the Cgen mailing list