Don't use cmov (no need)

This commit is contained in:
Jef
2019-04-24 09:16:38 +02:00
parent a2ef962ed7
commit ea1ec9491e

View File

@@ -4529,7 +4529,7 @@ impl<'this, M: ModuleContext> Context<'this, M> {
}
(then, else_) => {
let out = self.take_reg(GPRType::Rq).unwrap();
self.cmov(!cond_code, out, else_);
self.copy_value(else_.into(), CCLoc::Reg(out));
self.cmov(cond_code, out, then);
self.free_value(then.into());