This is the mail archive of the
cgen@sources.redhat.com
mailing list for the CGEN project.
Re: anonymous ifields
- To: bje at redhat dot com (Ben Elliston)
- Subject: Re: anonymous ifields
- From: fche at redhat dot com (Frank Ch. Eigler)
- Date: 15 Mar 2001 09:05:18 -0500
- Cc: cgen at sources dot redhat dot com
- References: <15024.36717.101762.797146.cygnus.local.cgen@scooby.apac.redhat.com>
bje wrote:
: [...]
: [you don't like]
: (+ OP_10 rm rn rd (f-func 10) (f-1 1) (f-0 1))
: [...]
: [but you like better]
: (+ OP_10 rm rn rd (f-func 10) (@1 1) (@0 1))
: (+ OP_10 rm rn rd (f-func 10) (@1:0 3))
: [...]
How frequently does each of these anonymous ifields occur in your new
port? If the ifields in question are used more than once, then a
pmacro-based declaration plus "f-0" type references would be about as
compact than an anonymous declaration in situ.
If you don't like having to declare the ifields explicitly, we could
get cgen to automagically declare a bunch of ifields for all
contiguous bitfields in an instruction word. (O(N**2) of them for N
bits.)
- FChE