SXTH

Sign extend halfword

This instruction extracts a 16-bit value, sign-extends it to the size of the register, and writes the result to the destination register.

Encoding: With sign replication to left and zeros to right

313029282726252423222120191817161514131211109876543210
00100110000000001111
sfopcNimmrimmsRnRd

32-bit (sf == 0 && N == 0)

SXTH <Wd>, <Wn>

Equivalent to: SBFM <Wd>, <Wn>, #0, #15

64-bit (sf == 1 && N == 1)

SXTH <Xd>, <Wn>

Equivalent to: SBFM <Xd>, <Xn>, #0, #15

Explanations

<Wd>: Is the 32-bit name of the general-purpose destination register, encoded in the "Rd" field.
<Wn>: Is the 32-bit name of the general-purpose source register, encoded in the "Rn" field.
<Xd>: Is the 64-bit name of the general-purpose destination register, encoded in the "Rd" field.

Operational Notes

If PSTATE.DIT is 1: