Ideally addu16i.d could be paired with {ld,st}ptr for faster memory
accesses with 32-bit-aligned offsets (it was designed for this purpose),
but it would require more work and the original use case (GP-relative
accesses) does not exist any more with the current LoongArch psABI.
It could still be used for accelerating additions of certain constants
though, which is what this patch intends to do.
Thanks.
Mabbe you can add these as baseline tests (no-functional-change or NFC patch) :)
https://github.com/llvm/llvm-project/blob/main/llvm/docs/TestingGuide.rst#precommit-workflow-for-tests