This is the mail archive of the
cgen@sources.redhat.com
mailing list for the CGEN project.
Re: better handling of unknown operands
>>>>> "Frank" == Frank Ch Eigler <fche@redhat.com> writes:
Frank> : Ben> More generally, shouldn't cgen complain about any operand that appears
Frank> : Ben> in the syntax string but not the field format list, or
Frank> : Ben> vice-versa?
Frank> : I haven't heard any comments on this [...]
Frank> It's not quite like that -- keep in mind ifields that embody padding or
Frank> reserved bits, and need no mentino in the syntax string.
But you're referring to ifields. I'm talking about *operands*:
"beq $rm, @$rn"
(+ (f-fixed 16) rm rn (f-subop 10) (f-0 0))
Both `rm' and `rn' (and only `rm',`rn') should appear in both places.
Right?
Ben