- Eliminate extra subcs instruction. I have not noticed before that we
always perform substraction now, so no instruction could be rordered to eliminate the conditional substraction.
This commit is contained in:
parent
b24516038c
commit
c61860f8a6
@ -40,10 +40,9 @@ ENTRY(strncmp)
|
||||
|
||||
/* ip == last src address to compare */
|
||||
adds ip, r0, r2
|
||||
sub ip, ip, #1
|
||||
/* Use last possible address on overflow. */
|
||||
movcs ip, #0
|
||||
subcs ip, ip, #1
|
||||
sub ip, ip, #1
|
||||
1:
|
||||
ldrb r2, [r0], #1
|
||||
ldrb r3, [r1], #1
|
||||
|
Loading…
Reference in New Issue
Block a user