Closed Bug 770630 Opened 13 years ago Closed 9 years ago

IonMonkey: Don't use ptest in emitDoubleToInt32 on x86/x64

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 995934

People

(Reporter: jandem, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [ion:t])

emitDoubleToInt32 emits ptest to check if a double is negative zero. Problem with this instruction is that it compares all 128 bits but the upper 64 bits may contain garbage. There's no correctness bug here since we will always bailout for -0, but it's possible we will unnecessarily bailout for +0 as well. The easiest fix is to use the non-SSE 4.1 code which uses movmskpd to extract the sign bit.
Assignee: general → nobody
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.