From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10360 invoked by alias); 2 May 2003 00:04:58 -0000 Mailing-List: contact sid-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: sid-owner@sources.redhat.com Received: (qmail 10346 invoked from network); 2 May 2003 00:04:57 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 2 May 2003 00:04:57 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id h4204v322852; Thu, 1 May 2003 20:04:57 -0400 Received: from post-office.corp.redhat.com (post-office.corp.redhat.com [172.16.52.227]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h4204vI16559; Thu, 1 May 2003 20:04:57 -0400 Received: from greed.delorie.com (dj.cipe.redhat.com [10.0.0.222]) by post-office.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h4204vZ09268; Thu, 1 May 2003 20:04:57 -0400 Received: (from dj@localhost) by greed.delorie.com (8.11.6/8.11.6) id h4204uc25137; Thu, 1 May 2003 20:04:56 -0400 Date: Fri, 02 May 2003 00:04:00 -0000 Message-Id: <200305020004.h4204uc25137@greed.delorie.com> From: DJ Delorie To: cgen@sources.redhat.com, sid@sources.redhat.com Subject: xstormy16: more misalignment fixes. X-SW-Source: 2003-q2/txt/msg00014.txt.bz2 Yet more fixes for the xstormy16 word-alignment rules. [cgen] 2003-05-01 DJ Delorie * cpu/xstormy16.cpu (alignfix-mem): Correct logic for unaligned word accesses. (set-alignfix-mem): Likewise. [sid/component/cgen-cpu/xstormy16] 2003-05-01 DJ Delorie * xstormy16-sem.cxx: Regenerate. * xstormy16-write.cxx: Regenerate. Index: cgen/cpu/xstormy16.cpu =================================================================== RCS file: /cvs/uberbaum/./cgen/cpu/xstormy16.cpu,v retrieving revision 1.8 diff -p -2 -r1.8 xstormy16.cpu *** cgen/cpu/xstormy16.cpu 21 Mar 2003 06:15:55 -0000 1.8 --- cgen/cpu/xstormy16.cpu 1 May 2003 23:55:04 -0000 *************** *** 493,513 **** (define-pmacro (alignfix-mem where) ! (if HI (and where 1) ! (or HI ! (and (sll (mem QI (sub where 1)) 8) #xFF00) ! (and (mem QI where) #xFF)) ! (mem HI where))) (define-pmacro (set-alignfix-mem where what) ! (sequence ((SI nwhere) (HI nwhat)) ! (set nwhere where) ! (if (and nwhere 1) ! (sequence () ! (set nwhat (or HI ! (and (sll what 8) #xFF00) ! (and (srl what 8) #xFF))) ! (set nwhere (sub nwhere 1))) ! (set nwhat what)) ! (set (mem HI nwhere) what))) (dni movlmemimm --- 493,500 ---- (define-pmacro (alignfix-mem where) ! (mem HI (and where #xFFFE))) (define-pmacro (set-alignfix-mem where what) ! (set (mem HI (and where #xFFFE)) what)) (dni movlmemimm