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
@@ -431,8 +431,8 @@ namespace RandomX {
asmCode << "\tldmxcsr dword ptr [rsp-8]" << std::endl;
}
static inline const char* condition(Instruction& instr, bool invert = false) {
switch (((instr.mod >> 2) & 7) ^ invert)
static inline const char* condition(Instruction& instr) {
switch ((instr.mod >> 2) & 7)
{
case 0:
return "be";