RFA: FRV: Have GAS detect odd register numbers
Dave Brolley
brolley@redhat.com
Wed Jun 4 19:47:00 GMT 2003
Hi Nick,
The modelling units also need to be given the correct operand values.
Since it's possible that some insns which were not changed share units
with insns which have, probably the best way to do this is to override
the modelling unit arguments for the insns which have changed.
I've attached a patch showing an example of how this would be done for
the mqsaths insn. You would have to make similar modifications to the
other insns which you changed. Note the distinction between input and
out arguments.
Let me know if you have any questions about this.
Thanks,
Dave
Nick Clifton wrote:
>Hi Dave,
>
> Another FRV patch based on a bug report from Fujitsu (#23201). This
> time they noticed that GAS does not detect a malformed mdrotli
> instruction where either of the register operands is odd.
>
> The patch below fixes this, in a rather extensive fashion, by
> creating three new operands in the frv.cpu file. These operands
> check for odd numbered registers and the patch uses them in the
> appropriate places in the patterns that follow. It also adds code
> to frv.opc to perform the even-number checking. It also defines
> CGEN_VERBOSE_ASSEMBLER_ERRORS so that GAS will report an appropriate
> error message if a bad mdrotli is encountered.
>
> Any objections to my applying it ? (To cpu/ and cgen/cpu/).
>
>Cheers
> Nick
>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: frvmodel.patch.txt
URL: <https://sourceware.org/pipermail/binutils/attachments/20030604/1907768d/attachment.txt>
More information about the Binutils
mailing list