Skip to content

x86: Improve memset-vec-unaligned-erms.S

No bug. This commit makes a few small improvements to memset-vec-unaligned-erms.S. The changes are 1) only aligning to 64 instead of 128. Either alignment will perform equally well in a loop and 128 just increases the odds of having to do an extra iteration which can be significant overhead for small values. 2) Align some targets and the loop. 3) Remove an ALU from the alignment process. 4) Reorder the last 4x VEC so that they are stored after the loop. 5) Move the condition for leq 8x VEC to before the alignment process. test-memset and test-wmemset are both passing.

Signed-off-by: Noah Goldstein goldstein.w.n@gmail.com Reviewed-by: H.J. Lu hjl.tools@gmail.com (cherry picked from commit 6abf2798)

Merge request reports