EXTEND 11110 |
imm 10:5 |
imm 15:11 |
CMPI 01110 |
rx |
000 0 |
imm 4:0 |
5 |
6 |
5 |
5 |
3 |
3 |
5 |
CMPI rx, immediate |
MIPS16e |
Compare Immediate (Extended) |
Compare Immediate (Extended)
To compare a constant with the contents of a GPR.
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.
None
GPR[24] = GPR[Xlat(rx)] xor zero_extend(immediate)
None