[llvm] [NVPTX] Make i16x2 a native type and add supported vec instructions (PR #65432)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 6 15:47:27 PDT 2023
================
@@ -3300,6 +3328,13 @@ def : Pat<(bf16 (extractelt (v2bf16 Int32Regs:$src), 1)),
def : Pat<(v2bf16 (build_vector (bf16 Int16Regs:$a), (bf16 Int16Regs:$b))),
(V2I16toI32 Int16Regs:$a, Int16Regs:$b)>;
+def : Pat<(i16 (extractelt (v2i16 Int32Regs:$src), 0)),
----------------
ThomasRaoux wrote:
We still need to specialize based on the scalar type. Is there a way to write a foreach loop that handle this case?
https://github.com/llvm/llvm-project/pull/65432
More information about the llvm-commits
mailing list