tilegx: work around vector insn bug in gcc
commitf18b8dc7d7ef3f01804e241d40f92faf480264c0
authorChris Metcalf <cmetcalf@mellanox.com>
Tue, 5 Dec 2017 15:24:56 +0000 (5 10:24 -0500)
committerChris Metcalf <cmetcalf@mellanox.com>
Tue, 5 Dec 2017 15:24:56 +0000 (5 10:24 -0500)
treeafdff9b17e2e45a11f18d5ea87a22c6705949d73
parent446d22e91d3113be57a4b0d1151cf337458c3bec
tilegx: work around vector insn bug in gcc

Avoid an issue in gcc where some of the vector (aka SIMD) ops will
sometimes end up getting wrongly optimized out.  We use these
instructions in many of the string implementations.  If/when we
have an upstreamed fix for this problem in gcc we can conditionalize
the use of the extended assembly workaround in glibc.
ChangeLog
sysdeps/tile/tilegx/memchr.c
sysdeps/tile/tilegx/rawmemchr.c
sysdeps/tile/tilegx/strchr.c
sysdeps/tile/tilegx/strchrnul.c
sysdeps/tile/tilegx/string-endian.h
sysdeps/tile/tilegx/strlen.c
sysdeps/tile/tilegx/strnlen.c
sysdeps/tile/tilegx/strrchr.c
sysdeps/tile/tilegx/strstr.c