Deal with shifts, raise an error on bad register definitions