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

Issue 914263005: Subzero: switch from llvm-objdump to objdump for lit tests (for LLVM merge) (Closed)

Created:
5 years, 10 months ago by jvoung (off chromium)
Modified:
5 years, 10 months ago
Reviewers:
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

Subzero: switch from llvm-objdump to objdump for lit tests (for LLVM merge) After the next LLVM merge, llvm-objdump is going to lose the "--symbolize" flag. It also sounds like llvm-objdump may at some point converge to the objdump-style of output. So, rather than keep updating test expectations, switch to objdump, assuming objdump will be more stable than llvm-objdump. Also stash the assembler/disassembler commandlines in the run-llvm2ice.py script. In theory this will let us tweak the commandlines more easily (one place). In practice the test expectatations will probably need to be adjusted if the base commandlines change though. Bulk edit the test expectations to match objdump now. Some of this is assisted by a python script. Example script: https://codereview.chromium.org/928663002/ BUG= https://code.google.com/p/nativeclient/issues/detail?id=4026 R=kschimpf@google.com, stichnot@chromium.org Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=a2703ae428a7c72b7716258b8ee157064d03c5cb

Patch Set 1 #

Total comments: 2

Patch Set 2 : script missed some, re-run script #

Patch Set 3 : backup... 9 to go #

Total comments: 2

Patch Set 4 : cleanup -- use work dir too #

Patch Set 5 : Remove last reference to llvm-objdump #

Patch Set 6 : canonicalize a bit #

Patch Set 7 : reorder lit.cfg #

Patch Set 8 : fix some line wrap #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1568 lines, -1744 lines) Patch
M Makefile.standalone View 1 2 3 3 chunks +6 lines, -0 lines 0 comments Download
M pydir/run-llvm2ice.py View 1 2 3 4 4 chunks +32 lines, -0 lines 0 comments Download
M tests_lit/assembler/x86/immediate_encodings.ll View 27 chunks +39 lines, -40 lines 0 comments Download
M tests_lit/assembler/x86/jump_encodings.ll View 7 chunks +28 lines, -43 lines 0 comments Download
M tests_lit/assembler/x86/opcode_register_encodings.ll View 14 chunks +54 lines, -55 lines 0 comments Download
M tests_lit/lit.cfg View 1 2 3 4 5 6 5 chunks +18 lines, -4 lines 0 comments Download
M tests_lit/llvm2ice_tests/64bit.pnacl.ll View 1 2 3 37 chunks +156 lines, -159 lines 0 comments Download
M tests_lit/llvm2ice_tests/8bit.pnacl.ll View 27 chunks +33 lines, -35 lines 0 comments Download
M tests_lit/llvm2ice_tests/address-mode-opt.ll View 1 2 13 chunks +32 lines, -35 lines 0 comments Download
M tests_lit/llvm2ice_tests/align-spill-locations.ll View 6 chunks +21 lines, -23 lines 0 comments Download
M tests_lit/llvm2ice_tests/alloc.ll View 1 2 8 chunks +48 lines, -56 lines 0 comments Download
M tests_lit/llvm2ice_tests/bitcast.ll View 5 chunks +10 lines, -12 lines 0 comments Download
M tests_lit/llvm2ice_tests/branch-opt.ll View 1 2 5 chunks +6 lines, -10 lines 0 comments Download
M tests_lit/llvm2ice_tests/callindirect.pnacl.ll View 1 chunk +3 lines, -6 lines 0 comments Download
M tests_lit/llvm2ice_tests/cmp-opt.ll View 1 chunk +3 lines, -6 lines 0 comments Download
M tests_lit/llvm2ice_tests/convert.ll View 1 2 3 9 chunks +49 lines, -54 lines 0 comments Download
M tests_lit/llvm2ice_tests/div_legalization.ll View 1 2 6 chunks +16 lines, -18 lines 0 comments Download
M tests_lit/llvm2ice_tests/ebp_args.ll View 1 2 3 4 5 3 chunks +21 lines, -22 lines 0 comments Download
M tests_lit/llvm2ice_tests/elf_container.ll View 1 2 3 4 5 chunks +9 lines, -17 lines 0 comments Download
M tests_lit/llvm2ice_tests/fp.pnacl.ll View 1 2 3 4 67 chunks +114 lines, -123 lines 0 comments Download
M tests_lit/llvm2ice_tests/fpcall.ll View 1 2 3 4 chunks +8 lines, -14 lines 0 comments Download
M tests_lit/llvm2ice_tests/fpconst.pnacl.ll View 1 2 3 4 2 chunks +5 lines, -7 lines 0 comments Download
M tests_lit/llvm2ice_tests/function_aligned.ll View 1 chunk +2 lines, -3 lines 0 comments Download
M tests_lit/llvm2ice_tests/globalinit.pnacl.ll View 1 2 3 4 2 chunks +14 lines, -25 lines 0 comments Download
M tests_lit/llvm2ice_tests/mangle.ll View 1 2 3 4 1 chunk +3 lines, -3 lines 0 comments Download
M tests_lit/llvm2ice_tests/nacl-atomic-cmpxchg-optimization.ll View 1 2 3 6 chunks +8 lines, -18 lines 0 comments Download
M tests_lit/llvm2ice_tests/nacl-atomic-fence-all.ll View 1 2 3 6 chunks +33 lines, -49 lines 0 comments Download
M tests_lit/llvm2ice_tests/nacl-atomic-intrinsics.ll View 1 2 3 57 chunks +161 lines, -206 lines 0 comments Download
M tests_lit/llvm2ice_tests/nacl-other-intrinsics.ll View 1 2 3 27 chunks +72 lines, -78 lines 0 comments Download
M tests_lit/llvm2ice_tests/nop-insertion.ll View 3 chunks +3 lines, -3 lines 0 comments Download
M tests_lit/llvm2ice_tests/phi.ll View 1 2 3 5 chunks +20 lines, -20 lines 0 comments Download
M tests_lit/llvm2ice_tests/randomize-regalloc.ll View 1 2 3 1 chunk +54 lines, -58 lines 0 comments Download
M tests_lit/llvm2ice_tests/returns_twice_no_coalesce.ll View 1 2 3 chunks +10 lines, -11 lines 0 comments Download
M tests_lit/llvm2ice_tests/sdiv.ll View 7 chunks +10 lines, -12 lines 0 comments Download
M tests_lit/llvm2ice_tests/select-opt.ll View 1 2 3 4 chunks +9 lines, -17 lines 0 comments Download
M tests_lit/llvm2ice_tests/shift.ll View 1 2 3 4 5 6 7 3 chunks +8 lines, -10 lines 0 comments Download
M tests_lit/llvm2ice_tests/simple-loop.ll View 1 2 2 chunks +9 lines, -12 lines 0 comments Download
M tests_lit/llvm2ice_tests/switch-opt.ll View 1 2 3 4 chunks +13 lines, -14 lines 0 comments Download
M tests_lit/llvm2ice_tests/test_i1.ll View 1 2 15 chunks +37 lines, -39 lines 0 comments Download
M tests_lit/llvm2ice_tests/undef.ll View 1 2 3 4 5 6 7 3 chunks +13 lines, -17 lines 0 comments Download
M tests_lit/llvm2ice_tests/unreachable.ll View 1 2 2 chunks +5 lines, -7 lines 0 comments Download
M tests_lit/llvm2ice_tests/vector-arg.ll View 1 2 6 chunks +106 lines, -109 lines 0 comments Download
M tests_lit/llvm2ice_tests/vector-arith.ll View 1 2 3 4 5 6 7 43 chunks +53 lines, -59 lines 0 comments Download
M tests_lit/llvm2ice_tests/vector-bitcast.ll View 1 2 19 chunks +31 lines, -34 lines 0 comments Download
M tests_lit/llvm2ice_tests/vector-cast.ll View 1 2 14 chunks +23 lines, -25 lines 0 comments Download
M tests_lit/llvm2ice_tests/vector-fcmp.ll View 18 chunks +21 lines, -23 lines 0 comments Download
M tests_lit/llvm2ice_tests/vector-icmp.ll View 55 chunks +58 lines, -60 lines 0 comments Download
M tests_lit/llvm2ice_tests/vector-ops.ll View 1 2 3 4 5 6 7 16 chunks +49 lines, -55 lines 0 comments Download
M tests_lit/llvm2ice_tests/vector-select.ll View 1 2 3 4 5 6 7 1 chunk +32 lines, -38 lines 0 comments Download

Messages

Total messages: 10 (1 generated)
jvoung (off chromium)
This is not really ready at all, but roughly what the changes look like. https://codereview.chromium.org/914263005/diff/1/tests_lit/llvm2ice_tests/nacl-atomic-cmpxchg-optimization.ll ...
5 years, 10 months ago (2015-02-13 23:37:23 UTC) #2
Karl
https://codereview.chromium.org/914263005/diff/40001/Makefile.standalone File Makefile.standalone (right): https://codereview.chromium.org/914263005/diff/40001/Makefile.standalone#newcode33 Makefile.standalone:33: ../../out/binutils_pnacl_x86_64_linux_install/bin) Why is this different than other lines suchas ...
5 years, 10 months ago (2015-02-16 18:50:13 UTC) #3
jvoung (off chromium)
Okay tests pass again, PTAL thanks! https://codereview.chromium.org/914263005/diff/40001/Makefile.standalone File Makefile.standalone (right): https://codereview.chromium.org/914263005/diff/40001/Makefile.standalone#newcode33 Makefile.standalone:33: ../../out/binutils_pnacl_x86_64_linux_install/bin) On 2015/02/16 ...
5 years, 10 months ago (2015-02-17 22:17:04 UTC) #4
Karl
lgtm
5 years, 10 months ago (2015-02-19 16:34:26 UTC) #5
Jim Stichnoth
Also lgtm - and bonus points if you feel like converting to AT&T syntax. :)
5 years, 10 months ago (2015-02-19 18:58:10 UTC) #6
jvoung (off chromium)
On 2015/02/19 18:58:10, stichnot wrote: > Also lgtm - and bonus points if you feel ...
5 years, 10 months ago (2015-02-19 19:23:10 UTC) #7
jvoung (off chromium)
On 2015/02/19 19:23:10, jvoung wrote: > On 2015/02/19 18:58:10, stichnot wrote: > > Also lgtm ...
5 years, 10 months ago (2015-02-19 19:23:42 UTC) #8
jvoung (off chromium)
Committed patchset #8 (id:140001) manually as a2703ae428a7c72b7716258b8ee157064d03c5cb (tree was closed).
5 years, 10 months ago (2015-02-19 19:27:54 UTC) #9
Jim Stichnoth
5 years, 10 months ago (2015-02-19 19:29:20 UTC) #10
Message was sent while issue was closed.
On 2015/02/19 19:23:42, jvoung wrote:
> On 2015/02/19 19:23:10, jvoung wrote:
> > On 2015/02/19 18:58:10, stichnot wrote:
> > > Also lgtm - and bonus points if you feel like converting to AT&T syntax.
:)
> > 
> > Queue Michael Scott meme.
> 
> or cue?

Some employees like to convert to AT&T syntax, and we encourage that.

Powered by Google App Engine
This is Rietveld 408576698