Something like this?

z=a+b<<4+c<<8+d<<12

Ioannis