A few issues:
- There was no legalizer test for G_PTRTOINT
- Same clamping issue as in many other opcodes
- AArch64 pointers can only be 64b, so in reality we always have to trunc or extend with any size other than p0 anyway.
This seems to actually produce more correct selection for narrow types as well.
I expected these to change?