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:
parent
c024ba9a90
commit
9c7bb6da23
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user