Sure. Sent it: https://gcc.gnu.org/pipermail/gcc-patches/2023-June/622836.html juzhe.zhong@rivai.ai From: Kito Cheng Date: 2023-06-26 17:10 To: Robin Dapp CC: Juzhe-Zhong; gcc-patches; kito.cheng; palmer; palmer; jeffreyalaw Subject: Re: [PATCH] RISC-V: Enhance RVV VLA SLP auto-vectorization Could you re-title this patch into something like "Support const vector expansion with xxx pattern", On Mon, Jun 26, 2023 at 3:52 PM Robin Dapp via Gcc-patches wrote: > > Hi Juzhe, > > > 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 step vector with asm: > > > > vid > > vand > > vadd > > Can't we use the first case as long as pow2_p (base) == true > and not just for base == 0? > > Regards > Robin >