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

Issue 1537703002: Subzero. x8664. Resurrects the Target. (Closed)

Created:
5 years ago by John
Modified:
5 years ago
Reviewers:
Jim Stichnoth, Karl, sehr
CC:
native-client-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Subzero. x8664. Resurrects the Target. After a hiatus while x32 was not available in nacl's llvm, x8664 is being revived. Rejoice! The Target is now back to where it was before: the crosstests pass, and SPEC2k builds and verifies. Makefile.standalone still has the crosstests for x8664 disabled while we wait for all the plumbing that's needed for x32 support on nacl's toolchain to be available. BUG= https://bugs.chromium.org/p/nativeclient/issues/detail?id=4077 R=stichnot@chromium.org Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=3c275ce1e832ba9ccfb730c4235db786cf080465

Patch Set 1 #

Patch Set 2 : Disables x86-64 stack hack. #

Patch Set 3 : Fixes lowerCountZeros. #

Patch Set 4 : Adds the address override prefix. change relocation type. enable all crosstests! #

Patch Set 5 : make format #

Patch Set 6 : Don't adjust SP after calls; Enables x86-64 in sz-build; Enables bisection debug; Enables x8664 in … #

Patch Set 7 : Fixes trunc lowering bug. Spec2k runs and verifies. #

Patch Set 8 : Prevents the same register from being pushed multiple times. #

Patch Set 9 : Moves getR[ad]xOrDie to the Traits classes #

Patch Set 10 : Disables x86-64 xtests. #

Patch Set 11 : Reverts changes to crosstests.py; adds TODO for stack hack cleanup #

Patch Set 12 : Beautifies the assembler. #

Total comments: 30

Patch Set 13 : Addresses comments #

Total comments: 1

Patch Set 14 : Fixes the x8664 Assembler tests. #

Patch Set 15 : Addresses comments. #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+1005 lines, -747 lines) Patch
M Makefile.standalone View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +6 lines, -1 line 3 comments Download
M pydir/crosstest.py View 1 2 3 4 5 6 7 8 9 10 3 chunks +4 lines, -4 lines 0 comments Download
M pydir/szbuild.py View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +10 lines, -2 lines 0 comments Download
M pydir/szbuild_spec2k.py View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M pydir/targets.py View 1 1 chunk +2 lines, -2 lines 0 comments Download
M src/IceAssemblerX86Base.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +18 lines, -1 line 0 comments Download
M src/IceAssemblerX86BaseImpl.h View 1 2 3 4 5 6 7 8 9 10 11 94 chunks +100 lines, -4 lines 0 comments Download
M src/IceInstX8664.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +55 lines, -13 lines 0 comments Download
M src/IceInstX8664.def View 1 2 3 4 5 6 7 3 chunks +51 lines, -51 lines 0 comments Download
M src/IceInstX86Base.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +7 lines, -4 lines 0 comments Download
M src/IceInstX86BaseImpl.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +53 lines, -40 lines 0 comments Download
M src/IceRegAlloc.cpp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M src/IceTargetLoweringX8632Traits.h View 1 2 3 4 5 6 7 8 2 chunks +10 lines, -0 lines 2 comments Download
M src/IceTargetLoweringX8664.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 7 chunks +32 lines, -26 lines 0 comments Download
M src/IceTargetLoweringX8664Traits.h View 1 2 3 4 5 6 7 8 3 chunks +11 lines, -2 lines 0 comments Download
M src/IceTargetLoweringX86Base.h View 1 chunk +2 lines, -2 lines 0 comments Download
M src/IceTargetLoweringX86BaseImpl.h View 1 2 3 4 5 6 7 8 9 10 11 12 14 chunks +56 lines, -40 lines 0 comments Download
M src/IceTypes.def View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M unittest/AssemblerX8664/ControlFlow.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +3 lines, -2 lines 0 comments Download
M unittest/AssemblerX8664/GPRArith.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +8 lines, -5 lines 0 comments Download
M unittest/AssemblerX8664/Locked.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +47 lines, -37 lines 0 comments Download
M unittest/AssemblerX8664/LowLevel.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +525 lines, -508 lines 0 comments Download
M unittest/AssemblerX8664/TestUtil.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 13 (3 generated)
John
5 years ago (2015-12-18 18:51:28 UTC) #2
Jim Stichnoth
https://codereview.chromium.org/1537703002/diff/220001/Makefile.standalone File Makefile.standalone (right): https://codereview.chromium.org/1537703002/diff/220001/Makefile.standalone#newcode405 Makefile.standalone:405: -e x8632,sandbox,sse4.1,Om1 \ Why is this x8632 test now ...
5 years ago (2015-12-20 19:27:38 UTC) #3
John
https://codereview.chromium.org/1537703002/diff/220001/Makefile.standalone File Makefile.standalone (right): https://codereview.chromium.org/1537703002/diff/220001/Makefile.standalone#newcode405 Makefile.standalone:405: -e x8632,sandbox,sse4.1,Om1 \ On 2015/12/20 19:27:37, stichnot wrote: > ...
5 years ago (2015-12-21 13:41:32 UTC) #4
Jim Stichnoth
1. "make -f Makefile.standalone DEBUG=1 CHECK_X86_ASM=1 check-unit" fails. (All the other "make presubmit" works.) 2. ...
5 years ago (2015-12-21 15:48:48 UTC) #6
John
> 1. "make -f Makefile.standalone DEBUG=1 CHECK_X86_ASM=1 check-unit" fails. (All > the other "make presubmit" ...
5 years ago (2015-12-21 21:30:51 UTC) #7
Jim Stichnoth
LGTM. We also need to deal with lit tests at some point... :) https://codereview.chromium.org/1537703002/diff/280001/Makefile.standalone File ...
5 years ago (2015-12-22 15:36:16 UTC) #8
John
On 2015/12/22 15:36:16, stichnot wrote: > LGTM. > > We also need to deal with ...
5 years ago (2015-12-22 16:13:04 UTC) #9
John
Committed patchset #15 (id:280001) manually as 3c275ce1e832ba9ccfb730c4235db786cf080465 (presubmit successful).
5 years ago (2015-12-22 16:14:05 UTC) #11
John
https://codereview.chromium.org/1537703002/diff/280001/Makefile.standalone File Makefile.standalone (right): https://codereview.chromium.org/1537703002/diff/280001/Makefile.standalone#newcode403 Makefile.standalone:403: -e x8664,native,sse2 \ On 2015/12/22 15:36:16, stichnot wrote: > ...
5 years ago (2015-12-22 16:20:02 UTC) #12
Jim Stichnoth
5 years ago (2015-12-22 16:26:44 UTC) #13
Message was sent while issue was closed.
https://codereview.chromium.org/1537703002/diff/280001/Makefile.standalone
File Makefile.standalone (right):

https://codereview.chromium.org/1537703002/diff/280001/Makefile.standalone#ne...
Makefile.standalone:403: -e x8664,native,sse2 \
On 2015/12/22 16:20:01, John wrote:
> On 2015/12/22 15:36:16, stichnot wrote:
> > This doesn't actually do any x8664 tests, since no "-i" lines match x8664.
> > 
> > You might want
> >   -i x8664,native
> > 
> > Or, if you're trying to mirror x8632, change the first two "-e" to "-i" (and
> > then change the last one after sandboxing is implemented).
> 
> I know. This is on purpose: if I enable them before pushing the nacl CL, then
no
> one will be able to make presubmit. :(

Not true.  It's been common practice in Subzero to have to update to tip-of-tree
LLVM as necessary, particularly for the bitcode reader work.  And both options
worked for me when I tested.  Please get this enabled as soon possible, before
someone (me) breaks it again...

Powered by Google App Engine
This is Rietveld 408576698