sxth

Signed Extend Halfword (A32)

SXTH<c> <Rd>, <Rm> {, <rotation>}

Sign-extends the low halfword (16-bits) to 32-bits.

Details

The Signed Extend Halfword instruction sign-extends the low halfword (16-bits) to 32-bits.

Pseudocode Operation

Rd ← sign/zero-extend(Rm)

Example

SXTH r0, r2

Encoding

Binary Layout
cond
01101011
1111
Rd
rot
0111
Rm
 
Format Data Proc
Opcode 0x06BF0070
Extension A32 (Base)

Operands

  • Rd
    Destination general-purpose register
  • Rm
    Second source / offset general-purpose register