From: SourceForge.net <no...@so...> - 2004-04-20 05:17:44
|
Bugs item #937126, was opened at 2004-04-17 18:08 Message generated for change (Comment added) made by epetrich You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=937126&group_id=599 Category: z80 port >Group: fixed >Status: Closed >Resolution: Fixed Priority: 5 Submitted By: Nobody/Anonymous (nobody) >Assigned to: Erik Petrich (epetrich) Summary: z80 peephole opts may break carry Initial Comment: Running attached user written peephole opt reducing memory access in the code causes another in-built peephole opt (z80 improved usage of inc) to be triggered breaking later code depending on carry flag. Looking at the in-built peephole opts, another opt (z80 improved usage of dec) may also trigger the same invalid behavior. The problem can be workarounded by changing the command order in the user peephole but this problem can reappear later on. Attached is a text file containing listing of original z80 code, the user peephole used and the resulting invalid code. SDCC : mcs51/gbz80/z80/avr/ds390/pic16/pic14/TININative/xa51/ds400/hc08 2.4.0 (Feb 23 2004) (MINGW32) ---------------------------------------------------------------------- >Comment By: Erik Petrich (epetrich) Date: 2004-04-20 00:17 Message: Logged In: YES user_id=635249 Fixed in src/z80/peeph-z80.def 1.8 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=937126&group_id=599 |