ARM: Fix instruction double to i
authorsgjesse@chromium.org <sgjesse@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 25 Feb 2011 13:04:07 +0000 (13:04 +0000)
committersgjesse@chromium.org <sgjesse@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 25 Feb 2011 13:04:07 +0000 (13:04 +0000)
commit4d74d4d2c4b35d6388f7b3b6da434e08ffeb8479
tree3f48ab9051da3fe8c8f938a1e92b1f12bfe3e58d
parenta1cf6f2636b198738017987e46dcf256843f3bad
ARM: Fix instruction double to i

The double to i convertion should round to zero not infinity.

Thes bug was revealed by http://codereview.chromium.org/6597003, where the value of (x * 1.0000000001) | 0 was x - 1 and not x when x was a negative smi.

I will not commit http://codereview.chromium.org/6597003 before this is committed.

TEST=test/mjsunit/smi-ops-inlined.js
Review URL: http://codereview.chromium.org/6594008

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@6951 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/arm/lithium-codegen-arm.cc