Some peepholes cannot be done in tiniNative mode because "a390" is a STUPID assembler
authorsandeep <sandeep@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Tue, 18 Dec 2001 04:29:59 +0000 (04:29 +0000)
committersandeep <sandeep@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Tue, 18 Dec 2001 04:29:59 +0000 (04:29 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1704 4a8a32a2-be11-0410-ad9d-d568d2c75423

src/ds390/peeph.def

index c9175e3984de372f6668120e5afd599f504d7ec7..ecea4564af44cc66a7935ad6371196ac52e514b9 100644 (file)
@@ -1077,7 +1077,7 @@ replace {
 } by {
         ; Peephole 182a   used 24 bit load of dptr
         mov  dptr,#((%3 << 16) + (%2 << 8) + %1)
-} if 24bitMode
+} if 24bitModeAndPortDS390
 
 // saving 3 byte, 2 cycles, return(float_constant) profits here
 replace {
@@ -1654,14 +1654,14 @@ replace {
 } by { 
        mov  %1,#(%2 >> 8)
        xrl  %1,#0x80
-}
+} if portIsDS390
 
 replace {
        mov  %1,#(( %2 + %3 >> 8 ) ^ 0x80)
 } by { 
        mov  %1,#((%2 + %3) >> 8)
        xrl  %1,#0x80
-}
+} if portIsDS390
 
 replace  {
        mov  %1,a