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

Issue 1743133002: Subzero: Fix JumpTable lowering on x86-64. (Closed)

Created:
4 years, 9 months ago by Jim Stichnoth
Modified:
4 years, 9 months ago
Reviewers:
Eric Holk, 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 JumpTable lowering on x86-64. The problem is that when switch lowering decides to use a JumpTable and the switch variable is i64 on x86-64, the lowering tries to movzx the i64 variable into an i32 variable, and the Movzx ctor asserts. This happens when translating pnacl-llc.pexe, but luckily it is also triggered in the existing adv-switch.ll test. BUG= none R=jpp@chromium.org Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=e641e92cb728bb01453d926fa4e69ba8b9ae53bb

Patch Set 1 #

Patch Set 2 : Clean up the test a bit #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -32 lines) Patch
M src/IceTargetLoweringX86BaseImpl.h View 1 chunk +6 lines, -1 line 1 comment Download
M tests_lit/llvm2ice_tests/adv-switch-opt.ll View 1 5 chunks +40 lines, -31 lines 2 comments Download

Messages

Total messages: 7 (3 generated)
Jim Stichnoth
4 years, 9 months ago (2016-02-29 04:55:01 UTC) #3
John
lgtm https://codereview.chromium.org/1743133002/diff/20001/src/IceTargetLoweringX86BaseImpl.h File src/IceTargetLoweringX86BaseImpl.h (right): https://codereview.chromium.org/1743133002/diff/20001/src/IceTargetLoweringX86BaseImpl.h#newcode5856 src/IceTargetLoweringX86BaseImpl.h:5856: if (RangeIndex->getType() == IceType_i64) { How do you ...
4 years, 9 months ago (2016-02-29 15:34:09 UTC) #4
Jim Stichnoth
https://codereview.chromium.org/1743133002/diff/20001/tests_lit/llvm2ice_tests/adv-switch-opt.ll File tests_lit/llvm2ice_tests/adv-switch-opt.ll (right): https://codereview.chromium.org/1743133002/diff/20001/tests_lit/llvm2ice_tests/adv-switch-opt.ll#newcode4 tests_lit/llvm2ice_tests/adv-switch-opt.ll:4: ; RUN: %p2i -i %s --target=x8632 --filetype=obj --disassemble --args ...
4 years, 9 months ago (2016-02-29 17:53:18 UTC) #5
Jim Stichnoth
4 years, 9 months ago (2016-02-29 17:55:01 UTC) #7
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
e641e92cb728bb01453d926fa4e69ba8b9ae53bb (tree was closed).

Powered by Google App Engine
This is Rietveld 408576698