Re: Re: [PATCH] riscv: Allow vector constants in riscv_const_insns.

2023-05-06 Thread 钟居哲
; kito.cheng; Kito.cheng; palmer; collison Subject: Re: [PATCH] riscv: Allow vector constants in riscv_const_insns. On 5/3/23 23:07, juzhe.zh...@rivai.ai wrote: > This ideal of this patch looks good to me. > But I think this patch should be able to handle more cases (not only -16 > ~ 15

Re: [PATCH] riscv: Allow vector constants in riscv_const_insns.

2023-05-06 Thread Jeff Law via Gcc-patches
On 5/3/23 23:07, juzhe.zh...@rivai.ai wrote: This ideal of this patch looks good to me. But I think this patch should be able to handle more cases (not only -16 ~ 15) in case of CONST_VECTOR initialization. Case 1 (Other constant value that is not -16 ~ 15): void vmv_m##VAL (TYPE dst[], int

Re: [PATCH] riscv: Allow vector constants in riscv_const_insns.

2023-05-03 Thread juzhe.zh...@rivai.ai
atch more? Thanks. juzhe.zh...@rivai.ai From: Robin Dapp Date: 2023-04-29 00:10 To: gcc-patches; Kito Cheng; Kito.cheng; palmer; juzhe.zh...@rivai.ai; Michael Collison; jeffreyalaw Subject: [PATCH] riscv: Allow vector constants in riscv_const_insns. Hi, I figured I'm going to start sendin

Re: [PATCH] riscv: Allow vector constants in riscv_const_insns.

2023-04-28 Thread Jeff Law via Gcc-patches
On 4/28/23 10:10, Robin Dapp wrote: Hi, I figured I'm going to start sending some patches that build on top of the upcoming RISC-V autovectorization. This one is obviously not supposed to be installed before the basic support lands but it's small enough that it shouldn't hurt to send it now.

[PATCH] riscv: Allow vector constants in riscv_const_insns.

2023-04-28 Thread Robin Dapp via Gcc-patches
Hi, I figured I'm going to start sending some patches that build on top of the upcoming RISC-V autovectorization. This one is obviously not supposed to be installed before the basic support lands but it's small enough that it shouldn't hurt to send it now. This patch allows vector constants in r