[llvm] [CodeGen] Adding v1024i16 and v2048i16 (PR #216118)

Jim Lin via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 17 03:00:46 PDT 2026


================
@@ -69,6 +69,10 @@ TEST(ScalableVectorMVTsTest, HelperFuncs) {
   // Check that float->int conversion works
   EVT Vnx2f64 = EVT::getVectorVT(Ctx, MVT::f64, ElementCount::getScalable(2));
   EXPECT_EQ(Vnx2f64.changeTypeToInteger(), Vnx2i64);
+  EXPECT_EQ(MVT(MVT::v1024bf16).changeVectorElementTypeToInteger(),
+            MVT::v1024i16);
+  EXPECT_EQ(MVT(MVT::v2048bf16).changeVectorElementTypeToInteger(),
+            MVT::v2048i16);
----------------
tclin914 wrote:

This file is for scalable vector.  v1024bf16/v2048bf16 isn't scalable vector. I don't mind that's without tests here.

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


More information about the llvm-commits mailing list