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

Issue 1424863005: Handle MOV (immediate) and MOVT to load ARM global addresses. (Closed)

Created:
5 years, 1 month ago by Karl
Modified:
5 years, 1 month ago
Reviewers:
Jim Stichnoth, 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

Handle MOV (immediate) and MOVT to load ARM global addresses. Adds a new type of fixup to handle the relocatable fixups needed for movw and movt on a global addresses. Also adds movw and movt methods to the ARM assembler. Also makes ARM register names visible (without a target lowering object), so that the ARM integrated assembler can generate the appropriate assembly. Note that the integrated assembler needs to generate the corresponding movw/movt, and follows the instruction with the bytes that appear in the corresponding assembler buffer. This allows the ability to test if we have generated the correct values, and will be set up properly for ELF emission. BUG= https://code.google.com/p/nativeclient/issues/detail?id=4334 R=stichnot@chromium.org Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=7cb2db327e386372003cdb45e2c3acef774fb902

Patch Set 1 #

Patch Set 2 : Fix nits. #

Total comments: 13

Patch Set 3 : Fix issues in last patch #

Patch Set 4 : reformat code. #

Patch Set 5 : Fix movw and movt #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+157 lines, -15 lines) Patch
M src/DartARM32/assembler_arm.h View 1 chunk +4 lines, -0 lines 0 comments Download
M src/DartARM32/assembler_arm.cc View 3 chunks +4 lines, -0 lines 0 comments Download
M src/IceAssemblerARM32.h View 1 2 3 chunks +16 lines, -0 lines 0 comments Download
M src/IceAssemblerARM32.cpp View 1 2 3 4 4 chunks +86 lines, -3 lines 2 comments Download
M src/IceInstARM32.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/IceInstARM32.cpp View 1 2 5 chunks +31 lines, -1 line 0 comments Download
M src/IceRegistersARM32.h View 1 chunk +2 lines, -0 lines 0 comments Download
M src/IceTargetLoweringARM32.cpp View 1 2 1 chunk +7 lines, -7 lines 0 comments Download
M tests_lit/assembler/arm32/global-load-store.ll View 3 chunks +6 lines, -4 lines 0 comments Download

Messages

Total messages: 10 (4 generated)
Karl
5 years, 1 month ago (2015-10-28 17:05:52 UTC) #5
Jim Stichnoth
https://codereview.chromium.org/1424863005/diff/20001/src/IceAssemblerARM32.cpp File src/IceAssemblerARM32.cpp (right): https://codereview.chromium.org/1424863005/diff/20001/src/IceAssemblerARM32.cpp#newcode235 src/IceAssemblerARM32.cpp:235: if (kind() == llvm::ELF::R_ARM_MOVW_ABS_NC) What do you think of ...
5 years, 1 month ago (2015-10-28 22:28:55 UTC) #6
Karl
https://chromiumcodereview.appspot.com/1424863005/diff/20001/src/IceAssemblerARM32.cpp File src/IceAssemblerARM32.cpp (right): https://chromiumcodereview.appspot.com/1424863005/diff/20001/src/IceAssemblerARM32.cpp#newcode235 src/IceAssemblerARM32.cpp:235: if (kind() == llvm::ELF::R_ARM_MOVW_ABS_NC) On 2015/10/28 22:28:55, stichnot wrote: ...
5 years, 1 month ago (2015-10-29 16:57:53 UTC) #7
Karl
Fixed implementations of movw and movt in assembler. https://chromiumcodereview.appspot.com/1424863005/diff/80001/src/IceAssemblerARM32.cpp File src/IceAssemblerARM32.cpp (right): https://chromiumcodereview.appspot.com/1424863005/diff/80001/src/IceAssemblerARM32.cpp#newcode565 src/IceAssemblerARM32.cpp:565: if ...
5 years, 1 month ago (2015-10-29 18:35:06 UTC) #8
Jim Stichnoth
lgtm
5 years, 1 month ago (2015-10-29 20:16:34 UTC) #9
Karl
5 years, 1 month ago (2015-10-29 21:04:17 UTC) #10
Message was sent while issue was closed.
Committed patchset #5 (id:80001) manually as
7cb2db327e386372003cdb45e2c3acef774fb902 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698