Replace immediates with constants