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

2023-12-11 Thread Robin Dapp
> Yes, I test the patch with all below configurations and there is no failure > now. That would be great! Thank you! I posted it as a patch now: https://gcc.gnu.org/pipermail/gcc-patches/2023-December/640182.html Regards Robin

RE: [PATCH] RISC-V: Add vectorized strcmp.

2023-12-11 Thread Li, Pan2
: Monday, December 11, 2023 9:15 PM To: Li, Pan2 ; 钟居哲 ; gcc-patches ; palmer ; kito.cheng ; Jeff Law Cc: rdapp@gmail.com Subject: Re: [PATCH] RISC-V: Add vectorized strcmp. Hi Pan, > I reduced the SZ size from 10 to 1, and the below case with SZ = 2 > will fail. The failed location i

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

2023-12-11 Thread Robin Dapp
Hi Pan, > I reduced the SZ size from 10 to 1, and the below case with SZ = 2 > will fail. The failed location is "foo is 50, foo2 is 12800, i,j is > 1, 0". > > #define SZ 2 > > const char *s[SZ] = {"1", > "12345678901234567889012345678901234567890"}; Thanks. I still cannot reproduce but I thi

RE: [PATCH] RISC-V: Add vectorized strcmp.

2023-12-11 Thread Li, Pan2
; kito.cheng ; Jeff Law Cc: rdapp@gmail.com Subject: Re: [PATCH] RISC-V: Add vectorized strcmp. > FYI. I have the some failures as juzhe mentioned, with the emulator > qemu version qemu-riscv64 version 8.1.93 (v8.2.0-rc3). The entire log > may look like below: > > Executing on hos

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

2023-12-11 Thread Robin Dapp
> FYI. I have the some failures as juzhe mentioned, with the emulator > qemu version qemu-riscv64 version 8.1.93 (v8.2.0-rc3). The entire log > may look like below: > > Executing on host: > /home/box/panli/riscv-gnu-toolchain/build-gcc-newlib-stage2/gcc/xgcc > -B/home/box/panli/riscv-gnu-toolcha

RE: Re: [PATCH] RISC-V: Add vectorized strcmp.

2023-12-10 Thread Li, Pan2
4f' is deprecated. Please use 'zve64f' instead^M FAIL: gcc.target/riscv/rvv/autovec/builtin/strcmp-run.c execution test Pan From: 钟居哲 Sent: Saturday, December 9, 2023 10:18 PM To: rdapp.gcc ; gcc-patches ; palmer ; kito.cheng ; Jeff Law Cc: rdapp.gcc Subject: Re: Re: [PATCH]

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

2023-12-09 Thread 钟居哲
aw CC: rdapp.gcc Subject: Re: [PATCH] RISC-V: Add vectorized strcmp. > rv64gcv With -minline-strcmp I assume? Regards Robin

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

2023-12-09 Thread Robin Dapp
> rv64gcv With -minline-strcmp I assume? Regards Robin

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

2023-12-09 Thread 钟居哲
rv64gcv juzhe.zh...@rivai.ai From: Robin Dapp Date: 2023-12-09 21:51 To: 钟居哲; gcc-patches; palmer; kito.cheng; Jeff Law CC: rdapp.gcc Subject: Re: [PATCH] RISC-V: Add vectorized strcmp. > FAIL: gcc.target/riscv/rvv/autovec/builtin/strcmp-run.c execution test > FAIL: gcc.target/ris

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

2023-12-09 Thread Robin Dapp
> FAIL: gcc.target/riscv/rvv/autovec/builtin/strcmp-run.c execution test > FAIL: gcc.target/riscv/rvv/autovec/builtin/strcmp-run.c execution test > FAIL: gcc.target/riscv/rvv/autovec/builtin/strcmp-run.c execution test > FAIL: gcc.target/riscv/rvv/autovec/builtin/strcmp-run.c execution test > FAIL:

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

2023-12-08 Thread 钟居哲
/autovec/builtin/strcmp-run.c execution test FAIL: gcc.target/riscv/rvv/autovec/builtin/strcmp-run.c execution test juzhe.zh...@rivai.ai From: Robin Dapp Date: 2023-12-09 00:25 To: gcc-patches; palmer; kito.cheng; Jeff Law; 钟居哲 CC: rdapp.gcc Subject: Re: [PATCH] RISC-V: Add vectorized strcmp. Ah

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

2023-12-08 Thread Robin Dapp
Ah, I forgot to attach the current v2 that also enables strncmp. It was additionally tested with -minline-strncmp on rv64gcv. Regards Robin Subject: [PATCH v2] RISC-V: Add vectorized strcmp and strncmp. This patch adds vectorized strcmp and strncmp implementations and tests. Similar to strlen,

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

2023-12-08 Thread Robin Dapp
Similar to strlen, this now seems safe to push. Will do so later. I tested on rv64gcv_zvl128b with -minline-strlen and didn't see regressions. Regards Robin

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

2023-12-01 Thread 钟居哲
lgtm juzhe.zh...@rivai.ai From: Robin Dapp Date: 2023-12-01 23:23 To: gcc-patches; palmer; Kito Cheng; jeffreyalaw; juzhe.zh...@rivai.ai CC: rdapp.gcc Subject: [PATCH] RISC-V: Add vectorized strcmp. Hi, this patch adds a vectorized strcmp implementation and tests. Similar to strlen, expansi