[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)
commita1c712fae5bc6f2b65562a0c3d79f6dd4570c2bc
tree4405687da4e061d308f5c18f2143d3e9889c0ada
parent1ffd4f509324e70d529f7cb1141adbd25ae0ea83
[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
llvm-svn: 254942
llvm/lib/Target/PowerPC/CMakeLists.txt
llvm/lib/Target/PowerPC/PPC.h
llvm/lib/Target/PowerPC/PPCBoolRetToInt.cpp [new file with mode: 0644]
llvm/lib/Target/PowerPC/PPCTargetMachine.cpp
llvm/test/CodeGen/PowerPC/BoolRetToIntTest.ll [new file with mode: 0644]