RE: [PATCH v1] RISC-V: Refactor ZVFHMIN to separated iterator and pattern

2023-06-06 Thread Li, Pan2 via Gcc-patches
; Wang, Yanzhang Subject: RE: [PATCH v1] RISC-V: Refactor ZVFHMIN to separated iterator and pattern Update the PATCH V2 as below. https://gcc.gnu.org/pipermail/gcc-patches/2023-June/620787.html Pan From: Li, Pan2 Sent: Tuesday, June 6, 2023 10:34 PM To: 钟居哲 ; gcc-patches Cc: kito.cheng ; Wang

RE: [PATCH v1] RISC-V: Refactor ZVFHMIN to separated iterator and pattern

2023-06-06 Thread Li, Pan2 via Gcc-patches
Update the PATCH V2 as below. https://gcc.gnu.org/pipermail/gcc-patches/2023-June/620787.html Pan From: Li, Pan2 Sent: Tuesday, June 6, 2023 10:34 PM To: 钟居哲 ; gcc-patches Cc: kito.cheng ; Wang, Yanzhang Subject: RE: [PATCH v1] RISC-V: Refactor ZVFHMIN to separated iterator and pattern IMO

RE: [PATCH v1] RISC-V: Refactor ZVFHMIN to separated iterator and pattern

2023-06-06 Thread Li, Pan2 via Gcc-patches
; Wang, Yanzhang Subject: Re: [PATCH v1] RISC-V: Refactor ZVFHMIN to separated iterator and pattern +(define_mode_iterator V_ZVFHMIN_SF [ + (VNx1SF "TARGET_VECTOR_ELEN_FP_32 && (TARGET_ZVFH || TARGET_ZVFHMIN) && TARGET_MIN_VLEN < 128") + (VNx2SF "TARGET

Re: [PATCH v1] RISC-V: Refactor ZVFHMIN to separated iterator and pattern

2023-06-06 Thread 钟居哲
"TARGET_VECTOR_ELEN_FP_32 && (TARGET_ZVFH || TARGET_ZVFHMIN) && TARGET_MIN_VLEN >= 128") +]) why not just use "TARGET_VECTOR_ELEN_FP_16" instead of TARGET_ZVFH || TARGET_ZVFHMIN ? juzhe.zh...@rivai.ai From: pan2.li Date: 2023-06-06 20:36 To: gcc-patches CC: juzhe.zh

[PATCH v1] RISC-V: Refactor ZVFHMIN to separated iterator and pattern

2023-06-06 Thread Pan Li via Gcc-patches
From: Pan Li This patch would like to refactor the ZVFHMIN implementation by separated iterator and pattern. Thus, we can tell the sub extension between the ZVFHMIN and ZVFH. Please note the ZVFH will cover the ZVFHMIN instructions. This patch add one test for this. Signed-off-by: Pan Li gcc/