public inbox for sid@sourceware.org
 help / color / mirror / Atom feed
* xstormy16 cgen/sid patch
@ 2010-05-29  1:46 DJ Delorie
  2010-05-31 14:40 ` Dave Brolley
  0 siblings, 1 reply; 3+ messages in thread
From: DJ Delorie @ 2010-05-29  1:46 UTC (permalink / raw)
  To: sid, cgen


[this time with fixed email]

Most were OK, but some got missed.

2010-05-28  DJ Delorie  <dj@redhat.com>

	* cpu/xstormy16.cpu (movgriipostincgr, movgriipredecgr,
	movfgriipredecgr): Fix increment/decrement amount.

2010-05-28  DJ Delorie  <dj@redhat.com>

	* xstormy16-sem.cxx: Regenerate.


Index: cgen/cpu/xstormy16.cpu
===================================================================
RCS file: /cvs/src/src/cgen/cpu/xstormy16.cpu,v
retrieving revision 1.14
diff -p -U3 -r1.14 xstormy16.cpu
--- cgen/cpu/xstormy16.cpu	24 Aug 2009 06:46:16 -0000	1.14
+++ cgen/cpu/xstormy16.cpu	29 May 2010 01:18:27 -0000
@@ -725,7 +725,7 @@
 		   (set-alignfix-mem (add Rs imm12) Rdm)
 		   (set (mem QI (add Rs imm12)) Rdm))
 	       (set-psw-nowrite (index-of Rdm) Rdm ws2)
-	       (set Rs (add Rs 1)))
+	       (set Rs (add Rs (add ws2 1))))
      ()
 )
 
@@ -735,7 +735,7 @@
      ("mov$ws2 (--$Rs,$imm12),$Rdm")
      (+ OP1_6 OP2A_A ws2 Rs OP4M_1 Rdm OP5_0 imm12)
      (sequence ()
-	       (set Rs (sub Rs 1))
+	       (set Rs (sub Rs (add ws2 1)))
 	       (set-psw-nowrite (index-of Rdm) Rdm ws2)
 	       (if ws2
 		   (set-alignfix-mem (add Rs imm12) Rdm)
@@ -968,7 +968,7 @@
      ("movf$ws2 ($Rb,--$Rs,$imm12),$Rdm")
      (+ OP1_6 OP2A_E ws2 Rs OP4M_1 Rdm OP5A_0 Rb imm12)
      (sequence ()
-	       (set Rs (sub Rs 1))
+	       (set Rs (sub Rs (add ws2 1)))
 	       (set-psw-nowrite (index-of Rdm) Rdm ws2)
 	       (if ws2
 		   (set (mem HI (and (add (join SI HI Rb Rs) imm12) #xFFFFFFFE)) Rdm)

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-06-01 22:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-29  1:46 xstormy16 cgen/sid patch DJ Delorie
2010-05-31 14:40 ` Dave Brolley
2010-06-01 22:07   ` 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).