Constraints between operands
Frank Ch. Eigler
fche@redhat.com
Thu Sep 8 20:28:00 GMT 2005
Hi -
On Thu, Sep 08, 2005 at 02:55:16PM +0100, Will Newton wrote:
> [...]
> I'm using cgen to write a binutils port for a processor. I've come
> across a problem I haven't been able to solve yet with expressing a
> constraint between a number of fields in an instruction.
> [...]
> ADD D0.1,D0.2 ; Data unit 0 for both regs, OK
> ADD D0.1,D1.2 ; Data unit mismatch, error!
> [...]
One way may be to write a custom operand parser for the second D slot,
which would enforce this constraint. It would signal a parse error.
- FChE
More information about the Cgen
mailing list