Constant fold ptrtoint + compare with address spaces