- 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:
Stanislav Sedov 2009-06-21 13:15:56 +00:00
parent b24516038c
commit c61860f8a6

View File

@ -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