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

Issue 682643002: Add vrint{a,n,p,m,z} instructions to arm assembler. (Closed)

Created:
6 years, 1 month ago by sigurds
Modified:
6 years, 1 month ago
CC:
v8-dev
Project:
v8
Visibility:
Public.

Description

Add vrint{a,n,p,m,z} instructions to arm assembler. These instructions are only available on ARMv8. R=rodolph.perfetta@gmail.com, ulan@chromium.org, bmeurer@chromium.org, rodolph.perfetta@arm.com Committed: https://code.google.com/p/v8/source/detail?r=25013

Patch Set 1 #

Patch Set 2 : Reformatting + cleanup. #

Patch Set 3 : Add more tests. (disregard this diff, wrong base revision) #

Patch Set 4 : Diff against right base revision. #

Patch Set 5 : Fix bug in test. #

Patch Set 6 : Fix another typo. #

Patch Set 7 : Fix tests with ulan's help. #

Total comments: 10

Patch Set 8 : Rebase. #

Patch Set 9 : Addressing comments. #

Total comments: 6

Patch Set 10 : Addressing more comments. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+325 lines, -26 lines) Patch
M src/arm/assembler-arm.h View 1 chunk +8 lines, -0 lines 0 comments Download
M src/arm/assembler-arm.cc View 1 2 3 4 5 6 7 8 9 1 chunk +70 lines, -0 lines 0 comments Download
M src/arm/constants-arm.h View 2 chunks +26 lines, -26 lines 0 comments Download
M src/arm/disasm-arm.cc View 1 2 3 4 5 6 7 8 9 2 chunks +52 lines, -0 lines 0 comments Download
M src/arm/simulator-arm.cc View 1 2 chunks +50 lines, -0 lines 2 comments Download
M test/cctest/test-assembler-arm.cc View 1 2 3 4 5 6 7 8 1 chunk +96 lines, -0 lines 0 comments Download
M test/cctest/test-disasm-arm.cc View 1 2 3 4 5 6 7 8 9 1 chunk +23 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (4 generated)
sigurds
I've added vrint instructions to arm assembler. I haven't tested them on real hardware, but ...
6 years, 1 month ago (2014-10-27 14:24:57 UTC) #1
sigurds
On 2014/10/27 14:24:57, sigurds wrote: > I've added vrint instructions to arm assembler. I haven't ...
6 years, 1 month ago (2014-10-28 13:39:48 UTC) #3
Rodolph Perfetta (ARM)
https://codereview.chromium.org/682643002/diff/140001/src/arm/disasm-arm.cc File src/arm/disasm-arm.cc (right): https://codereview.chromium.org/682643002/diff/140001/src/arm/disasm-arm.cc#newcode1290 src/arm/disasm-arm.cc:1290: // vrintr - round according to rounding mode in ...
6 years, 1 month ago (2014-10-28 19:41:41 UTC) #4
sigurds
Thanks for the first round of review, I addressed all your comments. https://codereview.chromium.org/682643002/diff/140001/src/arm/disasm-arm.cc File src/arm/disasm-arm.cc ...
6 years, 1 month ago (2014-10-29 11:47:15 UTC) #5
Rodolph Perfetta
LGTM with comments. https://codereview.chromium.org/682643002/diff/180001/src/arm/assembler-arm.cc File src/arm/assembler-arm.cc (right): https://codereview.chromium.org/682643002/diff/180001/src/arm/assembler-arm.cc#newcode3101 src/arm/assembler-arm.cc:3101: int vd, d; DCHECK(CpuFeature::IsSupported(ARMv8)); I miss ...
6 years, 1 month ago (2014-10-29 12:37:53 UTC) #7
sigurds
Addressed all comments; moved disasm tests to own test. https://codereview.chromium.org/682643002/diff/180001/src/arm/assembler-arm.cc File src/arm/assembler-arm.cc (right): https://codereview.chromium.org/682643002/diff/180001/src/arm/assembler-arm.cc#newcode3101 src/arm/assembler-arm.cc:3101: ...
6 years, 1 month ago (2014-10-29 15:25:05 UTC) #8
ulan
lgtm
6 years, 1 month ago (2014-10-30 08:59:47 UTC) #9
sigurds
Committed patchset #10 (id:200001) manually as 25013 (presubmit successful).
6 years, 1 month ago (2014-10-30 11:01:00 UTC) #10
Torne
https://codereview.chromium.org/682643002/diff/200001/src/arm/simulator-arm.cc File src/arm/simulator-arm.cc (right): https://codereview.chromium.org/682643002/diff/200001/src/arm/simulator-arm.cc#newcode3627 src/arm/simulator-arm.cc:3627: dd_value = std::round(dm_value); The calls to std::round and std::trunc ...
6 years, 1 month ago (2014-11-04 16:28:55 UTC) #12
Sven Panne
6 years, 1 month ago (2014-11-05 08:05:00 UTC) #14
Message was sent while issue was closed.
https://codereview.chromium.org/682643002/diff/200001/src/arm/simulator-arm.cc
File src/arm/simulator-arm.cc (right):

https://codereview.chromium.org/682643002/diff/200001/src/arm/simulator-arm.c...
src/arm/simulator-arm.cc:3627: dd_value = std::round(dm_value);
On 2014/11/04 16:28:55, Torne wrote:
> [...] I'm investigating fixing the android build system downstream to use
libc++ to
> avoid issues like this in the future, but is this dependency against the
current
> chromium policy of not depending on C++11 library features? Does V8 follow
that
> policy? [...]

Yes, we follow this policy, and normally this kind of problems shows up on our
Mac builders which use an ancient XCode. But this is ARM-specific, so it slipped
through and we should remove those calls in v8.

Powered by Google App Engine
This is Rietveld 408576698