Fix x64 MathMinMax for negative untagged int32 arguments.
authorulan@chromium.org <ulan@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 21 Dec 2012 17:52:00 +0000 (17:52 +0000)
committerulan@chromium.org <ulan@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 21 Dec 2012 17:52:00 +0000 (17:52 +0000)
commitb64f8343836125b78abd4d6693aa489a92910c91
tree4d26d78d0d2a91d0ac115d338aca7ba69a1b6634
parentd14b05a38da4309774bb8c56a4522c69010cda1f
Fix x64 MathMinMax for negative untagged int32 arguments.

An untagged int32 has zeros in the upper half even if it is negative.
Using cmpq to compare such numbers will incorrectly ignore the sign.

BUG=164442
R=mvstanton@chromium.org

Review URL: https://chromiumcodereview.appspot.com/11665007

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@13273 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/x64/lithium-codegen-x64.cc
test/mjsunit/regress/regress-164442.js [new file with mode: 0644]