aemerson wrote: > We zext the APInt: > > https://github.com/llvm/llvm-project/blob/30d7dcc1db476b828d3b0a7b5c9bcfbe5bd5f216/llvm/lib/CodeGen/GlobalISel/Utils.cpp#L369 Right, I just saw that and I agree it handles it. https://github.com/llvm/llvm-project/pull/108891