Fixing cntlzd.

This commit is contained in:
Ben Vanik 2013-09-25 00:21:41 -07:00
parent 8424a668bf
commit 998467ce05
1 changed files with 1 additions and 1 deletions

View File

@ -787,7 +787,7 @@ XEEMITTER(cntlzdx, 0x7C000074, X )(X64Emitter& e, X86Compiler& c, InstrDat
GpVar v(c.newGpVar()); GpVar v(c.newGpVar());
c.mov(v, e.gpr_value(i.X.RT)); c.mov(v, e.gpr_value(i.X.RT));
c.bsr(v, v); c.bsr(v, v);
c.cmovz(v, e.get_uint64(63)); c.cmovz(v, e.get_uint64(0));
c.xor_(v, imm(0x3F)); c.xor_(v, imm(0x3F));
e.update_gpr_value(i.X.RA, v); e.update_gpr_value(i.X.RA, v);