1 2010-10-25 Ulrich Drepper <drepper@redhat.com>
4 * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
5 into all bytes of SSE register.
6 Patch by Richard Li <richardpku@gmail.com>.
8 Index: glibc-2.12-2-gc4ccff1/string/Makefile
9 ===================================================================
10 --- glibc-2.12-2-gc4ccff1.orig/string/Makefile
11 +++ glibc-2.12-2-gc4ccff1/string/Makefile
12 @@ -55,7 +55,7 @@ tests := tester inl-tester noinl-tester
13 tst-strtok tst-strxfrm bug-strcoll1 tst-strfry \
14 bug-strtok1 $(addprefix test-,$(strop-tests)) \
15 bug-envz1 tst-strxfrm2 tst-endian tst-svc2 \
17 + bug-strstr1 bug-strchr1
18 distribute := memcopy.h pagecopy.h tst-svc.expect test-string.h \
21 Index: glibc-2.12-2-gc4ccff1/string/bug-strchr1.c
22 ===================================================================
24 +++ glibc-2.12-2-gc4ccff1/string/bug-strchr1.c
32 + char s[] __attribute__((aligned(16))) = "\xff";
33 + char *p = strchr (s, '\xfe');
38 +#define TEST_FUNCTION do_test ()
39 +#include "../test-skeleton.c"
40 Index: glibc-2.12-2-gc4ccff1/sysdeps/x86_64/multiarch/strchr.S
41 ===================================================================
42 --- glibc-2.12-2-gc4ccff1.orig/sysdeps/x86_64/multiarch/strchr.S
43 +++ glibc-2.12-2-gc4ccff1/sysdeps/x86_64/multiarch/strchr.S
44 @@ -87,13 +87,13 @@ __strchr_sse42:
53 /* Handle unaligned string. */