Commit 74bfa871 by Jim Stichnoth

Subzero: x8664: Fix a "uitofp i32 to double" lowering error.

The movzx instruction in the lowering sequence should not be allowed to be elided. BUG= https://bugs.chromium.org/p/nativeclient/issues/detail?id=4379 R=jpp@chromium.org Review URL: https://codereview.chromium.org/2335933002 .
parent 5a9f714f
......@@ -3062,7 +3062,7 @@ void TargetX86Base<TraitsType>::lowerCast(const InstCast *Instr) {
if (Src0RM->getType() == T_1->getType())
_mov(T_1, Src0RM);
else
_movzx(T_1, Src0RM);
_movzx(T_1, Src0RM)->setMustKeep();
_cvt(T_2, T_1, Traits::Insts::Cvt::Si2ss);
_mov(Dest, T_2);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment