diff options
author | Noah Goldstein <goldstein.w.n@gmail.com> | 2022-10-19 19:13:35 -0700 |
---|---|---|
committer | Noah Goldstein <goldstein.w.n@gmail.com> | 2022-10-20 11:29:05 -0700 |
commit | b6d02d64570e83bedfdb946cb1bdf0c9fd6d3eb0 (patch) | |
tree | 8c536a32d39962380bdcf282430018d2c0a7016b /sysdeps/x86_64/multiarch | |
parent | 5ce9766417782c1b57f239451d0400f1229e83f7 (diff) | |
download | glibc-b6d02d64570e83bedfdb946cb1bdf0c9fd6d3eb0.tar glibc-b6d02d64570e83bedfdb946cb1bdf0c9fd6d3eb0.tar.gz glibc-b6d02d64570e83bedfdb946cb1bdf0c9fd6d3eb0.tar.bz2 glibc-b6d02d64570e83bedfdb946cb1bdf0c9fd6d3eb0.zip |
x86: Use `testb` for case-locale check in str{n}casecmp-avx2
`testb` saves a bit of code size is the imm-operand can be encoded
1-bytes.
Tested on x86-64.
Diffstat (limited to 'sysdeps/x86_64/multiarch')
-rw-r--r-- | sysdeps/x86_64/multiarch/strcmp-avx2.S | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/x86_64/multiarch/strcmp-avx2.S b/sysdeps/x86_64/multiarch/strcmp-avx2.S index 4c01d664e8..a24f886a27 100644 --- a/sysdeps/x86_64/multiarch/strcmp-avx2.S +++ b/sysdeps/x86_64/multiarch/strcmp-avx2.S @@ -214,7 +214,7 @@ STRCMP: # else mov (%LOCALE_REG), %RAX_LP # endif - testl $1, LOCALE_DATA_VALUES + _NL_CTYPE_NONASCII_CASE * SIZEOF_VALUES(%rax) + testb $1, LOCALE_DATA_VALUES + _NL_CTYPE_NONASCII_CASE * SIZEOF_VALUES(%rax) jne STRCASECMP_L_NONASCII leaq _nl_C_LC_CTYPE_tolower + 128 * 4(%rip), TOLOWER_BASE # endif |