This is the mail archive of the
cgen@sourceware.org
mailing list for the CGEN project.
xstormy16 cgen/sid patch
- From: DJ Delorie <dj at redhat dot com>
- To: sid at sourceware dot org, cgen at sourceware dot org
- Date: Fri, 28 May 2010 21:46:06 -0400
- Subject: xstormy16 cgen/sid patch
[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)