When enabling peephole rule 1 (replaces jp by jra), the regression test bug1057979 fails for stm8.
I currently do not know why, but I guess there is an issue with the jump range calculation, resulting in a replacement where it shouldn't happen. But this would also mean that there is another bug in the linker, where the linker does not issue an error message for an out-of-range jra.
I observed this issue in sdcc revision #8720.
Log in to post a comment.