Fixing bad or during cr0 update - need to be overwriting.

This commit is contained in:
Ben Vanik 2013-05-24 20:26:06 -07:00
parent 68f1eb7f69
commit e7556a09f8
1 changed files with 2 additions and 2 deletions

View File

@ -1376,7 +1376,7 @@ void X64Emitter::update_cr_with_cond(uint32_t n, GpVar& lhs) {
GpVar v(c.newGpVar());
c.shl(v_g, imm(1));
c.shl(v_e, imm(2));
c.or_(v.r8(), v_l.r8());
c.mov(v.r8(), v_l.r8());
c.or_(v.r8(), v_g.r8());
c.or_(v.r8(), v_e.r8());
@ -1405,7 +1405,7 @@ void X64Emitter::update_cr_with_cond(uint32_t n, GpVar& lhs, GpVar& rhs) {
GpVar v(c.newGpVar());
c.shl(v_g, imm(1));
c.shl(v_e, imm(2));
c.or_(v.r8(), v_l.r8());
c.mov(v.r8(), v_l.r8());
c.or_(v.r8(), v_g.r8());
c.or_(v.r8(), v_e.r8());