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

Issue 1784813004: X87: Change the test case for X87 Run_WasmF32SConvertI64/Run_WasmF64SConvertI64. (Closed)

Created:
4 years, 9 months ago by zhengxing.li
Modified:
4 years, 9 months ago
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

X87: Change the test case for X87 Run_WasmF32SConvertI64/Run_WasmF64SConvertI64. The CL #34701 (https://codereview.chromium.org/1779123002/) added the Run_WasmF32SConvertI64/Run_WasmF64SConvertI64 test cases and X87 failed at them. The reason is same as the CL #33630 (Issue 1649323002: X87: Change the test case for X87 RunRoundInt32ToFloat32), please refer: https://codereview.chromium.org/1649323002. Here is the key comments from CL #33630: Some new test cases use CheckFloatEq(...) and CheckDoubleEq(...) function for result check. When GCC compiling the CheckFloatEq() and CheckDoubleEq() function, those inlined functions has different behavior comparing with GCC ia32 build and x87 build. The major difference is sse float register still has single precision rounding semantic. While X87 register has no such rounding precsion semantic when directly use register value. The V8 turbofan JITTed has exactly same result in both X87 and IA32 port. For CHECK_EQ(a, b) function, if a and b are double or float, it will has similar behaviors like CheckFloatEq(...) and CheckDoubleEq(...) function when compiled by GCC and causes the test case fail. So we add the following sentence to do type case to keep the same precision for Run_WasmF32SConvertI64/Run_WasmF64SConvertI64. Such as: volatile double expect = static_cast<float>(*i). ahaas put those codes in CHECK_FLOAT_EQ and CHECK_DOUBLE_EQ macros in CL #34534 (https://codereview.chromium.org/1773513002 ). So this CL replaced the CHECK_EQ in Run_WasmF32SConvertI64/Run_WasmF64SConvertI64 to CHECK_FLOAT_EQ/CHECK_DOUBLE_EQ for x87 can pass Run_WasmF32SConvertI64/Run_WasmF64SConvertI64 tests. BUG= Committed: https://crrev.com/43f65e89f2dc922ce06f4dd589880fe793030311 Cr-Commit-Position: refs/heads/master@{#34813}

Patch Set 1 #

Total comments: 1

Patch Set 2 : use CHECK_FLOAT_EQ/CHECK_DOUBLE_EQ instead of CHECK_EQ for float/double result check #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -2 lines) Patch
M test/cctest/wasm/test-run-wasm-64.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 20 (9 generated)
zhengxing.li
PTAL, thanks!
4 years, 9 months ago (2016-03-11 11:37:42 UTC) #4
ahaas
On 2016/03/11 at 11:37:42, zhengxing.li wrote: > PTAL, thanks! I cannot reproduce your problem this ...
4 years, 9 months ago (2016-03-11 12:03:13 UTC) #5
zhengxing.li
On 2016/03/11 12:03:13, ahaas wrote: > On 2016/03/11 at 11:37:42, zhengxing.li wrote: > > PTAL, ...
4 years, 9 months ago (2016-03-11 12:12:22 UTC) #6
ahaas
On 2016/03/11 at 12:12:22, zhengxing.li wrote: > On 2016/03/11 12:03:13, ahaas wrote: > > On ...
4 years, 9 months ago (2016-03-11 12:28:37 UTC) #7
zhengxing.li
On 2016/03/11 12:28:37, ahaas wrote: > On 2016/03/11 at 12:12:22, zhengxing.li wrote: > > On ...
4 years, 9 months ago (2016-03-11 14:47:31 UTC) #8
titzer
Sorry for the delay, I forgot to hit the "publish" button on my comments. https://codereview.chromium.org/1784813004/diff/1/test/cctest/wasm/test-run-wasm-64.cc ...
4 years, 9 months ago (2016-03-16 09:44:51 UTC) #9
zhengxing.li
On 2016/03/16 09:44:51, titzer wrote: > Sorry for the delay, I forgot to hit the ...
4 years, 9 months ago (2016-03-16 10:19:52 UTC) #12
titzer
lgtm
4 years, 9 months ago (2016-03-16 10:48:56 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1784813004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1784813004/20001
4 years, 9 months ago (2016-03-16 12:48:24 UTC) #16
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 9 months ago (2016-03-16 13:14:09 UTC) #18
commit-bot: I haz the power
4 years, 9 months ago (2016-03-16 13:14:28 UTC) #20
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/43f65e89f2dc922ce06f4dd589880fe793030311
Cr-Commit-Position: refs/heads/master@{#34813}

Powered by Google App Engine
This is Rietveld 408576698