about summary refs log tree commit diff
path: root/sysdeps/aarch64/multiarch/ifunc-impl-list.c
diff options
context:
space:
mode:
authorWilco Dijkstra <wdijkstr@arm.com>2022-10-26 14:12:55 +0100
committerWilco Dijkstra <wilco.dijkstra@arm.com>2024-04-09 17:34:30 +0100
commit88ff6835dad8af68b0032d143f32af81800791b5 (patch)
treecdfb7b02b911afeac0cf283bfcab66afbed4d6ee /sysdeps/aarch64/multiarch/ifunc-impl-list.c
parent41c34cc7c75fbf1ef7381c4d77070261e20fd938 (diff)
downloadglibc-88ff6835dad8af68b0032d143f32af81800791b5.tar.gz
glibc-88ff6835dad8af68b0032d143f32af81800791b5.tar.xz
glibc-88ff6835dad8af68b0032d143f32af81800791b5.zip
aarch64: Cleanup memset ifunc
Cleanup memset ifunc selectors. The A64FX memset relies on a ZVA size of
256, so add an explicit check.

(cherry picked from commit a8e72913fea0c6e2832c50523c60907ffa3b753b)
Diffstat (limited to 'sysdeps/aarch64/multiarch/ifunc-impl-list.c')
-rw-r--r--sysdeps/aarch64/multiarch/ifunc-impl-list.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/aarch64/multiarch/ifunc-impl-list.c b/sysdeps/aarch64/multiarch/ifunc-impl-list.c
index 8dd6de13d7..088aa34792 100644
--- a/sysdeps/aarch64/multiarch/ifunc-impl-list.c
+++ b/sysdeps/aarch64/multiarch/ifunc-impl-list.c
@@ -65,7 +65,7 @@ __libc_ifunc_impl_list (const char *name, struct libc_ifunc_impl *array,
 	      IFUNC_IMPL_ADD (array, i, memset, (zva_size == 64), __memset_emag)
 	      IFUNC_IMPL_ADD (array, i, memset, 1, __memset_kunpeng)
 #if HAVE_AARCH64_SVE_ASM
-	      IFUNC_IMPL_ADD (array, i, memset, sve, __memset_a64fx)
+	      IFUNC_IMPL_ADD (array, i, memset, sve && zva_size == 256, __memset_a64fx)
 #endif
 	      IFUNC_IMPL_ADD (array, i, memset, 1, __memset_generic))
   IFUNC_IMPL (i, name, memchr,