public inbox for sid@sourceware.org
 help / color / mirror / Atom feed
* xstormy16: more misalignment fixes.
@ 2003-05-02  0:04 DJ Delorie
  0 siblings, 0 replies; only message in thread
From: DJ Delorie @ 2003-05-02  0:04 UTC (permalink / raw)
  To: cgen, sid


Yet more fixes for the xstormy16 word-alignment rules.

[cgen]
2003-05-01  DJ Delorie  <dj@redhat.com>

	* 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  <dj@redhat.com>

	* 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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-05-02  0:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-02  0:04 xstormy16: more misalignment fixes DJ Delorie

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).