Add 32-bit ptrtoint pattern.
Add support for expanding address space casts.
Add some more patterns for loads to i32.