[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:25:25 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:

you mean just for this pattern or more in general?

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


More information about the llvm-commits mailing list