9-64 PPC405 Core User’s Manual
extsh
Extend Sign Halfword
extsh
Extend Sign Halfword
(RA) ← EXTS(RS)
16:31
The least significant halfword of register RS is sign-extended to 32 bits by replicating bit 16 of the
register into bits 0 through 15 of the result. The result is placed into register RA.
Registers Altered
•RA
• CR[CR0]
LT, GT, EQ, SO
if Rc contains 1
Invalid Instruction Forms
• Reserved fields
Architecture Note
This instruction is part of the PowerPC User Instruction Set Architecture.
extsh RA, RS Rc=0
extsh. RA, RS Rc=1
31 RS RA 922 Rc
0 6 11 16 21 31