about summary refs log tree commit diff
path: root/gnulib
diff options
context:
space:
mode:
authorNoah Goldstein <goldstein.w.n@gmail.com>2021-10-23 01:26:47 -0400
committerNoah Goldstein <goldstein.w.n@gmail.com>2021-10-23 13:02:42 -0500
commitbad852b61b79503fcb3c5fc379c70f768df3e1fb (patch)
tree3b37966225e1c354d49314058c513bed713883c3 /gnulib
parentd8e7d0638153d27c5982619c881223bd791e844e (diff)
downloadglibc-bad852b61b79503fcb3c5fc379c70f768df3e1fb.tar.gz
glibc-bad852b61b79503fcb3c5fc379c70f768df3e1fb.tar.xz
glibc-bad852b61b79503fcb3c5fc379c70f768df3e1fb.zip
x86: Replace sse2 instructions with avx in memcmp-evex-movbe.S
This commit replaces two usages of SSE2 'movups' with AVX 'vmovdqu'.

it could potentially be dangerous to use SSE2 if this function is ever
called without using 'vzeroupper' beforehand. While compilers appear
to use 'vzeroupper' before function calls if AVX2 has been used, using
SSE2 here is more brittle. Since it is not absolutely necessary it
should be avoided.

It costs 2-extra bytes but the extra bytes should only eat into
alignment padding.
Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
Diffstat (limited to 'gnulib')
0 files changed, 0 insertions, 0 deletions