Fixed FloatingPointHelper::CheckSSE2OperandIsInt32.

BUG=v8:2458

Review URL: https://codereview.chromium.org/11660010

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@13270 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
svenpanne@chromium.org 2012-12-21 14:01:53 +00:00
parent c024ba9a90
commit 9c7bb6da23

View File

@ -2871,9 +2871,10 @@ void FloatingPointHelper::CheckSSE2OperandIsInt32(MacroAssembler* masm,
__ cvttsd2si(scratch, Operand(operand));
__ cvtsi2sd(xmm_scratch, scratch);
__ pcmpeqd(xmm_scratch, operand);
__ movmskpd(scratch, xmm_scratch);
__ test(scratch, Immediate(1));
__ j(zero, non_int32);
__ movmskps(scratch, xmm_scratch);
__ neg(scratch);
__ test(scratch, Immediate(3));
__ j(not_zero, non_int32);
}