From: Alan Lehotsky <apl@alum.mit.edu>
To: cgen@sourceware.cygnus.com
Subject: Can't see what's wrong with my simulator semantics code....
Date: Sat, 30 Jun 2001 10:20:00 -0000 [thread overview]
Message-ID: <p04330101b763b6596543@[192.168.1.254]> (raw)
cgen claims
ERROR: read:array unknown option #\)
when processing the (set dest (if ...)) below. If I comment out that
3 line "set", it compiles my simulator.
I'm sure I'm doing something really stupid, but this LOOKS like
expressions that compile....
-- Al
p.s. The instruction basically takes one half of the 32 bit word
and compares it against a 16 bit immediate. The 'idx' is a 2 bit
field where 00=> low 16 bits, 11=> high 16 bits....
=======================
(dni cmpwi "compare word immediate"
()
"cmpwi $rd$idx,$imm16"
(+ OP5_CMPWI rd idx imm16)
(sequence ((SI dest))
(set dest (if SI (eq idx #3)
(and #xffff (srl rd #16))
(and #xffff rd)))
(set zbit (eq imm16 dest)))
()
)
===============
--
------------------------------------------------------------------------
Quality Software Management
http://home.earthlink.net/users/~qsmgmt
apl@alum.mit.edu
(978)287-0435 Voice
(978)808-6836 Cell
(978)287-0436 Fax
Software Process Improvement and Management Consulting
Language Design and Compiler Implementation
next reply other threads:[~2001-06-30 10:20 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-06-30 10:20 Alan Lehotsky [this message]
[not found] <p04330101b763b6596543.cygnus.local.cgen@[192.168.1.254]>
2001-06-30 11:55 ` Geoff Keating
2001-06-30 12:10 ` Alan Lehotsky
2001-06-30 12:25 ` Geoff Keating
2001-06-30 12:35 ` Alan Lehotsky
2001-06-30 17:12 ` Ben Elliston
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='p04330101b763b6596543@[192.168.1.254]' \
--to=apl@alum.mit.edu \
--cc=cgen@sourceware.cygnus.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).