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

Issue 8826003: Modify ARM .S code so it can be processed by both gnu-as and llvm-mc. (Closed)

Created:
9 years ago by robertm
Modified:
9 years ago
CC:
native-client-reviews_googlegroups.com
Visibility:
Public.

Description

Modify ARM .S code so it can be processed by both gnu-as and llvm-mc. NOTE: there is now only one assert keeping us from switchingover to llvm-mc BUG= http://code.google.com/p/nativeclient/issues/detail?id=1968 Committed: http://src.chromium.org/viewvc/native_client?view=rev&revision=7387

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Total comments: 9

Patch Set 6 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -34 lines) Patch
M pnacl/driver/pnacl-as.py View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/trusted/service_runtime/arch/arm/nacl_text_pad_test.S View 1 2 3 4 5 11 chunks +33 lines, -26 lines 0 comments Download
M src/trusted/service_runtime/nacl.scons View 1 1 chunk +4 lines, -2 lines 0 comments Download
M src/untrusted/irt/aeabi_read_tp.S View 1 2 3 4 1 chunk +5 lines, -6 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
robertm
PTAL
9 years ago (2011-12-07 17:49:41 UTC) #1
jvoung - send to chromium...
http://codereview.chromium.org/8826003/diff/7001/src/trusted/service_runtime/arch/arm/nacl_text_pad_test.S File src/trusted/service_runtime/arch/arm/nacl_text_pad_test.S (left): http://codereview.chromium.org/8826003/diff/7001/src/trusted/service_runtime/arch/arm/nacl_text_pad_test.S#oldcode17 src/trusted/service_runtime/arch/arm/nacl_text_pad_test.S:17: .cpu cortex-a8 doesn't movw/movt require some cpu baseline? Is ...
9 years ago (2011-12-07 18:39:02 UTC) #2
robertm
PTAL http://codereview.chromium.org/8826003/diff/7001/src/trusted/service_runtime/arch/arm/nacl_text_pad_test.S File src/trusted/service_runtime/arch/arm/nacl_text_pad_test.S (left): http://codereview.chromium.org/8826003/diff/7001/src/trusted/service_runtime/arch/arm/nacl_text_pad_test.S#oldcode17 src/trusted/service_runtime/arch/arm/nacl_text_pad_test.S:17: .cpu cortex-a8 llvm-mc does not like this pseudo ...
9 years ago (2011-12-07 19:24:33 UTC) #3
jvoung - send to chromium...
9 years ago (2011-12-07 20:32:11 UTC) #4
lgtm

http://codereview.chromium.org/8826003/diff/7001/src/trusted/service_runtime/...
File src/trusted/service_runtime/arch/arm/nacl_text_pad_test.S (right):

http://codereview.chromium.org/8826003/diff/7001/src/trusted/service_runtime/...
src/trusted/service_runtime/arch/arm/nacl_text_pad_test.S:126: movw r1,
:lower16:(end_of_text)
On 2011/12/07 19:24:33, robertm wrote:
> gnu-as seems happy without it and llvm-mc dies not like it.
> Also, note that :lower16: is not just merely a abbrev for
> x & 0xffff but also forces a special relocation in case 
> x is a symbol.
> Bottom line: :lower16: is special enough that '#' might be implicit/optional
> 
> 
> On 2011/12/07 18:39:02, jvoung wrote:
> > Shouldn't there be a #? This could be a bug in the llvm asm parser?
> > 
> > Do you have an ARM reference that says the # is optional for these special
> > immediates? Almost every hit I see on google for arm lower16 syntax shows it
> > with the #. E.g., this one:
> > 
> >
>
http://blogs.arm.com/software-enablement/251-how-to-load-constants-in-assembl...
> > 
> 

Sure, :lower16: is special and generates a relocation, but this may just be an
NYI on the llvm-mc front. If it is non-standard, perhaps file an LLVM bug -- it
may not take them too long to fix it...

Powered by Google App Engine
This is Rietveld 408576698