OSDN Git Service

Change some tests to be valid PNaCl IR (parameter type from i1 -> i32).
authorJan Voung <jvoung@chromium.org>
Wed, 18 Jun 2014 00:12:26 +0000 (17:12 -0700)
committerJan Voung <jvoung@chromium.org>
Wed, 18 Jun 2014 00:12:26 +0000 (17:12 -0700)
commitbdbe40235bc8c48d69bf5dbb669c99f3ef7a1a31
tree306bc36f126ca6570cff08f622cb7d646739fdd1
parent44712d15c3bb7b502f0453deb1d278a3cc3efb1f
Change some tests to be valid PNaCl IR (parameter type from i1 -> i32).

Change the i1 zeroext parameter to an explicit zext and
i32. Add an assert in lowerCall that the type is at least
32-bits.

I ended up putting the assert in lowerCall instead of
InstX8632Push, since technically there are quite a few
modes that push allows: 16-bit reg/mem (just not 8-bit
reg/mem) and 8/16/32 bit constants.

BUG=none
R=stichnot@chromium.org

Review URL: https://codereview.chromium.org/339933004
src/IceTargetLoweringX8632.cpp
tests_lit/llvm2ice_tests/bool-opt.ll
tests_lit/llvm2ice_tests/cmp-opt.ll
tests_lit/llvm2ice_tests/fp.pnacl.ll