3
3-105 M32R-FPU Software Manual (Rev.1.01)

SRAISRAI

shift instruction

Shift right arithmetic immediate

[Mnemonic]

SRAI Rdest,#imm5

[Function]
Arithmetic right shift
Rdest = ( signed ) Rdest >> imm5 ;
[Description]
SRAI right arithmetic-shifts the contents of Rdest by the number specified by the 5-bit immedi-
ate value, replicates the sign bit in MSB of Rdest and puts the result in Rdest.
The condition bit (C) is unchanged.
[EIT occurrence]
None
[Encoding]

dest0101 imm5001 SRAI Rdest,#imm5

INSTRUCTIONS
3.2 Instruction description