jayfoad wrote: I wonder if G_PTR_ADD has the same semantics as IR getelementptr, where only the low order index-size bits of the pointer value are affected. @nikic do you know? https://github.com/llvm/llvm-project/pull/81473