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

Issue 695993004: Subzero: Switch to AT&T asm syntax. I give up. (Closed)

Created:
6 years, 1 month ago by Jim Stichnoth
Modified:
6 years, 1 month ago
CC:
native-client-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Visibility:
Public.

Description

Subzero: Switch to AT&T asm syntax. I give up. The main motivation is that -build-on-read introduces Intel-style asm output like: mov al, byte ptr [flags] and llvm-mc misinterprets the global symbol "flags" as the flags register. Further workarounds will likely cost more effort than switching over to AT&T syntax. Most of the lit tests don't need changing, since the asm text is generated by assembling and disassembling the llvm2ice asm output. There some LEAHACK TODOs that can be fixed, but that would change some of the instructions, so that can be a separate CL. The Operand emit() routines really ought to be moved entirely into the target-specific source files. BUG= none R=jvoung@chromium.org Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=bca2f65551c65fdc18278bf88025c11d8af18579

Patch Set 1 #

Total comments: 4

Patch Set 2 : Minor cleanup #

Total comments: 10

Patch Set 3 : Add opcode suffix to xchg. Use .L$ prefix for constant pool entries. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+353 lines, -381 lines) Patch
M pydir/crosstest.py View 1 chunk +0 lines, -1 line 0 comments Download
M pydir/szbuild.py View 1 1 chunk +1 line, -2 lines 0 comments Download
M src/IceCfg.cpp View 1 chunk +0 lines, -1 line 0 comments Download
M src/IceInstX8632.h View 1 5 chunks +18 lines, -9 lines 0 comments Download
M src/IceInstX8632.cpp View 1 2 40 chunks +164 lines, -185 lines 0 comments Download
M src/IceInstX8632.def View 1 chunk +18 lines, -18 lines 0 comments Download
M src/IceOperand.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/IceOperand.cpp View 2 chunks +7 lines, -1 line 0 comments Download
M src/IceTargetLoweringX8632.cpp View 1 2 7 chunks +11 lines, -17 lines 0 comments Download
M src/assembler_ia32.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tests_lit/assembler/x86/immediate_encodings.ll View 1 chunk +1 line, -1 line 0 comments Download
M tests_lit/assembler/x86/jump_encodings.ll View 1 chunk +1 line, -1 line 0 comments Download
M tests_lit/assembler/x86/opcode_register_encodings.ll View 1 chunk +1 line, -1 line 0 comments Download
M tests_lit/llvm2ice_tests/64bit.pnacl.ll View 1 chunk +2 lines, -2 lines 0 comments Download
M tests_lit/llvm2ice_tests/8bit.pnacl.ll View 1 chunk +2 lines, -2 lines 0 comments Download
M tests_lit/llvm2ice_tests/address-mode-opt.ll View 1 chunk +2 lines, -2 lines 0 comments Download
M tests_lit/llvm2ice_tests/align-spill-locations.ll View 1 chunk +2 lines, -2 lines 0 comments Download
M tests_lit/llvm2ice_tests/alloc.ll View 1 chunk +2 lines, -2 lines 0 comments Download
M tests_lit/llvm2ice_tests/bitcast.ll View 1 chunk +2 lines, -2 lines 0 comments Download
M tests_lit/llvm2ice_tests/branch-opt.ll View 1 chunk +2 lines, -2 lines 0 comments Download
M tests_lit/llvm2ice_tests/callindirect.pnacl.ll View 1 chunk +2 lines, -2 lines 0 comments Download
M tests_lit/llvm2ice_tests/cmp-opt.ll View 1 chunk +2 lines, -2 lines 0 comments Download
M tests_lit/llvm2ice_tests/convert.ll View 1 chunk +2 lines, -2 lines 0 comments Download
M tests_lit/llvm2ice_tests/div_legalization.ll View 1 chunk +2 lines, -2 lines 0 comments Download
M tests_lit/llvm2ice_tests/ebp_args.ll View 1 chunk +1 line, -1 line 0 comments Download
M tests_lit/llvm2ice_tests/fp.pnacl.ll View 1 chunk +2 lines, -2 lines 0 comments Download
M tests_lit/llvm2ice_tests/fpcall.ll View 1 chunk +2 lines, -2 lines 0 comments Download
M tests_lit/llvm2ice_tests/fpconst.pnacl.ll View 1 chunk +2 lines, -2 lines 0 comments Download
M tests_lit/llvm2ice_tests/function_aligned.ll View 1 chunk +1 line, -1 line 0 comments Download
M tests_lit/llvm2ice_tests/globalinit.pnacl.ll View 2 chunks +9 lines, -23 lines 0 comments Download
M tests_lit/llvm2ice_tests/mangle.ll View 1 chunk +1 line, -1 line 0 comments Download
M tests_lit/llvm2ice_tests/nacl-atomic-cmpxchg-optimization.ll View 1 chunk +2 lines, -2 lines 0 comments Download
M tests_lit/llvm2ice_tests/nacl-atomic-fence-all.ll View 1 chunk +1 line, -1 line 0 comments Download
M tests_lit/llvm2ice_tests/nacl-atomic-intrinsics.ll View 1 chunk +3 lines, -3 lines 0 comments Download
M tests_lit/llvm2ice_tests/nacl-other-intrinsics.ll View 2 chunks +4 lines, -4 lines 0 comments Download
M tests_lit/llvm2ice_tests/nop-insertion.ll View 1 chunk +39 lines, -39 lines 0 comments Download
M tests_lit/llvm2ice_tests/phi.ll View 1 chunk +1 line, -1 line 0 comments Download
M tests_lit/llvm2ice_tests/returns_twice_no_coalesce.ll View 1 chunk +1 line, -1 line 0 comments Download
M tests_lit/llvm2ice_tests/sdiv.ll View 1 chunk +2 lines, -2 lines 0 comments Download
M tests_lit/llvm2ice_tests/select-opt.ll View 1 chunk +2 lines, -2 lines 0 comments Download
M tests_lit/llvm2ice_tests/shift.ll View 1 chunk +2 lines, -2 lines 0 comments Download
M tests_lit/llvm2ice_tests/simple-loop.ll View 1 chunk +2 lines, -2 lines 0 comments Download
M tests_lit/llvm2ice_tests/test_i1.ll View 1 chunk +2 lines, -2 lines 0 comments Download
M tests_lit/llvm2ice_tests/undef.ll View 1 chunk +4 lines, -4 lines 0 comments Download
M tests_lit/llvm2ice_tests/unreachable.ll View 1 chunk +2 lines, -2 lines 0 comments Download
M tests_lit/llvm2ice_tests/vector-arg.ll View 1 chunk +2 lines, -2 lines 0 comments Download
M tests_lit/llvm2ice_tests/vector-arith.ll View 1 chunk +4 lines, -4 lines 0 comments Download
M tests_lit/llvm2ice_tests/vector-bitcast.ll View 1 chunk +2 lines, -2 lines 0 comments Download
M tests_lit/llvm2ice_tests/vector-cast.ll View 1 chunk +2 lines, -2 lines 0 comments Download
M tests_lit/llvm2ice_tests/vector-fcmp.ll View 1 chunk +2 lines, -2 lines 0 comments Download
M tests_lit/llvm2ice_tests/vector-icmp.ll View 1 chunk +2 lines, -2 lines 0 comments Download
M tests_lit/llvm2ice_tests/vector-ops.ll View 1 chunk +4 lines, -4 lines 0 comments Download
M tests_lit/llvm2ice_tests/vector-select.ll View 1 chunk +4 lines, -4 lines 0 comments Download

Messages

Total messages: 6 (1 generated)
Jim Stichnoth
https://codereview.chromium.org/695993004/diff/1/pydir/crosstest.py File pydir/crosstest.py (right): https://codereview.chromium.org/695993004/diff/1/pydir/crosstest.py#newcode108 pydir/crosstest.py:108: '-build-on-read=0', One can add: '-ias=0', to test the AT&T ...
6 years, 1 month ago (2014-10-31 20:55:20 UTC) #2
jvoung (off chromium)
https://codereview.chromium.org/695993004/diff/20001/src/IceInstX8632.cpp File src/IceInstX8632.cpp (right): https://codereview.chromium.org/695993004/diff/20001/src/IceInstX8632.cpp#newcode2310 src/IceInstX8632.cpp:2310: << "\n"; \n could fit on the previous line ...
6 years, 1 month ago (2014-10-31 22:12:18 UTC) #3
Jim Stichnoth
https://codereview.chromium.org/695993004/diff/20001/src/IceInstX8632.cpp File src/IceInstX8632.cpp (right): https://codereview.chromium.org/695993004/diff/20001/src/IceInstX8632.cpp#newcode2310 src/IceInstX8632.cpp:2310: << "\n"; On 2014/10/31 22:12:18, jvoung wrote: > \n ...
6 years, 1 month ago (2014-11-01 13:44:17 UTC) #4
jvoung (off chromium)
LGTM
6 years, 1 month ago (2014-11-01 16:33:13 UTC) #5
Jim Stichnoth
6 years, 1 month ago (2014-11-01 17:13:59 UTC) #6
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
bca2f65551c65fdc18278bf88025c11d8af18579 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698