1. A processing unit comprising: an extended register to which instruction extension information indicating an extension of an instruction can be set; and an operation unit that, when instruction extension information is set by an extension instruction to the extended register, executes a subsequent instruction following a the extension instruction writing the instruction extension information into the extended register, and extends the subsequent instruction based on the instruction extension information set in the extended register.