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

Issue 1521863002: Subzero: Fix mid-line comments when using -asm-verbose . (Closed)

Created:
5 years ago by Jim Stichnoth
Modified:
5 years ago
Reviewers:
Karl, sehr, John
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: Fix mid-line comments when using -asm-verbose . The llvm-mc assembler for x86 uses '#' to start a mid-line comment, while arm32 uses '@'. Those characters cause syntax errors for the other architecture. There doesn't seem to be a common character for starting mid-line comments. However, the /* ... */ style comment works in both (all?) cases. (The '#' character at the start of a line, preceded by optional whitespace, starts a comment in both cases.) BUG= none TEST= ./pydir/szbuild_spec2k.py --force -v -O2 --filetype=asm --sz=--asm-verbose --target=arm32 TEST= ./pydir/szbuild_spec2k.py --force -v -O2 --filetype=asm --sz=--asm-verbose --target=x8632 R=kschimpf@google.com Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=751e27ec04c25d974b08b46305271729ada153dc

Patch Set 1 #

Patch Set 2 : Fix lit tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+68 lines, -66 lines) Patch
M src/IceCfgNode.cpp View 5 chunks +9 lines, -7 lines 0 comments Download
M src/IceInstX86BaseImpl.h View 1 1 chunk +1 line, -1 line 0 comments Download
M src/IceTargetLoweringARM32.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M src/IceTargetLoweringX8632.cpp View 1 1 chunk +2 lines, -2 lines 0 comments Download
M src/IceTargetLoweringX8664.cpp View 1 1 chunk +2 lines, -2 lines 0 comments Download
M tests_lit/llvm2ice_tests/nop-insertion.ll View 1 2 chunks +45 lines, -45 lines 0 comments Download
M tests_lit/llvm2ice_tests/rng.ll View 1 1 chunk +8 lines, -8 lines 0 comments Download

Messages

Total messages: 7 (4 generated)
Jim Stichnoth
The ARM target data lowering still uses '@' style comments for commenting ".eabi_attribute" lines. I ...
5 years ago (2015-12-13 15:40:46 UTC) #4
Karl
lgtm
5 years ago (2015-12-16 16:50:21 UTC) #5
Jim Stichnoth
5 years ago (2015-12-16 20:40:35 UTC) #7
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
751e27ec04c25d974b08b46305271729ada153dc (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698