This is the mail archive of the
cgen@sources.redhat.com
mailing list for the CGEN project.
Confusion: setup-semantics? PC not updated? Immediate operands?
- From: Doug Evans <dje at transmeta dot com>
- To: Hans-Peter Nilsson <hans-peter dot nilsson at axis dot com>
- Cc: cgen at sources dot redhat dot com
- Date: Fri, 22 Mar 2002 09:15:36 -0800 (PST)
- Subject: Confusion: setup-semantics? PC not updated? Immediate operands?
- References: <200201290003.BAA12296@ignucius.axis.se>
Hans-Peter Nilsson writes:
> On a related matter, it seems pc isn't updated for non-CTI
> insns; it's value is that of the first insn in the chain.
> I need it as an operand in non-CTI insns.
Catching up on old mail ...
In the computed-goto engine, the pc is lazily updated.
Off the top of my head, I _think_ what should happen is that
the code generator for non-CTI insns that reference pc
should recognize the situation and update pc appropriately.