================ @@ -265,6 +265,11 @@ def pmerge_u32x2 : RISCVBuiltin<"_Vector<2, unsigned int>(_Vector<2, unsigned in let Features = "experimental-p,64bit" in def rev16_64 : RISCVBuiltin<"uint64_t(uint64_t)">; +// Scalar Merge +def merge_u32 : RISCVBuiltin<"uint32_t(uint32_t, uint32_t, uint32_t)">; +let Features = "experimental-p,64bit" in +def merge_u64 : RISCVBuiltin<"uint64_t(uint64_t, uint64_t, uint64_t)">; ---------------- sihuan wrote:
Should this be RV64-only? The spec lists the i64 merge as "merge/mvm/mvmn (RV64), 2x merge/mvm/mvmn (RV32)". The packed pmerge lowering already does that split, so the i64 form should be doable the same way. Is RV32 intended as a follow-up? https://github.com/llvm/llvm-project/pull/239119 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
