This is the mail archive of the cgen@sources.redhat.com mailing list for the CGEN project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: anonymous ifields



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]