| CPC G06F 9/30167 (2013.01) [G06F 9/30036 (2013.01); G06F 9/3016 (2013.01); G06F 9/30181 (2013.01); G06F 9/3822 (2013.01); G06F 9/3853 (2013.01); G06F 9/3887 (2013.01); G06F 7/49994 (2013.01); G06F 9/3001 (2013.01); G06F 9/30145 (2013.01); G06F 9/3802 (2013.01); G06F 9/3836 (2013.01); G06F 15/8053 (2013.01)] | 20 Claims |

|
1. A device comprising:
a functional unit; and
an instruction decoder coupled to the functional unit and configured to:
receive a first instruction specifying a first value, a first bit, and a second bit;
receive a second instruction specifying a second value;
form a third value by appending the second value to the first value;
based on the first bit, select the first value or the third value by multiplexing the first value and the third value;
based on the second bit, sign extend the selected value to form a sign extended value; and
provide the sign extended value to the functional unit for performing an operation.
|