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

Issue 509233002: Convert lit tests to check disassembled assembly. (Closed)

Created:
6 years, 3 months ago by jvoung (off chromium)
Modified:
6 years, 3 months ago
Reviewers:
Jim Stichnoth
CC:
native-client-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Visibility:
Public.

Description

Convert lit tests to check disassembled assembly. Then when we have an integrated assembler, we can check its disassembly and the result should be the same. This only touches the tests that invoke llvm-mc currently. There are other tests which check for .s file output. There are quite a bit of quirks with llvm-objdump, which is unfortunate: (*) The symbolizer doesn't pick up non-section-local function calls. Some externals were converted to be local functions. Workaround: where it counts, I just left a check via .s files and a new --check-prefix. It's a little better in 3.6. (*) The symbolizer doesn't pick up global variable names. I just checked for the relocation addend instead. Didn't check if it was better in 3.6, but maybe. (*) We have a bug in bundling lock + instructions. See BUG=https://code.google.com/p/nativeclient/issues/detail?id=3929 (*) There's no disassembly for branch lables. Checks of jump instructions were converted to check for positive or negative values, depending on whether it is a forward or backward branch. BUG=none R=stichnot@chromium.org Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=dddc306

Patch Set 1 #

Total comments: 1

Patch Set 2 : add comment #

Total comments: 20

Patch Set 3 : review #

Patch Set 4 : reorder some CALLTARGETS-LABEL #

Unified diffs Side-by-side diffs Delta from patch set Stats (+832 lines, -613 lines) Patch
M tests_lit/llvm2ice_tests/64bit.pnacl.ll View 1 2 3 18 chunks +115 lines, -88 lines 0 comments Download
M tests_lit/llvm2ice_tests/address-mode-opt.ll View 5 chunks +6 lines, -6 lines 0 comments Download
M tests_lit/llvm2ice_tests/alloc.ll View 5 chunks +19 lines, -13 lines 0 comments Download
M tests_lit/llvm2ice_tests/bitcast.ll View 1 2 2 chunks +5 lines, -4 lines 0 comments Download
M tests_lit/llvm2ice_tests/callindirect.pnacl.ll View 1 chunk +5 lines, -4 lines 0 comments Download
M tests_lit/llvm2ice_tests/cmp-opt.ll View 3 chunks +7 lines, -6 lines 0 comments Download
M tests_lit/llvm2ice_tests/convert.ll View 1 2 10 chunks +44 lines, -40 lines 0 comments Download
M tests_lit/llvm2ice_tests/div_legalization.ll View 1 chunk +4 lines, -4 lines 0 comments Download
M tests_lit/llvm2ice_tests/fp.pnacl.ll View 1 2 3 57 chunks +127 lines, -81 lines 0 comments Download
M tests_lit/llvm2ice_tests/fpconst.pnacl.ll View 2 chunks +12 lines, -8 lines 0 comments Download
M tests_lit/llvm2ice_tests/nacl-atomic-cmpxchg-optimization.ll View 1 2 6 chunks +25 lines, -18 lines 0 comments Download
M tests_lit/llvm2ice_tests/nacl-atomic-fence-all.ll View 1 2 7 chunks +17 lines, -13 lines 0 comments Download
M tests_lit/llvm2ice_tests/nacl-atomic-intrinsics.ll View 1 2 38 chunks +122 lines, -88 lines 0 comments Download
M tests_lit/llvm2ice_tests/nacl-other-intrinsics.ll View 18 chunks +94 lines, -52 lines 0 comments Download
M tests_lit/llvm2ice_tests/sdiv.ll View 1 chunk +4 lines, -4 lines 0 comments Download
M tests_lit/llvm2ice_tests/select-opt.ll View 1 2 2 chunks +12 lines, -6 lines 0 comments Download
M tests_lit/llvm2ice_tests/shift.ll View 1 2 3 chunks +6 lines, -6 lines 0 comments Download
M tests_lit/llvm2ice_tests/simple-loop.ll View 3 chunks +13 lines, -10 lines 0 comments Download
M tests_lit/llvm2ice_tests/undef.ll View 1 2 27 chunks +47 lines, -47 lines 0 comments Download
M tests_lit/llvm2ice_tests/unreachable.ll View 1 2 3 2 chunks +17 lines, -5 lines 0 comments Download
M tests_lit/llvm2ice_tests/vector-arg.ll View 1 2 7 chunks +33 lines, -32 lines 0 comments Download
M tests_lit/llvm2ice_tests/vector-arith.ll View 1 2 3 2 chunks +25 lines, -14 lines 0 comments Download
M tests_lit/llvm2ice_tests/vector-bitcast.ll View 1 2 3 21 chunks +29 lines, -30 lines 0 comments Download
M tests_lit/llvm2ice_tests/vector-cast.ll View 3 chunks +16 lines, -6 lines 0 comments Download
M tests_lit/llvm2ice_tests/vector-fcmp.ll View 1 chunk +4 lines, -4 lines 0 comments Download
M tests_lit/llvm2ice_tests/vector-icmp.ll View 1 chunk +4 lines, -4 lines 0 comments Download
M tests_lit/llvm2ice_tests/vector-ops.ll View 1 chunk +10 lines, -10 lines 0 comments Download
M tests_lit/llvm2ice_tests/vector-select.ll View 1 chunk +10 lines, -10 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
jvoung (off chromium)
jvoung@chromium.org changed reviewers: + stichnot@chromium.org
6 years, 3 months ago (2014-08-28 02:21:29 UTC) #1
jvoung (off chromium)
https://codereview.chromium.org/509233002/diff/1/tests_lit/llvm2ice_tests/nacl-atomic-fence-all.ll File tests_lit/llvm2ice_tests/nacl-atomic-fence-all.ll (right): https://codereview.chromium.org/509233002/diff/1/tests_lit/llvm2ice_tests/nacl-atomic-fence-all.ll#newcode190 tests_lit/llvm2ice_tests/nacl-atomic-fence-all.ll:190: ; CHECK: lea {{.*}}, g32_d is in bss instead, ...
6 years, 3 months ago (2014-08-28 02:21:36 UTC) #2
jvoung (off chromium)
https://codereview.chromium.org/509233002/diff/20001/tests_lit/llvm2ice_tests/64bit.pnacl.ll File tests_lit/llvm2ice_tests/64bit.pnacl.ll (right): https://codereview.chromium.org/509233002/diff/20001/tests_lit/llvm2ice_tests/64bit.pnacl.ll#newcode7 tests_lit/llvm2ice_tests/64bit.pnacl.ll:7: ; It was only fixed in 3.6. Okay, I ...
6 years, 3 months ago (2014-08-28 17:31:07 UTC) #3
Jim Stichnoth
https://codereview.chromium.org/509233002/diff/20001/tests_lit/llvm2ice_tests/64bit.pnacl.ll File tests_lit/llvm2ice_tests/64bit.pnacl.ll (left): https://codereview.chromium.org/509233002/diff/20001/tests_lit/llvm2ice_tests/64bit.pnacl.ll#oldcode43 tests_lit/llvm2ice_tests/64bit.pnacl.ll:43: ; CHECK sub esp Even though this line was ...
6 years, 3 months ago (2014-08-28 20:19:23 UTC) #4
jvoung (off chromium)
Thanks! https://codereview.chromium.org/509233002/diff/20001/tests_lit/llvm2ice_tests/64bit.pnacl.ll File tests_lit/llvm2ice_tests/64bit.pnacl.ll (left): https://codereview.chromium.org/509233002/diff/20001/tests_lit/llvm2ice_tests/64bit.pnacl.ll#oldcode43 tests_lit/llvm2ice_tests/64bit.pnacl.ll:43: ; CHECK sub esp On 2014/08/28 20:19:23, stichnot ...
6 years, 3 months ago (2014-08-29 00:51:20 UTC) #5
Jim Stichnoth
Otherwise LGTM. https://codereview.chromium.org/509233002/diff/20001/tests_lit/llvm2ice_tests/64bit.pnacl.ll File tests_lit/llvm2ice_tests/64bit.pnacl.ll (right): https://codereview.chromium.org/509233002/diff/20001/tests_lit/llvm2ice_tests/64bit.pnacl.ll#newcode53 tests_lit/llvm2ice_tests/64bit.pnacl.ll:53: ; CALLTARGETS-LABEL: pass64BitArg On 2014/08/29 00:51:20, jvoung ...
6 years, 3 months ago (2014-08-29 16:40:49 UTC) #6
jvoung (off chromium)
https://codereview.chromium.org/509233002/diff/20001/tests_lit/llvm2ice_tests/64bit.pnacl.ll File tests_lit/llvm2ice_tests/64bit.pnacl.ll (right): https://codereview.chromium.org/509233002/diff/20001/tests_lit/llvm2ice_tests/64bit.pnacl.ll#newcode53 tests_lit/llvm2ice_tests/64bit.pnacl.ll:53: ; CALLTARGETS-LABEL: pass64BitArg On 2014/08/29 16:40:49, stichnot wrote: > ...
6 years, 3 months ago (2014-08-29 19:27:48 UTC) #7
jvoung (off chromium)
6 years, 3 months ago (2014-08-29 19:59:08 UTC) #8
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as dddc306 (tree was closed).

Powered by Google App Engine
This is Rietveld 408576698