fche | 1 Oct 2010 16:13
Favicon

new cgen snapshot available

A new automated cgen source snapshot is available
ftp://sources.redhat.com/pub/cgen/snapshots/cgen-20101001.tar.bz2
1598370 bytes, cgen-snapshot-20101001 tag
See also ftp://sources.redhat.com/pub/cgen/snapshots/

Nick Clifton | 28 Oct 2010 11:59
Picon
Favicon

RFA: XStormy16: Fix implementation of MOVF instruction

Hi Guys,

  The patch below fixes the emulation of the XStormy16's MOVF
  instruction.  There were two problems - firstly when memory addresses
  were being aligned they were also being truncated to 16-bits.  (The
  MOVF instruction allows access to a 32-bit address space).  Secondly
  the pre-decrement and post-increment addressing modes were not
  propagating the carry into the base register.

  Tested by running lots of different xstormy16 programs under SID.

  OK to apply ?

Cheers
  Nick Clifton

cgen/ChangeLog
2010-10-28  Nick Clifton  <nickc <at> redhat.com>

	* cpu/xstormy16.cpu (alignfix-mem-far): New macro.  Like
        alignfix-mem, but works with 32-bit addresses.
        (set-alignfix-mem-far): New macro.  Like set-alignfix-mem but
        works with 32-bit addresses.
        (movfgrgri, movfgrgripostinc, movfgrgripredec, movfgrgrii,
        movfgrgriipostinc, movfgrgriipredec): Use alignfix-mem-far.
        (movfgrigr, movfgripostincgr, movfgripredecgr): Use
        set-alignfix-mem-far.
	(movfgrgriipostinc, movfgriipostincgr): Propagate addition to
        source register into base register.
	(movfgrgriipredec, movfgriipredecgr): Propagate subtraction from
(Continue reading)


Gmane