diff options
| author | Andrew Turner <andrew@FreeBSD.org> | 2024-02-20 09:02:15 +0000 |
|---|---|---|
| committer | Andrew Turner <andrew@FreeBSD.org> | 2024-02-20 09:02:15 +0000 |
| commit | edc5c0de794f521eb620d2b6cbaee2434442a8f3 (patch) | |
| tree | 64dfc547c0b6398e9cf94bd8175b21db8a74c814 /string/aarch64/memset-mops.S | |
| parent | 29866ecb89620f1c798b7f5ff6710255f13aa52e (diff) | |
Update the Arm Optimized Routinesvendor/arm-optimized-routines/v24.01
Import the v24.01 release of the Arm Optimized Routines [1].
[1] https://github.com/ARM-software/optimized-routines/tree/v24.01
Sponsored by: Arm Ltd
Diffstat (limited to 'string/aarch64/memset-mops.S')
| -rw-r--r-- | string/aarch64/memset-mops.S | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/string/aarch64/memset-mops.S b/string/aarch64/memset-mops.S new file mode 100644 index 000000000000..ec791493bae9 --- /dev/null +++ b/string/aarch64/memset-mops.S @@ -0,0 +1,20 @@ +/* + * memset using MOPS extension. + * + * Copyright (c) 2023, Arm Limited. + * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception + */ + +#include "asmdefs.h" + +ENTRY (__memset_aarch64_mops) + PTR_ARG (0) + SIZE_ARG (2) + + mov x3, x0 + .inst 0x19c10443 /* setp [x3]!, x2!, x1 */ + .inst 0x19c14443 /* setm [x3]!, x2!, x1 */ + .inst 0x19c18443 /* sete [x3]!, x2!, x1 */ + ret + +END (__memset_aarch64_mops) |
