[PATCH, AArch64]: Fix register allocation in strchrnul.S
Richard Earnshaw
rearnsha@arm.com
Wed Dec 10 09:37:00 GMT 2014
Ooop! I accidentally used a callee-saved register in the implementation
of strchrnul for AArch64. Fortunately, the fix is trivial:
2014-12-10 Richard Earnshaw <rearnsha@arm.com>
* libc/machine/aarch64/strchrnul.S (vrepmask): Use a call-clobbered
register.
Committed.
R.
-------------- next part --------------
Index: strchrnul.S
===================================================================
RCS file: /cvs/src/src/newlib/libc/machine/aarch64/strchrnul.S,v
retrieving revision 1.1
diff -u -p -r1.1 strchrnul.S
--- strchrnul.S 11 Jun 2014 10:42:54 -0000 1.1
+++ strchrnul.S 10 Dec 2014 09:21:54 -0000
@@ -55,7 +55,7 @@
#define vhas_nul2 v4
#define vhas_chr1 v5
#define vhas_chr2 v6
-#define vrepmask v15
+#define vrepmask v7
#define vend1 v16
/* Core algorithm.
More information about the Newlib
mailing list