Contents of /trunk/glibc/patches/glibc-2.15-strcasecmp-disable-avx.patch
Parent Directory | Revision Log
Revision 1806 -
(show annotations)
(download)
Tue Jun 12 12:33:27 2012 UTC (12 years, 3 months ago) by niro
File size: 1344 byte(s)
Tue Jun 12 12:33:27 2012 UTC (12 years, 3 months ago) by niro
File size: 1344 byte(s)
-added patches for 2.15-r1
1 | diff --git a/sysdeps/x86_64/multiarch/strcmp.S b/sysdeps/x86_64/multiarch/strcmp.S |
2 | index f93c83d..d8aa889 100644 |
3 | --- a/sysdeps/x86_64/multiarch/strcmp.S |
4 | +++ b/sysdeps/x86_64/multiarch/strcmp.S |
5 | @@ -105,11 +105,6 @@ ENTRY(__strcasecmp) |
6 | jne 1f |
7 | call __init_cpu_features |
8 | 1: |
9 | -# ifdef HAVE_AVX_SUPPORT |
10 | - leaq __strcasecmp_avx(%rip), %rax |
11 | - testl $bit_AVX, __cpu_features+CPUID_OFFSET+index_AVX(%rip) |
12 | - jnz 2f |
13 | -# endif |
14 | leaq __strcasecmp_sse42(%rip), %rax |
15 | testl $bit_SSE4_2, __cpu_features+CPUID_OFFSET+index_SSE4_2(%rip) |
16 | jnz 2f |
17 | @@ -128,11 +123,6 @@ ENTRY(__strncasecmp) |
18 | jne 1f |
19 | call __init_cpu_features |
20 | 1: |
21 | -# ifdef HAVE_AVX_SUPPORT |
22 | - leaq __strncasecmp_avx(%rip), %rax |
23 | - testl $bit_AVX, __cpu_features+CPUID_OFFSET+index_AVX(%rip) |
24 | - jnz 2f |
25 | -# endif |
26 | leaq __strncasecmp_sse42(%rip), %rax |
27 | testl $bit_SSE4_2, __cpu_features+CPUID_OFFSET+index_SSE4_2(%rip) |
28 | jnz 2f |
29 | @@ -152,19 +142,6 @@ weak_alias (__strncasecmp, strncasecmp) |
30 | # include "strcmp-sse42.S" |
31 | |
32 | |
33 | -# ifdef HAVE_AVX_SUPPORT |
34 | -# if defined USE_AS_STRCASECMP_L || defined USE_AS_STRNCASECMP_L |
35 | -# define LABEL(l) .L##l##_avx |
36 | -# define GLABEL(l) l##_avx |
37 | -# define USE_AVX 1 |
38 | -# undef STRCMP_SSE42 |
39 | -# define STRCMP_SSE42 STRCMP_AVX |
40 | -# define SECTION avx |
41 | -# include "strcmp-sse42.S" |
42 | -# endif |
43 | -# endif |
44 | - |
45 | - |
46 | # undef ENTRY |
47 | # define ENTRY(name) \ |
48 | .type STRCMP_SSE2, @function; \ |