Patent ID: 9582281
Date: 2017-02-28
CPC Classifications: G06F

Claim:
1. A method of data processing comprising: storing a first set of register size codes for a bank of registers obtained from a register and operand size register (ROSR); executing a single instruction for writing a second set of register size codes for the bank of registers into the ROSR; executing a first instruction to determine a result based on a first operand and a second operand, wherein the first operand identifies a first register of the bank of registers, wherein a first size of the first register of the bank of registers for the executing the first instruction is determined from a first register size code of the second set of register size codes stored in the ROSR; executing a second instruction to determine a result based on a third operand and a fourth operand, wherein the third operand identifies the first register of the bank of registers, wherein the first size of the first register of the bank of registers for the executing the second instruction is determined from the first register size code of the second set of register size codes stored in the ROSR; executing a third instruction to determine a result based on a fifth operand and a sixth operand, wherein the fifth operand identifies a second register of the bank of registers, wherein a second size of the second register of the bank of registers for the executing the third instruction is determined from a second register size code of the second set of register size codes stored in the ROSR; and executing a second single instruction for restoring the first set of register size codes for the bank of registers to the ROSR.