diff options
author | Christoph Müllner <christoph.muellner@vrull.eu> | 2023-08-23 07:46:28 +0200 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2023-09-06 09:27:43 -0300 |
commit | 3d6fcf1bd7f462d333c36a14efc0e03f2fdd3f9e (patch) | |
tree | 773c257487ce30d630043e9a30f1894c15f1f65b /sysdeps/unix | |
parent | 3bf7bab88b0da01d4f5ef20afbbb45203185501e (diff) | |
download | glibc-3d6fcf1bd7f462d333c36a14efc0e03f2fdd3f9e.zip glibc-3d6fcf1bd7f462d333c36a14efc0e03f2fdd3f9e.tar.gz glibc-3d6fcf1bd7f462d333c36a14efc0e03f2fdd3f9e.tar.bz2 |
riscv: Add support for XTheadBb in string-fz[a,i].h
XTheadBb has similar instructions like Zbb, which allow optimized
string processing:
* th.ff0: find-first zero is a CLZ instruction.
* th.tstnbz: Similar like orc.b, but with a bit-inverted result.
The instructions are documented here:
https://github.com/T-head-Semi/thead-extension-spec/tree/master/xtheadbb
These instructions can be found in the T-Head C906 and the C910.
Tested with the string tests.
Signed-off-by: Christoph Müllner <christoph.muellner@vrull.eu>
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'sysdeps/unix')
0 files changed, 0 insertions, 0 deletions