-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't put SSE2/AVX/AVX512 memmove/memset in ld.so
Since memmove and memset in ld.so don't use IFUNC, don't put SSE2, AVX and AVX512 memmove and memset in ld.so. * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S: Skip if not in libc. * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S: Likewise. * sysdeps/x86_64/multiarch/memset-avx2-unaligned-erms.S: Likewise. * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S: Likewise.
- Loading branch information
H.J. Lu
committed
Apr 3, 2016
1 parent
ea2785e
commit 5cd7af0
Showing
7 changed files
with
51 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
#define VEC_SIZE 32 | ||
#define VEC(i) ymm##i | ||
#define VMOVU vmovdqu | ||
#define VMOVA vmovdqa | ||
#if IS_IN (libc) | ||
# define VEC_SIZE 32 | ||
# define VEC(i) ymm##i | ||
# define VMOVU vmovdqu | ||
# define VMOVA vmovdqa | ||
|
||
#define SECTION(p) p##.avx | ||
#define MEMMOVE_SYMBOL(p,s) p##_avx_##s | ||
# define SECTION(p) p##.avx | ||
# define MEMMOVE_SYMBOL(p,s) p##_avx_##s | ||
|
||
#include "memmove-vec-unaligned-erms.S" | ||
# include "memmove-vec-unaligned-erms.S" | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
#define VEC_SIZE 16 | ||
#define VEC(i) xmm##i | ||
#define VMOVU movdqu | ||
#define VMOVA movdqa | ||
#if IS_IN (libc) | ||
# define VEC_SIZE 16 | ||
# define VEC(i) xmm##i | ||
# define VMOVU movdqu | ||
# define VMOVA movdqa | ||
|
||
#define SECTION(p) p | ||
#define MEMMOVE_SYMBOL(p,s) p##_sse2_##s | ||
# define SECTION(p) p | ||
# define MEMMOVE_SYMBOL(p,s) p##_sse2_##s | ||
|
||
#include "memmove-vec-unaligned-erms.S" | ||
# include "memmove-vec-unaligned-erms.S" | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,16 @@ | ||
#define VEC_SIZE 32 | ||
#define VEC(i) ymm##i | ||
#define VMOVU vmovdqu | ||
#define VMOVA vmovdqa | ||
#if IS_IN (libc) | ||
# define VEC_SIZE 32 | ||
# define VEC(i) ymm##i | ||
# define VMOVU vmovdqu | ||
# define VMOVA vmovdqa | ||
|
||
#define VDUP_TO_VEC0_AND_SET_RETURN(d, r) \ | ||
# define VDUP_TO_VEC0_AND_SET_RETURN(d, r) \ | ||
vmovd d, %xmm0; \ | ||
movq r, %rax; \ | ||
vpbroadcastb %xmm0, %ymm0 | ||
|
||
#define SECTION(p) p##.avx | ||
#define MEMSET_SYMBOL(p,s) p##_avx2_##s | ||
# define SECTION(p) p##.avx | ||
# define MEMSET_SYMBOL(p,s) p##_avx2_##s | ||
|
||
#include "memset-vec-unaligned-erms.S" | ||
# include "memset-vec-unaligned-erms.S" | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,18 @@ | ||
#define VEC_SIZE 16 | ||
#define VEC(i) xmm##i | ||
#define VMOVU movdqu | ||
#define VMOVA movdqa | ||
#if IS_IN (libc) | ||
# define VEC_SIZE 16 | ||
# define VEC(i) xmm##i | ||
# define VMOVU movdqu | ||
# define VMOVA movdqa | ||
|
||
#define VDUP_TO_VEC0_AND_SET_RETURN(d, r) \ | ||
# define VDUP_TO_VEC0_AND_SET_RETURN(d, r) \ | ||
movd d, %xmm0; \ | ||
movq r, %rax; \ | ||
punpcklbw %xmm0, %xmm0; \ | ||
punpcklwd %xmm0, %xmm0; \ | ||
pshufd $0, %xmm0, %xmm0 | ||
|
||
#define SECTION(p) p | ||
#define MEMSET_SYMBOL(p,s) p##_sse2_##s | ||
# define SECTION(p) p | ||
# define MEMSET_SYMBOL(p,s) p##_sse2_##s | ||
|
||
#include "memset-vec-unaligned-erms.S" | ||
# include "memset-vec-unaligned-erms.S" | ||
#endif |