You can do it but only if the values of x, y, and z once shifted, fit uniquely in a 32 bit integer without overlap or bit loss.

Regards,
Jim