aemerson wrote: The selection code is pretty much a straight port from `AArch64TargetLowering::SelectIndexedLoad()` except we split extload handling separately from regular indexed loads instead of one big function. https://github.com/llvm/llvm-project/pull/70373