AlfieRichardsArm wrote: If possible some extra comments about the logic behind the operand indices would be appreciated as the logic in this file is already pretty inexplicable. Other than that LGTM https://github.com/llvm/llvm-project/pull/81381