From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dave Brolley To: Ben Elliston Cc: "Frank Ch. Eigler" , cgen@sources.redhat.com Subject: Re: escaping in syntax strings Date: Mon, 26 Mar 2001 14:15:00 -0000 Message-id: <3ABFBF92.4010704@redhat.com> References: <20010326081015.D13900@redhat.com> <3ABF7866.40608@redhat.com> <15039.48598.851316.958502@scooby.apac.redhat.com> X-SW-Source: 2001-q1/msg00214.html 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 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 > >