[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 14:16:46 PDT 2023
================
@@ -2122,7 +2192,8 @@ SDValue NVPTXTargetLowering::LowerEXTRACT_VECTOR_ELT(SDValue Op,
// Extract individual elements and select one of them.
SDValue Vector = Op->getOperand(0);
EVT VectorVT = Vector.getValueType();
- assert(VectorVT == MVT::v2f16 && "Unexpected vector type.");
+ assert((VectorVT == MVT::v2f16 || VectorVT == MVT::v2i16) &&
----------------
ThomasRaoux wrote:
Moved to using Isv2x16Type so that addresses it.
https://github.com/llvm/llvm-project/pull/65432
More information about the llvm-commits
mailing list