Fix PPCMaterializeInt to check the size of the integer based on the
authorEric Christopher <echristo@gmail.com>
Sat, 25 Jul 2015 00:48:08 +0000 (00:48 +0000)
committerEric Christopher <echristo@gmail.com>
Sat, 25 Jul 2015 00:48:08 +0000 (00:48 +0000)
commite05397b4aea8e63cdc3f9a663ebcec39d21333b9
tree9a2ca02072934af4bc0cc146b740d21c0a089f1e
parented600fe8b7a951bdab9f0aee07e59c071d0ae526
Fix PPCMaterializeInt to check the size of the integer based on the
extension property we're requesting - zero or sign extended.

This fixes cases where we want to return a zero extended 32-bit -1
and not be sign extended for the entire register. Also updated the
already out of date comment with the current behavior.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@243192 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCFastISel.cpp
test/CodeGen/PowerPC/fast-isel-ret.ll