[PATCH] RISC-V: Add vectorized strlen.

2023-12-01 Thread Robin Dapp
Hi, this patch implements a vectorized strlen by re-using and slightly adjusting the rawmemchr implementation. Rawmemchr returns the address of the needle while strlen returns the difference between needle address and start address. As before, strlen expansion is guarded by -minline-strlen. Whi

Re: [PATCH] RISC-V: Add vectorized strlen.

2023-12-01 Thread 钟居哲
LGTM. juzhe.zh...@rivai.ai From: Robin Dapp Date: 2023-12-01 23:21 To: gcc-patches; palmer; Kito Cheng; jeffreyalaw; juzhe.zh...@rivai.ai CC: rdapp.gcc Subject: [PATCH] RISC-V: Add vectorized strlen. Hi, this patch implements a vectorized strlen by re-using and slightly adjusting the

Re: [PATCH] RISC-V: Add vectorized strlen.

2023-12-08 Thread Robin Dapp
After Juzhe's vsetvl fix earlier this week this seems safe to push. Going to do so later. I tested on rv64gcv_zvl128b with -minline-strlen and didn't see regressions apart from zbb-strlen-disabled-2.c which will always fail with -minline-strlen because it expects -mno-inline-strlen. Regards Robi