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

Issue 1531623007: Add option to force filetype=asm for testing (Closed)

Created:
5 years ago by sehr
Modified:
4 years, 11 months ago
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

Add option to force filetype=asm for testing Also turn it on for presubmit testing. BUG= R=stichnot@chromium.org Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=b19d39cc5fa8dc60c678c2507af02147184f168f

Patch Set 1 #

Patch Set 2 : Progress towards LIT tests working #

Patch Set 3 : Formatting #

Total comments: 22

Patch Set 4 : More lit tests pass. #

Patch Set 5 : All lit tests now work. #

Patch Set 6 : code review fixes. #

Patch Set 7 : Formatting #

Patch Set 8 : Remove <32 bit assertion. #

Patch Set 9 : Fix merge ordering issue. #

Total comments: 26

Patch Set 10 : Code review fixes. Tighter ABI checks. #

Total comments: 20

Patch Set 11 : Remove unnecessary parens #

Patch Set 12 : Code review fixes. #

Patch Set 13 : Function parameters are now pnacl abi compliant. #

Total comments: 14

Patch Set 14 : Script option handling cleanups, other code review comments #

Patch Set 15 : Missed one --sandbox in the wrong place. #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+345 lines, -224 lines) Patch
M Makefile.standalone View 1 2 3 4 5 6 7 8 9 5 chunks +20 lines, -2 lines 0 comments Download
M pydir/crosstest_generator.py View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +4 lines, -0 lines 0 comments Download
M pydir/run-pnacl-sz.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +52 lines, -15 lines 6 comments Download
M runtime/szrt_ll.ll View 1 2 3 4 5 6 7 8 9 1 chunk +6 lines, -4 lines 0 comments Download
M src/IceInstX86Base.h View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +36 lines, -23 lines 0 comments Download
M src/IceRegAlloc.cpp View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M src/IceTargetLoweringX8632.cpp View 1 2 3 4 5 6 7 8 9 4 chunks +16 lines, -12 lines 0 comments Download
M src/IceTargetLoweringX8632Traits.h View 1 2 3 4 5 6 7 8 9 1 chunk +12 lines, -1 line 0 comments Download
M src/IceTargetLoweringX8664.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -5 lines 0 comments Download
M src/IceTargetLoweringX86Base.h View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -2 lines 0 comments Download
M src/IceTargetLoweringX86BaseImpl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +18 lines, -4 lines 0 comments Download
M tests_lit/assembler/x86/jump_encodings.ll View 1 2 3 4 5 6 7 8 9 1 chunk +9 lines, -8 lines 0 comments Download
M tests_lit/assembler/x86/opcode_register_encodings.ll View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M tests_lit/lit.cfg View 1 chunk +2 lines, -0 lines 0 comments Download
M tests_lit/llvm2ice_tests/8bit.pnacl.ll View 1 1 chunk +1 line, -1 line 0 comments Download
M tests_lit/llvm2ice_tests/address-mode-global.ll View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -2 lines 0 comments Download
M tests_lit/llvm2ice_tests/bitcast.ll View 1 1 chunk +2 lines, -2 lines 0 comments Download
M tests_lit/llvm2ice_tests/contract.ll View 1 1 chunk +0 lines, -1 line 0 comments Download
M tests_lit/llvm2ice_tests/convert.ll View 1 2 3 4 5 6 7 8 9 10 8 chunks +35 lines, -35 lines 0 comments Download
M tests_lit/llvm2ice_tests/elf_container.ll View 1 2 3 4 4 chunks +5 lines, -5 lines 0 comments Download
M tests_lit/llvm2ice_tests/elf_function_sections.ll View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M tests_lit/llvm2ice_tests/elf_nodata.ll View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M tests_lit/llvm2ice_tests/loop-nest-depth.ll View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -2 lines 0 comments Download
M tests_lit/llvm2ice_tests/nacl-atomic-fence-all.ll View 1 5 chunks +21 lines, -21 lines 0 comments Download
M tests_lit/llvm2ice_tests/nacl-atomic-intrinsics.ll View 1 9 chunks +18 lines, -18 lines 0 comments Download
M tests_lit/llvm2ice_tests/nacl-mem-intrinsics.ll View 1 1 chunk +3 lines, -3 lines 0 comments Download
M tests_lit/llvm2ice_tests/nacl-other-intrinsics.ll View 1 4 chunks +9 lines, -9 lines 0 comments Download
M tests_lit/llvm2ice_tests/nonsfi.ll View 1 2 3 4 5 6 7 8 9 10 11 8 chunks +14 lines, -10 lines 0 comments Download
M tests_lit/llvm2ice_tests/nop-insertion.ll View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M tests_lit/llvm2ice_tests/phi_invalid.test View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M tests_lit/llvm2ice_tests/randomize-pool-immediate-basic.ll View 1 6 chunks +6 lines, -6 lines 0 comments Download
M tests_lit/llvm2ice_tests/square.ll View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +10 lines, -6 lines 0 comments Download
M tests_lit/llvm2ice_tests/strength-reduce.ll View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +16 lines, -12 lines 0 comments Download
M tests_lit/llvm2ice_tests/test_i1.ll View 1 chunk +1 line, -1 line 0 comments Download
M tests_lit/llvm2ice_tests/vector-bitcast.ll View 1 2 3 4 5 6 7 8 9 2 chunks +6 lines, -4 lines 0 comments Download

Messages

Total messages: 15 (3 generated)
sehr
PTAL.
5 years ago (2015-12-18 01:25:05 UTC) #3
Jim Stichnoth
https://codereview.chromium.org/1531623007/diff/40001/Makefile.standalone File Makefile.standalone (right): https://codereview.chromium.org/1531623007/diff/40001/Makefile.standalone#newcode143 Makefile.standalone:143: FORCEASM_XTEST_EXCLUDES = -e x8632,sandbox,test_sync_atomic Explain this, e.g.: # With ...
5 years ago (2015-12-20 18:42:23 UTC) #4
sehr
OK, it now works for all lit and xtest tests, and I've attempted to address ...
4 years, 11 months ago (2016-01-07 18:53:12 UTC) #5
Jim Stichnoth
https://codereview.chromium.org/1531623007/diff/160001/Makefile.standalone File Makefile.standalone (right): https://codereview.chromium.org/1531623007/diff/160001/Makefile.standalone#newcode485 Makefile.standalone:485: # Run spec2k for x86-32. Can you fix this ...
4 years, 11 months ago (2016-01-10 03:08:56 UTC) #6
sehr
Thanks for the review. I think I've addressed your request. PTAL. https://codereview.chromium.org/1531623007/diff/160001/Makefile.standalone File Makefile.standalone (right): ...
4 years, 11 months ago (2016-01-11 21:49:48 UTC) #7
Jim Stichnoth
https://codereview.chromium.org/1531623007/diff/180001/pydir/crosstest_generator.py File pydir/crosstest_generator.py (right): https://codereview.chromium.org/1531623007/diff/180001/pydir/crosstest_generator.py#newcode111 pydir/crosstest_generator.py:111: help='File type override, set to {asm, iasm, obj}.') Bikeshed: ...
4 years, 11 months ago (2016-01-12 14:54:03 UTC) #8
sehr
I changed the parameter types requested by Karl. PTAL to both of you :-). https://codereview.chromium.org/1531623007/diff/180001/pydir/crosstest_generator.py ...
4 years, 11 months ago (2016-01-12 19:01:19 UTC) #9
Jim Stichnoth
https://codereview.chromium.org/1531623007/diff/240001/pydir/run-pnacl-sz.py File pydir/run-pnacl-sz.py (right): https://codereview.chromium.org/1531623007/diff/240001/pydir/run-pnacl-sz.py#newcode158 pydir/run-pnacl-sz.py:158: # Redirecting the output file needs to be done ...
4 years, 11 months ago (2016-01-13 00:36:44 UTC) #10
sehr
Thanks again. PTAL. https://codereview.chromium.org/1531623007/diff/240001/pydir/run-pnacl-sz.py File pydir/run-pnacl-sz.py (right): https://codereview.chromium.org/1531623007/diff/240001/pydir/run-pnacl-sz.py#newcode158 pydir/run-pnacl-sz.py:158: # Redirecting the output file needs ...
4 years, 11 months ago (2016-01-13 18:15:35 UTC) #11
Jim Stichnoth
otherwise lgtm https://codereview.chromium.org/1531623007/diff/280001/pydir/run-pnacl-sz.py File pydir/run-pnacl-sz.py (right): https://codereview.chromium.org/1531623007/diff/280001/pydir/run-pnacl-sz.py#newcode159 pydir/run-pnacl-sz.py:159: for _, j in enumerate(args.args): 'j' looks ...
4 years, 11 months ago (2016-01-13 22:00:44 UTC) #12
sehr
Committed patchset #15 (id:280001) manually as b19d39cc5fa8dc60c678c2507af02147184f168f (presubmit successful).
4 years, 11 months ago (2016-01-13 22:17:42 UTC) #14
sehr
4 years, 11 months ago (2016-01-13 22:19:39 UTC) #15
Message was sent while issue was closed.
Committed.

https://codereview.chromium.org/1531623007/diff/280001/pydir/run-pnacl-sz.py
File pydir/run-pnacl-sz.py (right):

https://codereview.chromium.org/1531623007/diff/280001/pydir/run-pnacl-sz.py#...
pydir/run-pnacl-sz.py:159: for _, j in enumerate(args.args):
On 2016/01/13 22:00:44, stichnot wrote:
> 'j' looks kind of odd as a variable name here.  How about 'arg'?

Done.

https://codereview.chromium.org/1531623007/diff/280001/pydir/run-pnacl-sz.py#...
pydir/run-pnacl-sz.py:164: if
re.search('^-?-(o|filetype|target|sandbox)(=.+)?$', j):
On 2016/01/13 22:00:44, stichnot wrote:
> add 'output' as well because pnacl-sz -o and --output are the same

Done.

https://codereview.chromium.org/1531623007/diff/280001/pydir/run-pnacl-sz.py#...
pydir/run-pnacl-sz.py:168: preferred_option = j
On 2016/01/13 22:00:44, stichnot wrote:
> preferred_option = '--output' if re.search('^-?-o', j) else j
> 
> also, may want to check for the '-o=' form.

Done.  Thanks, I should have thought of that...

Powered by Google App Engine
This is Rietveld 408576698