about summary refs log tree commit diff
path: root/sysdeps/x86_64/multiarch/strncpy-evex.S
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2021-03-05 06:36:50 -0800
committerH.J. Lu <hjl.tools@gmail.com>2021-03-29 07:40:17 -0700
commit525bc2a32c9710df40371f951217c6ae7a923aee (patch)
treeefd1cd7acf189386bf9223678ccea60de70bc93b /sysdeps/x86_64/multiarch/strncpy-evex.S
parent1fd8c163a83d96ace1ff78fa6bac7aee084f6f77 (diff)
downloadglibc-525bc2a32c9710df40371f951217c6ae7a923aee.tar.gz
glibc-525bc2a32c9710df40371f951217c6ae7a923aee.tar.xz
glibc-525bc2a32c9710df40371f951217c6ae7a923aee.zip
x86-64: Add strcpy family functions with 256-bit EVEX
Update ifunc-strcpy.h to select the function optimized with 256-bit EVEX
instructions using YMM16-YMM31 registers to avoid RTM abort with usable
AVX512VL and AVX512BW since VZEROUPPER isn't needed at function exit.
Diffstat (limited to 'sysdeps/x86_64/multiarch/strncpy-evex.S')
-rw-r--r--sysdeps/x86_64/multiarch/strncpy-evex.S3
1 files changed, 3 insertions, 0 deletions
diff --git a/sysdeps/x86_64/multiarch/strncpy-evex.S b/sysdeps/x86_64/multiarch/strncpy-evex.S
new file mode 100644
index 0000000000..40e391f0da
--- /dev/null
+++ b/sysdeps/x86_64/multiarch/strncpy-evex.S
@@ -0,0 +1,3 @@
+#define USE_AS_STRNCPY
+#define STRCPY __strncpy_evex
+#include "strcpy-evex.S"