Looks there may be unnecessary due to  the release/gcc-13 has the code as is.

diff --git a/gcc/config/riscv/vector.md b/gcc/config/riscv/vector.md
index 15f66efaa48..cd696da5d89 100644
--- a/gcc/config/riscv/vector.md
+++ b/gcc/config/riscv/vector.md
@@ -388,7 +388,7 @@ (define_attr "avl_type" ""
             (symbol_ref "INTVAL (operands[7])"))

         (eq_attr "type" "vldux,vldox,vialu,vshift,viminmax,vimul,vidiv,vsalu,\
-                         viwalu,viwmul,vnshift,vimuladd,vaalu,vsmul,vsshift,\
+                         viwalu,viwmul,vnshift,vaalu,vsmul,vsshift,\
                          
vnclip,vicmp,vfalu,vfmul,vfminmax,vfdiv,vfwalu,vfwmul,\
                          vfsgnj,vfcmp,vfmuladd,vslideup,vslidedown,vislide1up,\
                          
vislide1down,vfslide1up,vfslide1down,vgather,viwmuladd,vfwmuladd,\

Pan

-----Original Message-----
From: Kito Cheng <[email protected]> 
Sent: Monday, May 29, 2023 6:35 PM
To: Li, Pan2 <[email protected]>
Cc: [email protected]; gcc-patches <[email protected]>; Kito.cheng 
<[email protected]>; palmer <[email protected]>; Robin Dapp 
<[email protected]>; jeffreyalaw <[email protected]>
Subject: Re: Re: [PATCH V2] RISC-V: Add RVV FMA auto-vectorization support

pushed the bug fixed part to gcc 13 branch

On Mon, May 29, 2023 at 12:52 PM Li, Pan2 via Gcc-patches 
<[email protected]> wrote:
>
> Committed with 2 patches, thanks Kito.
>
> Pan
>
> From: [email protected] <[email protected]>
> Sent: Monday, May 29, 2023 11:19 AM
> To: kito.cheng <[email protected]>
> Cc: gcc-patches <[email protected]>; Kito.cheng 
> <[email protected]>; palmer <[email protected]>; Robin Dapp 
> <[email protected]>; jeffreyalaw <[email protected]>; Li, Pan2 
> <[email protected]>
> Subject: Re: Re: [PATCH V2] RISC-V: Add RVV FMA auto-vectorization 
> support
>
> This is existing bug in GCC 13. I think I should split into 2 patches.
>
> ________________________________
> [email protected]<mailto:[email protected]>
>
> From: Kito Cheng<mailto:[email protected]>
> Date: 2023-05-29 11:17
> To: juzhe.zhong<mailto:[email protected]>
> CC: gcc-patches<mailto:[email protected]>; 
> kito.cheng<mailto:[email protected]>; 
> palmer<mailto:[email protected]>; 
> rdapp.gcc<mailto:[email protected]>; 
> jeffreyalaw<mailto:[email protected]>; 
> pan2.li<mailto:[email protected]>
> Subject: Re: [PATCH V2] RISC-V: Add RVV FMA auto-vectorization support 
> LGTM, but with one question.
>
> On Fri, May 26, 2023 at 7:36 PM 
> <[email protected]<mailto:[email protected]>> wrote:
> >
> > From: Juzhe-Zhong 
> > <[email protected]<mailto:[email protected]>>
> >
> > This patch support FMA auto-vectorization pattern.
> > 1. Let's RA decide vmacc or vmadd.
> > 2. Fix bug of vector.md which generate incorrect information to VSETVL
> >    PASS when testing ternop-3.c.
>
> Does this bug also appear in GCC 13? or this is new bug introduced at 
> trunk
>

Reply via email to