On 2024-11-20 14:54 钟居哲 <juzhe.zh...@rivai.ai> wrote:
>
>Are you trying to fix this PR ?
Yes.
>117669 – RISC-V:The 'VEEWTRUNC4' iterator 'RVVMF2BF' type condition error
>
>I think you should add PR target/117669 in the changelog
>
OK.
>
>
>
>juzhe.zh...@rivai.ai
>
>From: Feng Wang
>Date: 2024-11-20 14:50
>To: gcc-patches
>CC: kito.cheng; jeffreyalaw; juzhe.zhong; Feng Wang
>Subject: [PATCH] RISC-V:Fix wrong condition for vector-bfloat16
>This patch fix the wrong condition for RVVMF2BF. It should be
>TARGET_VECTOR_ELEN_BF_16.
>gcc/ChangeLog:
>
>* config/riscv/vector-iterators.md: Modify condition.
>
>Signed-off-by: Feng Wang <wangf...@eswincomputing.com>
>---
>gcc/config/riscv/vector-iterators.md | 2 +-
>1 file changed, 1 insertion(+), 1 deletion(-)
>
>diff --git a/gcc/config/riscv/vector-iterators.md
>b/gcc/config/riscv/vector-iterators.md
>index 6a621459cc4..92cb651ce49 100644
>--- a/gcc/config/riscv/vector-iterators.md
>+++ b/gcc/config/riscv/vector-iterators.md
>@@ -365,7 +365,7 @@
> (RVVM2BF "TARGET_VECTOR_ELEN_BF_16")
> (RVVM1BF "TARGET_VECTOR_ELEN_BF_16")
>- (RVVMF2BF "TARGET_VECTOR_ELEN_FP_16")
>+ (RVVMF2BF "TARGET_VECTOR_ELEN_BF_16")
> (RVVMF4BF "TARGET_VECTOR_ELEN_BF_16 && TARGET_MIN_VLEN > 32 &&
>TARGET_64BIT")
> (RVVM2HF "TARGET_VECTOR_ELEN_FP_16 && TARGET_64BIT")
>--
>2.17.1
>
>