Encoding:

EXTEND

11110

imm 10:5

imm 15:11

CMPI

01110

rx

000

0

imm 4:0

5

6

5

5

3

3

5

Format:

CMPI rx, immediate

MIPS16e

Compare Immediate (Extended)

Purpose:

Compare Immediate (Extended)

To compare a constant with the contents of a GPR.

Description:

 T = GPR[rx] XOR immediate

The 16-bitimmediate is zero-extended and Exclusive-ORed with the contents of GPR rx. The resultis placed into

GPR 24.

Restrictions:

None

Operation:

GPR[24] = GPR[Xlat(rx)] xor zero_extend(immediate)

Exceptions:

None