[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:47 PDT 2023
================
@@ -1678,7 +1681,8 @@ bool NVPTXDAGToDAGISel::tryStore(SDNode *N) {
MVT ScalarVT = SimpleVT.getScalarType();
unsigned toTypeWidth = ScalarVT.getSizeInBits();
if (SimpleVT.isVector()) {
- assert((StoreVT == MVT::v2f16 || StoreVT == MVT::v2bf16) &&
+ assert((StoreVT == MVT::v2f16 || StoreVT == MVT::v2bf16 ||
+ StoreVT == MVT::v2i16) &&
----------------
ThomasRaoux wrote:
Done, moved the function in the helper to be able to use it in this file.
https://github.com/llvm/llvm-project/pull/65432
More information about the llvm-commits
mailing list