Fix avx2 strncmp offset compare condition check [BZ #25933]
authorSunil K Pandey <skpgkp1@gmail.com>
Fri, 12 Jun 2020 15:57:16 +0000 (08:57 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 17 Jun 2020 14:07:38 +0000 (07:07 -0700)
commit75870237ff3bb363447b03f4b0af100227570910
treeeed2d178cbae830002110df6152d1471acc73745
parent7a508406dfbf9121daeef2a32a3a41c7be7e5add
Fix avx2 strncmp offset compare condition check [BZ #25933]

strcmp-avx2.S: In avx2 strncmp function, strings are compared in
chunks of 4 vector size(i.e. 32x4=128 byte for avx2). After first 4
vector size comparison, code must check whether it already passed
the given offset. This patch implement avx2 offset check condition
for strncmp function, if both string compare same for first 4 vector
size.
sysdeps/x86_64/multiarch/strcmp-avx2.S