fixed bug in amb284

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40794
This commit is contained in:
Borja Ferrer 2007-05-13 21:45:40 +00:00
parent 0b45984017
commit b0a32b39c2

View File

@ -1462,6 +1462,9 @@ inline void WriteOp_Switch(JitWriter *jit)
} else {
IA32_Lea_DispRegImm32(jit, AMX_REG_TMP, AMX_REG_PRI, low_bound);
}
} else {
//mov ecx, eax
IA32_Mov_Reg_Rm(jit, AMX_REG_TMP, AMX_REG_PRI, MOD_REG);
}
cell_t high_bound = abs(cases[0].val - cases[num_cases-1].val);
//cmp ecx, <UPPER BOUND BOUND>