aboutsummaryrefslogtreecommitdiff
path: root/string/test
diff options
context:
space:
mode:
authorGabor Kertesz <gabor.kertesz@arm.com>2020-04-08 10:55:23 +0100
committerSzabolcs Nagy <szabolcs.nagy@arm.com>2020-04-08 13:21:42 +0100
commit563b710ddc13810bd89fc17f057f4f7f8479e744 (patch)
tree11bd1fa189d8f1aeb0bdce57a531a3f5426716f6 /string/test
parent6d09ce9f98d067f7509dc89109ffa58aa56cb2dd (diff)
downloadarm-optimized-routines-563b710ddc13810bd89fc17f057f4f7f8479e744.tar.gz
ARMv8.5 MTE: Add MTE compatible version of strchrnul.
Reading outside the range of the string is only allowed within 16 byte aligned granules when MTE is enabled. This implementation is based on string/aarch64/strchr-mte.S and string/aarch64/strchrnul.S Testing done: optimized-routines/string/test/strchrnul.c Booted nanodroid with MTE enabled. bionic string tests with MTE enabled. Big endian with Qemu: qemu-aarch64_be
Diffstat (limited to 'string/test')
-rw-r--r--string/test/strchrnul.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/string/test/strchrnul.c b/string/test/strchrnul.c
index 814dd1e..4e3f681 100644
--- a/string/test/strchrnul.c
+++ b/string/test/strchrnul.c
@@ -23,6 +23,7 @@ static const struct fun
F(strchrnul)
#if __aarch64__
F(__strchrnul_aarch64)
+F(__strchrnul_aarch64_mte)
# if __ARM_FEATURE_SVE
F(__strchrnul_aarch64_sve)
# endif