With PPC CR bit registers, handle int_to_fp on older cores
authorHal Finkel <hfinkel@anl.gov>
Wed, 5 Mar 2014 22:14:00 +0000 (22:14 +0000)
committerHal Finkel <hfinkel@anl.gov>
Wed, 5 Mar 2014 22:14:00 +0000 (22:14 +0000)
commitf698d7775a96afd6385b0f9b9c66646df8feb88a
tree6b03605550f2748441a869df4a0a8bef941aa190
parentaf0cc459bf5fdce42f723e575ae8c320752ac3e1
With PPC CR bit registers, handle int_to_fp on older cores

On cores without fpcvt support, we cannot promote int_to_fp i1 operations,
because there is nothing to promote them to. The most straightforward
implementation of this uses a select to choose between the two possible
resulting floating-point values (and that's what is done here).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203015 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCISelLowering.cpp
test/CodeGen/PowerPC/i1-to-double.ll [new file with mode: 0644]