Patent ID: 7370180

Claim:
A data processing apparatus comprising: data processing logic operable to perform data processing operations on at least one data value; and instruction decode logic operable in response to a bit field extraction instruction, which enables a predetermined sequence of bits from said at least one data value to be provided as a sign-extended bit field extracted data value, to control said data processing logic to cause: said at least one data value to be rotated by a number of bits in order to generate a rotated data value; a number of least significant bits of said rotated data value to be masked with other bits of said rotated data value not being masked in order to generate a masked rotated data value; a selected bit of said rotated data value to be masked with other bits of said rotated data value not being masked in order to generate a bit preset rotated data value; and said sign-extended bit field extracted data value to be generated as a result of an operation which has the effect of subtracting said masked rotated data value from said bit preset data value.