Optimizing the mr case.

This commit is contained in:
Ben Vanik 2013-05-24 17:59:01 -07:00
parent 748bfe509f
commit 7e3268621d
1 changed files with 6 additions and 2 deletions

View File

@ -742,8 +742,12 @@ XEEMITTER(orx, 0x7C000378, X )(X64Emitter& e, X86Compiler& c, InstrDat
// RA <- (RS) | (RB)
GpVar v(c.newGpVar());
c.mov(v, e.gpr_value(i.X.RT));
c.or_(v, e.gpr_value(i.X.RB));
if (i.X.RT == i.X.RB) {
c.mov(v, e.gpr_value(i.X.RT));
} else {
c.mov(v, e.gpr_value(i.X.RT));
c.or_(v, e.gpr_value(i.X.RB));
}
e.update_gpr_value(i.X.RA, v);
if (i.X.Rc) {