In DAGTypeLegalizer::SplitVecOp_EXTRACT_SUBVECTOR I have replaced
calls to getVectorNumElements with getVectorMinNumElements, since
this code path works for both fixed and scalable vector types. For
scalable vectors the index will be multiplied by VSCALE.
Fixes warnings in this test:
sve-sext-zext.ll
I think this assert is saying that this is not *yet* supported, because if extracting a fixed-width vector from a scalable vector is allowed then it should (at some point) also support extracting it from an illegal scalable vector.
So maybe better to change the wording to "Extracting a fixed-length vector from a scalable vector is not yet supported", and perhaps you can wrap it in a report_fatal_error(..) instead of an assert, because this is more a is-unsupported-error.