[NVPTX] Handle signext/zeroext attributes properly
authorJustin Holewinski <jholewinski@nvidia.com>
Mon, 1 Jul 2013 12:58:58 +0000 (12:58 +0000)
committerJustin Holewinski <jholewinski@nvidia.com>
Mon, 1 Jul 2013 12:58:58 +0000 (12:58 +0000)
commit03e5bb2c87c05ca42f9940e14f22275b136a9883
tree654354664e6a60c3077ee514a2880f3bffa16069
parent8834184a463514530728a8032df165558393cd9c
[NVPTX] Handle signext/zeroext attributes properly

Fix a case where we were incorrectly sign-extending a value when we should have been zero-extending the value.

Also change some SIGN_EXTEND to ANY_EXTEND because we really dont care and may have more opportunity to fold subexpressions

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185331 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/NVPTX/NVPTXISelLowering.cpp
test/CodeGen/NVPTX/sext-params.ll [new file with mode: 0644]