From: Hans-Peter Nilsson <hans-peter.nilsson@axis.com>
To: cgen@sources.redhat.com
Subject: play.cpu or parallel semantics broken
Date: Wed, 20 Mar 2002 15:56:00 -0000 [thread overview]
Message-ID: <200203202356.AAA17759@ignucius.axis.se> (raw)
#guile
guile> (load "dev.scm")
[...]
guile> (load-sim)
[...]
guile> (cload #:arch "cpu/play")
[...]
guile> (cgen-sem-switch.c)
Generating cpuf sem-switch.c ...
Analyzing instruction set ...
[...]
Processing semantic switch case for "add $dr,$sr" ...
[ Note that this is actually addv2; they confusingly have the
same "syntax". ]
Backtrace:
32* [#<procedure (e)> (parallel () DFLT ...)]
33* [rtl-c-with-estate #(# #) #(# #) (parallel () DFLT () ...)]
34 [cx:c ...
35* [rtl-c-get #(# #) #(# #) ...
36* [rtx-eval-with-estate (parallel () DFLT () ...) #(# #) #(# #)]
37 (if (pair? expr) (let* (# #) (if fn # ...)) ...)
...
38 [s-parallel #(#("object" # #f ...) (# #f # ...)) (set () DFLT ...) ...]
39 (let* ((set-dests #) (temps #)) (set! -par-temp-list temps) ...)
40* [string-map #<procedure (e)> ...
41* [-par-replace-set-dests #(# #) (# # #)]
42 (let ((sets (list # # # #))) (letrec ((replace #)) (map replace exprs)))
...
43 [map #<procedure replace (expr)> (# # #)]
44* [replace (set () DFLT ...)]
45* (let (# # #) (if # # #))
46 (if (memq name sets) (list name options ...) ...)
47 [list set () DFLT ...
48* [-par-new-temp! ...
49* (if (mode:eq? # mode) (rtx-lvalue-mode-name estate #) mode)
50 [rtx-lvalue-mode-name #(# #) (local () DFLT tmp1)]
...
51 [error "rtx-lvalue-mode-name: not an operand or hardware reference:" $
./rtl.scm:437:6: In procedure error in expression (error "rtx-lvalue-mode-name: not an operand or hardware reference:" x):
./rtl.scm:437:6: rtx-lvalue-mode-name: not an operand or hardware reference: (local () DFLT tmp1)
ABORT: (misc-error)
Also happens with (cgen-semantics.c). And this also happens
without my recent pmacros.scm patch. ;-)
It looks like a parallel does not inherit the variables of a
surrounding sequence; in this case tmp1. Not that I need that
feature, but I think play.cpu shouldn't fail. An easy way out
is to just remove addv2.
brgds, H-P
next reply other threads:[~2002-03-20 23:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-03-20 15:56 Hans-Peter Nilsson [this message]
2002-03-20 16:15 ` Doug Evans
2002-03-20 16:31 ` Hans-Peter Nilsson
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=200203202356.AAA17759@ignucius.axis.se \
--to=hans-peter.nilsson@axis.com \
--cc=cgen@sources.redhat.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).