From: sandeep Date: Tue, 18 Dec 2001 04:29:59 +0000 (+0000) Subject: Some peepholes cannot be done in tiniNative mode because "a390" is a STUPID assembler X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=62236e0dacefb0dd5fee0d659cac052f2f46e932;p=fw%2Fsdcc Some peepholes cannot be done in tiniNative mode because "a390" is a STUPID assembler git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1704 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/src/ds390/peeph.def b/src/ds390/peeph.def index c9175e39..ecea4564 100644 --- a/src/ds390/peeph.def +++ b/src/ds390/peeph.def @@ -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