OSDN Git Service

Subzero: Fix sext/zext lowering with i1 source operands.
authorJim Stichnoth <stichnot@chromium.org>
Thu, 4 Sep 2014 23:39:02 +0000 (16:39 -0700)
committerJim Stichnoth <stichnot@chromium.org>
Thu, 4 Sep 2014 23:39:02 +0000 (16:39 -0700)
commitdd30c81e6c648cdbd06eff7d8d9a3f4c85be2656
tree93ba35116e36202fd1df1d0d9409fe9efa4cc0e5
parent1d6f0e45068045fc30912e6f0907099b53d1064e
Subzero: Fix sext/zext lowering with i1 source operands.

Also declare a few variables as Constant* instead of Operand* when they hold the result of Ctx->getConstantInt(), to be consistent with the rest of the code.

BUG= none
R=jvoung@chromium.org

Review URL: https://codereview.chromium.org/541093002
src/IceTargetLoweringX8632.cpp
tests_lit/llvm2ice_tests/64bit.pnacl.ll
tests_lit/llvm2ice_tests/sext_zext_i1.ll [new file with mode: 0644]