[arm] Fix strcpy for unified syntax on ARMv4t thumb.

ARMv4t does not support mov between two low registers.  Now we use
unified syntax mov instructions need converting to movs.
This commit is contained in:
Richard Earnshaw 2017-07-21 11:22:25 +01:00
parent cd26662dc5
commit d6cac3e1da
1 changed files with 1 additions and 1 deletions

View File

@ -160,7 +160,7 @@ strcpy (char* dst, const char* src)
"bne 1b\n\t"
"bx lr\n\t"
#else
"mov r3, r0\n\t"
"movs r3, r0\n\t"
"1:\n\t"
"ldrb r2, [r1]\n\t"
"adds r1, #1\n\t"