Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | x86: Fallback {str|wcs}cmp RTM in the ncmp overflow case [BZ #28896] | Noah Goldstein | 2022-02-18 | 1 | -1/+1 |
| | | | | | | | | | | | | | | In the overflow fallback strncmp-avx2-rtm and wcsncmp-avx2-rtm would call strcmp-avx2 and wcscmp-avx2 respectively. This would have not checks around vzeroupper and would trigger spurious aborts. This commit fixes that. test-strcmp, test-strncmp, test-wcscmp, and test-wcsncmp all pass on AVX2 machines with and without RTM. Co-authored-by: H.J. Lu <hjl.tools@gmail.com> (cherry picked from commit c6272098323153db373f2986c67786ea8c85f1cf) | ||||
* | x86-64: Add AVX optimized string/memory functions for RTM | H.J. Lu | 2022-01-27 | 1 | -0/+5 |
Since VZEROUPPER triggers RTM abort while VZEROALL won't, select AVX optimized string/memory functions with xtest jz 1f vzeroall ret 1: vzeroupper ret at function exit on processors with usable RTM, but without 256-bit EVEX instructions to avoid VZEROUPPER inside a transactionally executing RTM region. (cherry picked from commit 7ebba91361badf7531d4e75050627a88d424872f) |