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

CMPI

[Mnemonic]

CMPI Rsrc,#imm16

[Function]
Compare
C = ( ( signed ) Rsrc < ( signed short ) imm16 ) ? 1:0;
[Description]
The condition bit (C) is set when Rsrc is less than 16-bit immediate value. The operands are
treated as signed 32-bit values. The immediate value is sign-extended to 32-bit before the opera-
tion.
[EIT occurrence]
None
[Encoding]

CMPI

compare instruction

Compare immediate

1000 0000 0100 src imm16

CMPI Rsrc,#imm16

INSTRUCTIONS
3.2 Instruction description