================ @@ -708,7 +708,7 @@ AArch64TargetInfo::getVScaleRange(const LangOptions &LangOpts) const { return std::pair<unsigned, unsigned>( LangOpts.VScaleMin ? LangOpts.VScaleMin : 1, LangOpts.VScaleMax); - if (hasFeature("sve")) + if (hasFeature("sve") || hasFeature("sme")) ---------------- davemgreen wrote:
I think the default range should still be the same - somewhere between 1 and 16. SME doesn't increase that even if they VL and SVL are different. (Currently if we have +sve+sme we will set the vscale_range to (1,16) already, so hopefully that part is already OK. In either case this adds the simple case, it doesn't alter the more complicated part :) ) https://github.com/llvm/llvm-project/pull/124466 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits