public inbox for sid@sourceware.org
 help / color / mirror / Atom feed
From: DJ Delorie <dj@redhat.com>
To: sid@sourceware.org, cgen@sourceware.org
Subject: xstormy16 cgen/sid patch
Date: Sat, 29 May 2010 01:46:00 -0000	[thread overview]
Message-ID: <201005290146.o4T1k6fm026225@greed.delorie.com> (raw)


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

             reply	other threads:[~2010-05-29  1:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-29  1:46 DJ Delorie [this message]
2010-05-31 14:40 ` Dave Brolley
2010-06-01 22:07   ` DJ Delorie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201005290146.o4T1k6fm026225@greed.delorie.com \
    --to=dj@redhat.com \
    --cc=cgen@sourceware.org \
    --cc=sid@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).