https://github.com/davemgreen commented: Can you move this into the generic code so that all targets are fixed? I think it just needs to constrain the reg class if the Src and Dst already both have them. https://github.com/llvm/llvm-project/pull/177997