https://github.com/chenzheng1030 approved this pull request. LGTM. Thanks for catching this. Maybe we can also check the lines here https://github.com/llvm/llvm-project/blob/main/llvm/lib/Target/PowerPC/PPCISelLowering.h#L256-L261 https://github.com/llvm/llvm-project/pull/89034