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

Issue 649463002: Handle "Mov" which is mov, movss, movsd, and used for nacl.read.tp. (Closed)

Created:
6 years, 2 months ago by jvoung (off chromium)
Modified:
6 years, 2 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

Handle "Mov" which is mov, movss, movsd, and used for nacl.read.tp. Currently, this only checks and emits the segment override only for GPR instructions, assuming it's mostly only used for nacl.read.tp. The code will assert when used in other situations. The lea hack is still tested in some files, but it's not emitted with emitIAS, and instead the "immediate" operand now has a fixup. There is a more compact encoding for "mov eax, moffs32", etc., but that isn't used right now. BUG=none R=stichnot@chromium.org Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=fe14fb8efa8092d796bda240382b44cff35de4af

Patch Set 1 #

Total comments: 1

Patch Set 2 : format #

Patch Set 3 : bounds check #

Total comments: 2

Patch Set 4 : shuffle a bit #

Patch Set 5 : assert no 16-bit fixups #

Total comments: 12

Patch Set 6 : review #

Patch Set 7 : format #

Patch Set 8 : stuff #

Total comments: 2

Patch Set 9 : rebase #

Patch Set 10 : fixups #

Unified diffs Side-by-side diffs Delta from patch set Stats (+478 lines, -220 lines) Patch
M src/IceDefs.h View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -0 lines 0 comments Download
M src/IceGlobalContext.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M src/IceGlobalContext.cpp View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M src/IceInstX8632.h View 1 2 3 4 5 6 7 8 5 chunks +6 lines, -4 lines 0 comments Download
M src/IceInstX8632.cpp View 1 2 3 4 5 6 7 8 53 chunks +189 lines, -107 lines 0 comments Download
M src/IceInstX8632.def View 1 chunk +9 lines, -9 lines 0 comments Download
M src/IceOperand.h View 1 2 3 4 5 6 7 4 chunks +8 lines, -5 lines 0 comments Download
M src/IceTargetLoweringX8632.cpp View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M src/PNaClTranslator.cpp View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M src/assembler_ia32.h View 1 2 3 4 5 6 7 8 6 chunks +41 lines, -19 lines 0 comments Download
M src/assembler_ia32.cpp View 1 2 3 4 5 6 7 8 7 chunks +55 lines, -54 lines 0 comments Download
M tests_lit/assembler/x86/opcode_register_encodings.ll View 2 chunks +35 lines, -1 line 0 comments Download
M tests_lit/llvm2ice_tests/8bit.pnacl.ll View 1 2 3 1 chunk +39 lines, -0 lines 0 comments Download
M tests_lit/llvm2ice_tests/convert.ll View 1 chunk +4 lines, -1 line 0 comments Download
M tests_lit/llvm2ice_tests/globalinit.pnacl.ll View 2 chunks +55 lines, -2 lines 0 comments Download
M tests_lit/llvm2ice_tests/nacl-atomic-fence-all.ll View 7 chunks +25 lines, -14 lines 0 comments Download
M tests_lit/llvm2ice_tests/nacl-other-intrinsics.ll View 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 8 (2 generated)
jvoung (off chromium)
https://codereview.chromium.org/649463002/diff/1/src/IceOperand.h File src/IceOperand.h (right): https://codereview.chromium.org/649463002/diff/1/src/IceOperand.h#newcode23 src/IceOperand.h:23: #include "IceGlobalContext.h" From the include "IceOperand.h" in assembler_ia32.h. Since ...
6 years, 2 months ago (2014-10-10 00:55:50 UTC) #3
Jim Stichnoth
https://codereview.chromium.org/649463002/diff/240001/src/IceGlobalContext.h File src/IceGlobalContext.h (right): https://codereview.chromium.org/649463002/diff/240001/src/IceGlobalContext.h#newcode23 src/IceGlobalContext.h:23: #include "IceClFlags.h" I'm curious why this is needed? (Also ...
6 years, 2 months ago (2014-10-10 17:37:25 UTC) #4
jvoung (off chromium)
https://codereview.chromium.org/649463002/diff/240001/src/IceGlobalContext.h File src/IceGlobalContext.h (right): https://codereview.chromium.org/649463002/diff/240001/src/IceGlobalContext.h#newcode23 src/IceGlobalContext.h:23: #include "IceClFlags.h" On 2014/10/10 17:37:25, stichnot wrote: > I'm ...
6 years, 2 months ago (2014-10-10 21:03:39 UTC) #5
Jim Stichnoth
lgtm https://codereview.chromium.org/649463002/diff/240001/src/IceOperand.h File src/IceOperand.h (right): https://codereview.chromium.org/649463002/diff/240001/src/IceOperand.h#newcode21 src/IceOperand.h:21: #include "IceCfg.h" On 2014/10/10 21:03:39, jvoung wrote: > ...
6 years, 2 months ago (2014-10-13 17:41:06 UTC) #6
jvoung (off chromium)
https://codereview.chromium.org/649463002/diff/720001/src/IceDefs.h File src/IceDefs.h (right): https://codereview.chromium.org/649463002/diff/720001/src/IceDefs.h#newcode75 src/IceDefs.h:75: // NaCl is ILP32, so theoretically we should only ...
6 years, 2 months ago (2014-10-13 22:51:45 UTC) #7
jvoung (off chromium)
6 years, 2 months ago (2014-10-13 22:56:38 UTC) #8
Message was sent while issue was closed.
Committed patchset #10 (id:1160001) manually as
fe14fb8efa8092d796bda240382b44cff35de4af (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698