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

Issue 1407063002: Subzero. Misc ARM32 bugfixes. (Closed)

Created:
5 years, 2 months ago by John
Modified:
5 years, 1 month ago
Reviewers:
sehr, Karl, Jim Stichnoth
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

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 10

Patch Set 4 : Addresses comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+185 lines, -97 lines) Patch
M pydir/szbuild.py View 1 2 3 7 chunks +54 lines, -15 lines 0 comments Download
M pydir/szbuild_spec2k.py View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M src/IceCfg.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/IceInstARM32.cpp View 1 4 chunks +46 lines, -29 lines 0 comments Download
M src/IceTargetLoweringARM32.cpp View 1 2 3 9 chunks +38 lines, -13 lines 0 comments Download
M tests_lit/llvm2ice_tests/bool-folding.ll View 1 2 3 3 chunks +41 lines, -38 lines 0 comments Download
M tests_lit/llvm2ice_tests/branch-opt.ll View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (1 generated)
John
5 years, 2 months ago (2015-10-15 22:38:34 UTC) #2
John
If you want to try this, you need to patch https://codereview.chromium.org/1412503002/ and build_toolchain_pnacl.py
5 years, 2 months ago (2015-10-15 22:39:09 UTC) #3
Jim Stichnoth
Otherwise LGTM. Sweet CL to review! https://chromiumcodereview.appspot.com/1407063002/diff/40001/pydir/szbuild.py File pydir/szbuild.py (right): https://chromiumcodereview.appspot.com/1407063002/diff/40001/pydir/szbuild.py#newcode93 pydir/szbuild.py:93: help='Tells Subzero to ...
5 years, 2 months ago (2015-10-15 23:34:21 UTC) #4
Jim Stichnoth
Otherwise LGTM. Sweet CL to review!
5 years, 2 months ago (2015-10-15 23:34:21 UTC) #5
John
Committed patchset #4 (id:60001) manually as afc92af527400151b903745534c3aaf4bbedc61c (presubmit successful).
5 years, 2 months ago (2015-10-16 17:34:08 UTC) #6
John
5 years, 1 month ago (2015-11-05 20:25:13 UTC) #7
Message was sent while issue was closed.
https://codereview.chromium.org/1407063002/diff/40001/pydir/szbuild.py
File pydir/szbuild.py (right):

https://codereview.chromium.org/1407063002/diff/40001/pydir/szbuild.py#newcode93
pydir/szbuild.py:93: help='Tells Subzero to generate code for the '
On 2015/10/15 23:34:21, stichnot wrote:
> Bikeshed:
>   help='Generate code for specified target'

Done.

https://codereview.chromium.org/1407063002/diff/40001/pydir/szbuild_spec2k.py
File pydir/szbuild_spec2k.py (right):

https://codereview.chromium.org/1407063002/diff/40001/pydir/szbuild_spec2k.py...
pydir/szbuild_spec2k.py:39: # suffix = 'pnacl.opt.arm32' if args.sandbox else
'gcc.opt.arm32'
On 2015/10/15 23:34:21, stichnot wrote:
> Delete this comment?

Done.

https://codereview.chromium.org/1407063002/diff/40001/src/IceCfg.cpp
File src/IceCfg.cpp (right):

https://codereview.chromium.org/1407063002/diff/40001/src/IceCfg.cpp#newcode685
src/IceCfg.cpp:685: Str << "\t.section\t.text." << MangledName <<
",\"ax\",%progbits\n";
On 2015/10/15 23:34:21, stichnot wrote:
> Just checking -- is this syntax also valid for x86-32?

well, szbuild_spec2k.py --target=x8632 --filetype=asm && run_all.sh reported
success, so I think it is.

https://codereview.chromium.org/1407063002/diff/40001/src/IceTargetLoweringAR...
File src/IceTargetLoweringARM32.cpp (right):

https://codereview.chromium.org/1407063002/diff/40001/src/IceTargetLoweringAR...
src/IceTargetLoweringARM32.cpp:1816: if (Src0R->getType() != IceType_i32)
On 2015/10/15 23:34:21, stichnot wrote:
> Won't it always be the case that Src0R->getType() == IceType_i1 ?

maybe, but better safe than sorry. I left an assert for quick test failure, but
I left the if here.

https://codereview.chromium.org/1407063002/diff/40001/src/IceTargetLoweringAR...
src/IceTargetLoweringARM32.cpp:3335: if (CmpOpnd0->getType() != IceType_i32)
On 2015/10/15 23:34:21, stichnot wrote:
> Same comment as above -- isn't the type always IceType_i1?

Done.

Powered by Google App Engine
This is Rietveld 408576698