From d6cac3e1da1a117f8a93b91371f3f0a5c071219f Mon Sep 17 00:00:00 2001 From: Richard Earnshaw Date: Fri, 21 Jul 2017 11:22:25 +0100 Subject: [PATCH] [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. --- newlib/libc/machine/arm/strcpy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/newlib/libc/machine/arm/strcpy.c b/newlib/libc/machine/arm/strcpy.c index 154451110..111528e0f 100644 --- a/newlib/libc/machine/arm/strcpy.c +++ b/newlib/libc/machine/arm/strcpy.c @@ -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"