From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16116 invoked by alias); 20 Mar 2002 23:56:52 -0000 Mailing-List: contact cgen-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cgen-owner@sources.redhat.com Received: (qmail 15842 invoked from network); 20 Mar 2002 23:56:47 -0000 Received: from unknown (HELO miranda.axis.se) (193.13.178.2) by sources.redhat.com with SMTP; 20 Mar 2002 23:56:47 -0000 Received: from ignucius.axis.se (root@ignucius.axis.se [10.13.1.18]) by miranda.axis.se (8.12.1/8.12.1/Debian -5) with ESMTP id g2KNujDi006623; Thu, 21 Mar 2002 00:56:45 +0100 Received: (from hp@localhost) by ignucius.axis.se (8.9.3/8.9.3/Debian 8.9.3-21) id AAA17759; Thu, 21 Mar 2002 00:56:45 +0100 Date: Wed, 20 Mar 2002 15:56:00 -0000 Message-Id: <200203202356.AAA17759@ignucius.axis.se> From: Hans-Peter Nilsson To: cgen@sources.redhat.com Subject: play.cpu or parallel semantics broken X-SW-Source: 2002-q1/txt/msg00086.txt.bz2 #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* [# (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 # ... 41* [-par-replace-set-dests #(# #) (# # #)] 42 (let ((sets (list # # # #))) (letrec ((replace #)) (map replace exprs))) ... 43 [map # (# # #)] 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