Commit 72b28f6
[PATCH] rx: allow cmpstrnsi len to be zero
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.
gcc/
* config/rx/rx.md (rx_cmpstrn): Correctly handle len=0 case.1 parent 9bd0f11 commit 72b28f6
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2590 | 2590 | | |
2591 | 2591 | | |
2592 | 2592 | | |
2593 | | - | |
| 2593 | + | |
| 2594 | + | |
| 2595 | + | |
2594 | 2596 | | |
2595 | 2597 | | |
2596 | 2598 | | |
| |||
0 commit comments