Re: [PATCH V2] RISC-V: Fix PR109615

2023-05-05 Thread Kito Cheng via Gcc-patches
LGTM, committed to trunk with few changelog adjustments and few extra comments. On Fri, May 5, 2023 at 2:33 PM wrote: > > From: Juzhe-Zhong > > This patch is to fix following case: > void f (int8_t * restrict in, int8_t * restrict out, int n, int m, int cond) > { > size_t vl = 101; > if (co

[PATCH V2] RISC-V: Fix PR109615

2023-05-04 Thread juzhe . zhong
From: Juzhe-Zhong This patch is to fix following case: void f (int8_t * restrict in, int8_t * restrict out, int n, int m, int cond) { size_t vl = 101; if (cond) vl = m * 2; else vl = m * 2 * vl; for (size_t i = 0; i < n; i++) { vint8mf8_t v = __riscv_vle8_v_i8mf8 (in +