RE: [PATCH V2] RISC-V: Support const vector expansion with step vector with base != 0

2023-06-26 Thread Li, Pan2 via Gcc-patches
@gmail.com Subject: Re: [PATCH V2] RISC-V: Support const vector expansion with step vector with base != 0 On 6/26/23 17:36, juzhe.zhong wrote: > Yes. I found the “return” is redundant so I removed it. OK. Just wanted to be sure. OK for the trunk. jeff

Re: [PATCH V2] RISC-V: Support const vector expansion with step vector with base != 0

2023-06-26 Thread Jeff Law via Gcc-patches
On 6/26/23 17:36, juzhe.zhong wrote: Yes. I found the “return” is redundant so I removed it. OK. Just wanted to be sure. OK for the trunk. jeff

Re: [PATCH V2] RISC-V: Support const vector expansion with step vector with base != 0

2023-06-26 Thread Jeff Law via Gcc-patches
On 6/26/23 06:18, Juzhe-Zhong wrote: Currently, we are able to generate step vector with base == 0: { 0, 0, 2, 2, 4, 4, ... } ASM: vid vand However, we do wrong for step vector with base != 0: { 1, 1, 3, 3, 5, 5, ... } Before this patch, such case will run fail. After this patch, we are

Re: [PATCH V2] RISC-V: Support const vector expansion with step vector with base != 0

2023-06-26 Thread 钟居哲
Ping. This patch is a simple fix here. Ok for trunk ? juzhe.zh...@rivai.ai From: Juzhe-Zhong Date: 2023-06-26 20:18 To: gcc-patches CC: kito.cheng; kito.cheng; palmer; palmer; jeffreyalaw; rdapp.gcc; Juzhe-Zhong Subject: [PATCH V2] RISC-V: Support const vector expansion with step vector with

[PATCH V2] RISC-V: Support const vector expansion with step vector with base != 0

2023-06-26 Thread Juzhe-Zhong
Currently, we are able to generate step vector with base == 0: { 0, 0, 2, 2, 4, 4, ... } ASM: vid vand However, we do wrong for step vector with base != 0: { 1, 1, 3, 3, 5, 5, ... } Before this patch, such case will run fail. After this patch, we are able to pass the testcase and generate the