You are here:

When I reading the src\mips\javavm\runtime\jit\jitemitter_cpu.c, I found a comment like this:
// If the opcode is CMN (compare negative), take the
// negative value of the rhs.
and source code like this:
if (cmpOpcode == CVMCPU_CMN_OPCODE) {
if (cmpRhsType == CVMMIPS_ALURHS_REGISTER) {
CVMCPUemitBinaryALURegister(con, CVMCPU_SUB_OPCODE,
CVMMIPS_t7, CVMMIPS_zero, cmpRhsReg,
CVMJIT_NOSETCC);

cmpRhsReg = CVMMIPS_t7;
} else {
cmpRhsConst = -cmpRhsConst;
}
}
But I also found a line in src\mips\javavm\include\jit\jitriscemitterdefs_cpu.h like this:
CVMCPU_CMN_OPCODE, /* cmp reg32, ~aluRhs32 */
Why it says CMN is cmp reg32, ~reg32, but cmp reg32, -reg32 when it is implemented?