[PPC64] Convert bool literals to i32
authorKit Barton <kbarton@ca.ibm.com>
Mon, 7 Dec 2015 20:50:29 +0000 (20:50 +0000)
committerKit Barton <kbarton@ca.ibm.com>
Mon, 7 Dec 2015 20:50:29 +0000 (20:50 +0000)
commit4e2c148ec86b66853f64326a7ee8e85afd479ae1
treec29b23d66fbb4961c309d892478d297934d2d624
parent7d9752d1d3cd23f31a258804ecbb7e04b9813865
[PPC64] Convert bool literals to i32

Convert i1 values to i32 values if they should be allocated in GPRs instead of CRs.

Phabricator: http://reviews.llvm.org/D14064

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254942 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/CMakeLists.txt
lib/Target/PowerPC/PPC.h
lib/Target/PowerPC/PPCBoolRetToInt.cpp [new file with mode: 0644]
lib/Target/PowerPC/PPCTargetMachine.cpp
test/CodeGen/PowerPC/BoolRetToIntTest.ll [new file with mode: 0644]