aboutsummaryrefslogtreecommitdiff
path: root/string/aarch64/strncmp-sve.S
diff options
context:
space:
mode:
authorTamas Zsoldos <tamas.zsoldos@arm.com>2020-04-28 17:13:10 +0100
committerSzabolcs Nagy <szabolcs.nagy@arm.com>2020-04-30 12:56:32 +0100
commit232e3c08c9eb9aba822510bae57f920351b1eb40 (patch)
tree0e8f16b233e9e477c3bf53ae711df81e03cd9c67 /string/aarch64/strncmp-sve.S
parentbfaeb591c6c20cf83d0f64e0c63bfc253713e4e0 (diff)
downloadarm-optimized-routines-232e3c08c9eb9aba822510bae57f920351b1eb40.tar.gz
string: ARMv8.5 BTI: Add BTI support to assembly files.
This change addds the landing pads to the start of functions implemented in assembly, by adding it to the ENTRY macro. To avoid skipping it when using an alias, every ENTRY_ALIAS use must precede the corresponding ENTRY. Furthermore, the GNU property note is added to the assembly files. Since none of the functions save LR to stack, both BTI and PAC support are indicated. Paddings before __strncmp_aarch64 and __strnlen_aarch64 were adjusted.
Diffstat (limited to 'string/aarch64/strncmp-sve.S')
-rw-r--r--string/aarch64/strncmp-sve.S12
1 files changed, 7 insertions, 5 deletions
diff --git a/string/aarch64/strncmp-sve.S b/string/aarch64/strncmp-sve.S
index c4ec813..c8fbf32 100644
--- a/string/aarch64/strncmp-sve.S
+++ b/string/aarch64/strncmp-sve.S
@@ -5,6 +5,8 @@
* SPDX-License-Identifier: MIT
*/
+#include "../asmdefs.h"
+
#if __ARM_FEATURE_SVE
/* Assumptions:
*
@@ -15,10 +17,7 @@
.arch armv8-a+sve
.text
- .globl __strncmp_aarch64_sve
- .type __strncmp_aarch64_sve, %function
- .p2align 4
-__strncmp_aarch64_sve:
+ENTRY_ALIGN (__strncmp_aarch64_sve, 4)
setffr /* initialize FFR */
mov x3, 0 /* initialize off */
@@ -64,5 +63,8 @@ __strncmp_aarch64_sve:
9: mov x0, 0 /* return equal */
ret
- .size __strncmp_aarch64_sve, . - __strncmp_aarch64_sve
+END (__strncmp_aarch64_sve)
+
#endif
+
+END_FILE