Re: Re: [PATCH v8] RISC-V: Refactor requirement of ZVFH and ZVFHMIN.

2023-06-08 Thread Kito Cheng via Gcc-patches
a try for this approach. > > Pan > > From: juzhe.zh...@rivai.ai > Sent: Thursday, June 8, 2023 4:32 PM > To: kito.cheng > Cc: Li, Pan2 ; gcc-patches ; > Robin Dapp ; jeffreyalaw ; Wang, > Yanzhang > Subject: Re: Re: [PATCH v8] RISC-V: Refactor requirement of ZVFH and

RE: Re: [PATCH v8] RISC-V: Refactor requirement of ZVFH and ZVFHMIN.

2023-06-08 Thread Li, Pan2 via Gcc-patches
, Yanzhang Subject: Re: Re: [PATCH v8] RISC-V: Refactor requirement of ZVFH and ZVFHMIN. I have an idea base on what Kito said. We enable vfadd FP16 for TARGET_ZVFH. But we don't need to add TARGET_VECTOR && for each instruction. We can reference riscv.md: (define_attr "ext_enabled"

Re: Re: [PATCH v8] RISC-V: Refactor requirement of ZVFH and ZVFHMIN.

2023-06-08 Thread juzhe.zh...@rivai.ai
uot;type" "vfalu") (and eq_attr "mode" "VNx1HF") (match_test "!TARGET_ZVFH"))) (const_string "no") ] (const_string "yes"))) I think you can do experiment with this to see whether it can disable MD pattern. juzhe

Re: Re: [PATCH v8] RISC-V: Refactor requirement of ZVFH and ZVFHMIN.

2023-06-08 Thread juzhe.zh...@rivai.ai
Oh. Good suggestion. It's much better than my solution I think. juzhe.zh...@rivai.ai From: Kito Cheng Date: 2023-06-08 15:58 To: juzhe.zh...@rivai.ai CC: pan2.li; gcc-patches; Robin Dapp; jeffreyalaw; yanzhang.wang Subject: Re: [PATCH v8] RISC-V: Refactor requirement of ZVFH and ZVFHMIN. I