[llvm] [X86][BF16] Support INSERT_SUBVECTOR and CONCAT_VECTORS (PR #76485)
Phoebe Wang via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 27 21:06:45 PST 2023
================
@@ -7931,6 +7927,14 @@ let Predicates = [HasAVX2, NoVLX] in {
defm : vextract_lowering<"VEXTRACTI128", v32i8, v16i8>;
}
+let Predicates = [HasAVXNECONVERT, NoVLX] in {
+ def : Pat<(v16bf16 (X86SubVBroadcastld128 addr:$src)),
+ (VBROADCASTF128rm addr:$src)>;
+ defm : vinsert_lowering<"VINSERTI128", "VPERM2I128", v8bf16,
+ v16bf16, loadv8bf16, loadv16bf16>;
+ defm : vextract_lowering<"VEXTRACTI128", v16bf16, v8bf16>;
----------------
phoebewang wrote:
Done.
https://github.com/llvm/llvm-project/pull/76485
More information about the llvm-commits
mailing list