diff options
Diffstat (limited to 'string/aarch64/strcmp-sve.S')
-rw-r--r-- | string/aarch64/strcmp-sve.S | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/string/aarch64/strcmp-sve.S b/string/aarch64/strcmp-sve.S index dc5b769..e6d2da5 100644 --- a/string/aarch64/strcmp-sve.S +++ b/string/aarch64/strcmp-sve.S @@ -1,7 +1,7 @@ /* * __strcmp_aarch64_sve - compare two strings * - * Copyright (c) 2018, Arm Limited. + * Copyright (c) 2018-2021, Arm Limited. * SPDX-License-Identifier: MIT */ @@ -14,16 +14,15 @@ * SVE Available. */ - .arch armv8-a+sve - .text - -ENTRY_ALIGN (__strcmp_aarch64_sve, 4) +ENTRY (__strcmp_aarch64_sve) + PTR_ARG (0) + PTR_ARG (1) setffr /* initialize FFR */ ptrue p1.b, all /* all ones; loop invariant */ mov x2, 0 /* initialize offset */ - nop /* Read a vector's worth of bytes, stopping on first fault. */ + .p2align 4 0: ldff1b z0.b, p1/z, [x0, x2] ldff1b z1.b, p1/z, [x1, x2] rdffrs p0.b, p1/z |