Description[x64] Avoid the sign extension in the DoubleToI conversion.
We use the cvttsd2si (float64-to-int32) instruction to avoid that negative numbers get sign extended in the destination register.
@rodolph: Is sign extension also a thing on arm64? I noticed that also on arm64 a float64-to-int64 instruction is used.
Committed: https://crrev.com/6f8630ed7bf82a957408023447934c0961c44ad9
Cr-Commit-Position: refs/heads/master@{#35466}
Patch Set 1 #Patch Set 2 : Avoid to use the additional movl instruction. #
Messages
Total messages: 10 (4 generated)
|