SXTW

Sign extend word

This instruction sign-extends a word 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
1001001101000000011111
sfopcNimmrimmsRnRd

64-bit

SXTW <Xd>, <Wn>

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

Explanations

<Xd>: Is the 64-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.

Operational Notes

If PSTATE.DIT is 1: