[clang] [llvm] [RISCV] Support bf16 vmv.v.v and vmerge.vvm intrinsics with `zvfbfmin` (PR #101611)

via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 1 23:34:55 PDT 2024


joshua-arch1 wrote:

> > I'm wondering why we need these intrinsics since we do not have vmv.v.v and vmerge.vvm instructions for bf16.
> 
> vmv.v.v and vmerge.vvm don't interpret the value in the elements. They work for integer or FP or bf16. If we don't provide the intrinsics then the user needs to use vreinterpret to do a vmerge or vmv.v.v operation on a vector of bf16.

I know what vmerge and vmv.v.v mean, but in a similar way, does it mean we need to add all the intrinsics for bf16 to keep consistent with other floating-point type?

https://github.com/llvm/llvm-project/pull/101611


More information about the cfe-commits mailing list