On 2/15/25 3:31 AM, Keith Packard wrote:
The SCMPU instruction doesn't change the C and Z flags when the
incoming length is zero, which means the insn will produce a
value based upon the existing flag values.

As a quick kludge, adjust these flags to ensure a zero result in this
case.
It's as reasonable as other methods such as turning it into a define_expand and emitting a conditional branch around the sequence when the count is zero.

Pushed to the trunk. It's not a regression, but it is a code correctness issue..

Thanks!

jeff


Reply via email to