Skip to content

Commit

Permalink
AArch64: Remove memset-reg.h
Browse files Browse the repository at this point in the history
Remove memset-reg.h by moving register definitions into the memset
implementations.

Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
  • Loading branch information
Wilco1 committed Sep 10, 2024
1 parent 89b088b commit 8ecb477
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 35 deletions.
30 changes: 0 additions & 30 deletions sysdeps/aarch64/memset-reg.h

This file was deleted.

1 change: 0 additions & 1 deletion sysdeps/aarch64/memset.S
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
*/

#define dstin x0
#define val x1
#define valw w1
#define count x2
#define dst x3
Expand Down
9 changes: 8 additions & 1 deletion sysdeps/aarch64/multiarch/memset_a64fx.S
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
<https://www.gnu.org/licenses/>. */

#include <sysdep.h>
#include <sysdeps/aarch64/memset-reg.h>

/* Assumptions:
*
Expand All @@ -36,6 +35,14 @@

.arch armv8.2-a+sve

#define dstin x0
#define valw w1
#define count x2
#define dst x3
#define dstend x4
#define tmp1 x5
#define tmp2 x6

.macro st1b_unroll first=0, last=7
st1b z0.b, p0, [dst, \first, mul vl]
.if \last-\first
Expand Down
8 changes: 7 additions & 1 deletion sysdeps/aarch64/multiarch/memset_emag.S
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,20 @@
<https://www.gnu.org/licenses/>. */

#include <sysdep.h>
#include "memset-reg.h"

/* Assumptions:
*
* ARMv8-a, AArch64, unaligned accesses
*
*/

#define dstin x0
#define val x1
#define valw w1
#define count x2
#define dst x3
#define dstend x4

ENTRY (__memset_emag)

PTR_ARG (0)
Expand Down
7 changes: 6 additions & 1 deletion sysdeps/aarch64/multiarch/memset_kunpeng.S
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,19 @@
<https://www.gnu.org/licenses/>. */

#include <sysdep.h>
#include <sysdeps/aarch64/memset-reg.h>

/* Assumptions:
*
* ARMv8-a, AArch64, unaligned accesses
*
*/

#define dstin x0
#define valw w1
#define count x2
#define dst x3
#define dstend x4

ENTRY (__memset_kunpeng)

PTR_ARG (0)
Expand Down
8 changes: 7 additions & 1 deletion sysdeps/aarch64/multiarch/memset_oryon1.S
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,18 @@
<https://www.gnu.org/licenses/>. */

#include <sysdep.h>
#include "memset-reg.h"

/* Assumptions:
ARMv8-a, AArch64, unaligned accesses
*/

#define dstin x0
#define val x1
#define valw w1
#define count x2
#define dst x3
#define dstend x4

ENTRY (__memset_oryon1)

PTR_ARG (0)
Expand Down

0 comments on commit 8ecb477

Please sign in to comment.