escaping in syntax strings
Dave Brolley
brolley@redhat.com
Mon Mar 26 14:15:00 GMT 2001
Yes --- the insns reference the regular hardeware for r13 directly (i.e.
(reg h-gr 13) ). Probabloy what should have been done, and what you're
expecting is that h-r13 should have a getter/setter pair that does this
automatically.
FWIW, this is just an example of what Frank was pointing out. It's what
I came up with at the time, probably because I hit the same $ problem as
you did. I don't think that it's a better way than coding $ in the
syntax string and handling it directly though.
Dave
Ben Elliston wrote:
> Dave,
>
>>>>>> "Dave" == Dave Brolley <brolley@redhat.com> writes:
>>>>>
>
> Dave> Yes -- see the fr30 for an example of this:
> Dave> h-r13 -- hardware element
> Dave> R13 -- special operand
> Dave> r13base-ld -- pmacro for generating insns which have r13 hardwired but
> Dave> still specified
>
> I took a look at fr30.cpu.
>
> It seems that `h-r13' is not tied to the general purpose register
> bank, though. So if I use one of these `R13' instructions and then
> later use `r13' in an instruction taking a general purpose register
> operand, I don't see how I'll get the same register value. Am I
> missing something?
>
> Ben
>
>
More information about the Cgen
mailing list