src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
authorbernhardheld <bernhardheld@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Mon, 17 Mar 2003 21:36:54 +0000 (21:36 +0000)
committerbernhardheld <bernhardheld@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Mon, 17 Mar 2003 21:36:54 +0000 (21:36 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2398 4a8a32a2-be11-0410-ad9d-d568d2c75423

ChangeLog
src/ds390/peeph.def

index fb9d94a937c4876c9abd34bcb7452e7441fae807..851fcd62f365a1de682764b3d739d4ed478112d2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2003-03-17  Bernhard Held <bernhard@bernhardheld.de>
+
+       * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
+
 2003-03-16    <johan@balder>
 
        Undid the hackup of const and volatile, the problem is much bigger
index de8567cb1d3ea165ab18996cf96faf847c6a0dae..abf84ab6eff57ee341ab51f307b633a0af2137e9 100644 (file)
@@ -1675,14 +1675,24 @@ replace {
 
 replace {
        mov  %1,#(( %2 >> 8 ) ^ 0x80)
-} by { 
+} by {
+       ; Peephole 213.a inserted fix
        mov  %1,#(%2 >> 8)
        xrl  %1,#0x80
 } if portIsDS390
 
+replace {
+       mov  %1,#(( %2 >> 16 ) ^ 0x80)
+} by {
+       ; Peephole 213.b inserted fix
+       mov  %1,#(%2 >> 16)
+       xrl  %1,#0x80
+} if portIsDS390
+
 replace {
        mov  %1,#(( %2 + %3 >> 8 ) ^ 0x80)
 } by { 
+       ; Peephole 213.c inserted fix
        mov  %1,#((%2 + %3) >> 8)
        xrl  %1,#0x80
 } if portIsDS390