Simplified division in interpreted mode

Fixed incorrect condition code in JitCompilerX86
Refactoring
This commit is contained in:
tevador
2019-02-15 10:41:02 +01:00
parent 1df975e583
commit 447e8a1d4f
5 changed files with 35 additions and 47 deletions
+2 -2
View File
@@ -666,8 +666,8 @@ namespace RandomX {
emit(AND_OR_MOV_LDMXCSR);
}
static inline uint8_t condition(Instruction& instr, bool invert = false) {
switch ((instr.mod & 7) ^ invert)
static inline uint8_t condition(Instruction& instr) {
switch ((instr.mod >> 2) & 7)
{
case 0:
return 0x96; //setbe