Skip to content

Commit

Permalink
[ia32] Fix MacroAssembler::Move for int64 to float64 moves.
Browse files Browse the repository at this point in the history
R=bmeurer@chromium.org
TEST=test262-es6/language/expressions/addition/S9.3_A4.1_T2

Review URL: https://codereview.chromium.org/1071543003

Cr-Commit-Position: refs/heads/master@{#27663}
  • Loading branch information
mstarzinger authored and Commit bot committed Apr 8, 2015
1 parent 9af9f1d commit d1bcfaf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/ia32/macro-assembler-ia32.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2377,11 +2377,11 @@ void MacroAssembler::Move(XMMRegister dst, uint32_t src) {


void MacroAssembler::Move(XMMRegister dst, uint64_t src) {
uint32_t lower = static_cast<uint32_t>(src);
uint32_t upper = static_cast<uint32_t>(src >> 32);
if (upper == 0) {
Move(dst, lower);
if (src == 0) {
pxor(dst, dst);
} else {
uint32_t lower = static_cast<uint32_t>(src);
uint32_t upper = static_cast<uint32_t>(src >> 32);
unsigned cnt = base::bits::CountPopulation64(src);
unsigned nlz = base::bits::CountLeadingZeros64(src);
unsigned ntz = base::bits::CountTrailingZeros64(src);
Expand Down
1 change: 0 additions & 1 deletion test/test262-es6/test262-es6.status
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
'intl402/12.2.3_b': [FAIL],

# TODO(mstarzinger): Optimizing top-level code found some issues. Fix!
'language/expressions/addition/S9.3_A4.1_T2': [PASS, NO_VARIANTS],
'language/expressions/addition/S11.6.1_A2.2_T2': [PASS, NO_VARIANTS],
'language/expressions/addition/S11.6.1_A3.2_T2.2': [PASS, NO_VARIANTS],
'language/expressions/addition/S11.6.1_A3.2_T2.4': [PASS, NO_VARIANTS],
Expand Down
1 change: 0 additions & 1 deletion test/test262/test262.status
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
'15.5.4.9_CE': [['no_i18n', SKIP]],

# TODO(mstarzinger): Optimizing top-level code found some issues. Fix!
'S9.3_A4.1_T2': [PASS, NO_VARIANTS],
'S11.6.1_A2.2_T2': [PASS, NO_VARIANTS],
'S11.6.1_A3.2_T2.2': [PASS, NO_VARIANTS],
'S11.6.1_A3.2_T2.4': [PASS, NO_VARIANTS],
Expand Down

0 comments on commit d1bcfaf

Please sign in to comment.