On Wed, Sep 6, 2023 at 1:39 PM Adhemerval Zanella Netto < adhemerval.zanella@linaro.org> wrote: > > > On 06/09/23 07:34, Christoph Müllner wrote: > > > > > > On Thu, Aug 24, 2023 at 7:21 PM Adhemerval Zanella Netto < > adhemerval.zanella@linaro.org > > wrote: > > > > > > > > On 23/08/23 02:46, Christoph Muellner wrote: > > > From: Christoph Müllner christoph.muellner@vrull.eu>> > > > > > > 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 < > 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 > > > > > > > LGTM, thanks. Is th.tstnbz available as builtin by chance? > > > > Reviewed-by: Adhemerval Zanella > > > > > > > Someone to actually push it, since it is already reviewed. I will install > it. > Thanks!