public inbox for cgen@sourceware.org
 help / color / mirror / Atom feed
* Confusion: setup-semantics?  PC not updated?  Immediate operands?
@ 2002-01-28 16:03 Hans-Peter Nilsson
  2002-01-29 17:47 ` Ben Elliston
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Hans-Peter Nilsson @ 2002-01-28 16:03 UTC (permalink / raw)
  To: cgen

Hm, I can't get anything out from setup-semantics in a
define-isa, like (example only):

(define-isa
  (name cris)
  (base-insn-bitsize 16)
  (default-insn-word-bitsize 16)
  (liw-insns 1)
  (parallel-insns 1)
  (setup-semantics
   (error "Nothing happens"))
)

This when generating that big GCC-specific C switch
<arch>-switch.c, which seems generated from sim-cpu.scm.  From
what little scheme I understand (I'm blissfully naive), it seems
only sid-cpu.scm, not sim-cpu.scm, supports setup-semantics.
I'd use it for purposes similar to that of arm.cpu.
Should it work?

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.

Oh right, there's a further related issue in the pipeline: how
do I best specify 16-bit and 32-bit immediate operands?  The
immediate value is coded as indirect-pc-postincrement, "[pc+]",
where pc is mapped as one of the 16 general registers.  I'm
currently hacking the update of pc in sim/cris/mloop.in in the
case for "xextract-pbb" (based on fr30/mloop.in).  I guess it's
best to have a specific case for the "[pc+]" operand (leaving
cases for other registers in a generally specified insn), but I
need to at least tell CGEN to skip two or four bytes.  I just
can't see where to specify that.

brgds, H-P

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2002-06-19 22:46 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-28 16:03 Confusion: setup-semantics? PC not updated? Immediate operands? Hans-Peter Nilsson
2002-01-29 17:47 ` Ben Elliston
2002-01-29 18:34   ` Hans-Peter Nilsson
2002-01-29 20:06   ` Frank Ch. Eigler
2002-01-30  7:10     ` Hans-Peter Nilsson
2002-03-20 16:47   ` [RFA:] support setup-semantics in sim-cpu.scm (was: Re: Confusion: setup-semantics? ...) Hans-Peter Nilsson
2002-04-18 15:20     ` Hans-Peter Nilsson
2002-06-19 15:46     ` [RFA:] support setup-semantics in sim-cpu.scm Hans-Peter Nilsson
2002-03-22  9:16 ` Confusion: setup-semantics? PC not updated? Immediate operands? Doug Evans
2002-03-22  9:20 ` Doug Evans

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).