[BUG] Fixed a FPU bug (kX86InstEncodingIdFpuArith) introduced by bf8bba5bba

[BUG] Fixed blend_bench tool
This commit is contained in:
kobalicek
2016-01-08 20:27:06 +01:00
parent 1c3570cb9b
commit 75221286ab
2 changed files with 3 additions and 1 deletions

View File

@@ -2142,7 +2142,6 @@ _GroupPop_Gp:
if (encoded == ENC_OPS(Reg, Reg, None)) {
opReg = x86OpReg(o0);
rmReg = x86OpReg(o1);
rmReg += opReg;
// We switch to the alternative opcode if the first operand is zero.
if (opReg == 0) {
@@ -2151,6 +2150,7 @@ _EmitFpArith_Reg:
goto _EmitFpuOp;
}
else if (rmReg == 0) {
rmReg = opReg;
opCode = 0xDC00 + ((opCode >> 0) & 0xFF) + static_cast<uint32_t>(rmReg);
goto _EmitFpuOp;
}

View File

@@ -106,6 +106,8 @@ int main(int argc, char* argv[]) {
void* p = a.make();
runtime.release(p);
a.reset();
}
perf.end();
}