Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(648)

Issue 2637583002: [wasm] Fix codegen issue for i64.add and i64.sub on ia32 (Closed)

Created:
3 years, 11 months ago by Eric Holk
Modified:
3 years, 11 months ago
CC:
v8-reviews_googlegroups.com, v8-x87-ports_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[wasm] Fix codegen issue for i64.add and i64.sub on ia32 The IA32AddPair and IA32SubPair instructions were using an input register as a temporary value, which led to registers sometimes being clobbered when they shouldn't have been. This led to problems, for example, in calling printf to format doubles: printf("%f", 1.2345) => 0.61725 (on x86) BUG= https://bugs.chromium.org/p/v8/issues/detail?id=5800 Review-Url: https://codereview.chromium.org/2637583002 Cr-Commit-Position: refs/heads/master@{#42486} Committed: https://chromium.googlesource.com/v8/v8/+/037200e6250d5ea6fbd4f5071615c8c850e5a661

Patch Set 1 #

Patch Set 2 : Add test for and fix i64.sub #

Patch Set 3 : Add test-run-wasm-64.cc tests #

Total comments: 6

Patch Set 4 : Fixing nits #

Patch Set 5 : Rebasing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+83 lines, -2 lines) Patch
M src/compiler/ia32/code-generator-ia32.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M test/cctest/wasm/test-run-wasm-64.cc View 1 2 3 2 chunks +25 lines, -0 lines 0 comments Download
A test/mjsunit/regress/wasm/regression-5800.js View 1 2 3 1 chunk +56 lines, -0 lines 0 comments Download

Messages

Total messages: 41 (22 generated)
Eric Holk
3 years, 11 months ago (2017-01-17 22:10:47 UTC) #5
bradnelson
lgtm
3 years, 11 months ago (2017-01-17 22:40:05 UTC) #8
ahaas
On 2017/01/17 at 22:40:05, bradnelson wrote: > lgtm lgtm, thank for fixing this issue.
3 years, 11 months ago (2017-01-18 08:46:26 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2637583002/20001
3 years, 11 months ago (2017-01-18 09:20:30 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: v8_presubmit on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_presubmit/builds/32661)
3 years, 11 months ago (2017-01-18 09:23:39 UTC) #13
bradn
Need titzer for src/compiler
3 years, 11 months ago (2017-01-18 09:26:51 UTC) #14
titzer
On 2017/01/18 09:26:51, bradn wrote: > Need titzer for src/compiler Can you add a test-run-wasm-64.cc ...
3 years, 11 months ago (2017-01-18 09:35:36 UTC) #15
Eric Holk
PTAL I added the tests to test-run-wasm-64 as well.
3 years, 11 months ago (2017-01-18 19:24:09 UTC) #16
Mircea Trofin
LGTM with nits https://codereview.chromium.org/2637583002/diff/40001/test/cctest/wasm/test-run-wasm-64.cc File test/cctest/wasm/test-run-wasm-64.cc (right): https://codereview.chromium.org/2637583002/diff/40001/test/cctest/wasm/test-run-wasm-64.cc#newcode139 test/cctest/wasm/test-run-wasm-64.cc:139: WASM_EXEC_TEST(I64AddRegress5800) { Elsewhere in cctest, we ...
3 years, 11 months ago (2017-01-18 21:01:56 UTC) #19
Eric Holk
https://codereview.chromium.org/2637583002/diff/40001/test/cctest/wasm/test-run-wasm-64.cc File test/cctest/wasm/test-run-wasm-64.cc (right): https://codereview.chromium.org/2637583002/diff/40001/test/cctest/wasm/test-run-wasm-64.cc#newcode139 test/cctest/wasm/test-run-wasm-64.cc:139: WASM_EXEC_TEST(I64AddRegress5800) { On 2017/01/18 21:01:56, Mircea Trofin wrote: > ...
3 years, 11 months ago (2017-01-18 21:20:50 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2637583002/60001
3 years, 11 months ago (2017-01-18 21:21:01 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux_nodcheck_rel_ng on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux_nodcheck_rel_ng/builds/15288) v8_linux_nodcheck_rel_ng_triggered on master.tryserver.v8 (JOB_FAILED, ...
3 years, 11 months ago (2017-01-18 22:09:36 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2637583002/60001
3 years, 11 months ago (2017-01-18 22:24:20 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux_nodcheck_rel_ng on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux_nodcheck_rel_ng/builds/15289) v8_linux_nodcheck_rel_ng_triggered on master.tryserver.v8 (JOB_FAILED, ...
3 years, 11 months ago (2017-01-18 22:32:55 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2637583002/60001
3 years, 11 months ago (2017-01-18 23:29:48 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2637583002/80001
3 years, 11 months ago (2017-01-18 23:38:10 UTC) #34
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux64_asan_rel_ng on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_asan_rel_ng/builds/15785) v8_linux64_asan_rel_ng_triggered on master.tryserver.v8 (JOB_FAILED, ...
3 years, 11 months ago (2017-01-18 23:56:40 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2637583002/80001
3 years, 11 months ago (2017-01-19 00:49:42 UTC) #38
commit-bot: I haz the power
3 years, 11 months ago (2017-01-19 01:16:27 UTC) #41
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/v8/v8/+/037200e6250d5ea6fbd4f5071615c8c850e...

Powered by Google App Engine
This is Rietveld 408576698