The intent here is to generate a more compact instruction if a 32-bit immediate can be zero-extended to the desired 64-bit immediate. Nowadays the emitter is smart enough to do this for us, so this logic is redundant.