Fix darwin ppc llvm-gcc build breakage: intercept
authorDuncan Sands <baldrick@free.fr>
Tue, 28 Oct 2008 15:00:32 +0000 (15:00 +0000)
committerDuncan Sands <baldrick@free.fr>
Tue, 28 Oct 2008 15:00:32 +0000 (15:00 +0000)
commit57760d96e2dfb485dc53fe2799df24bd18157abb
tree55471cd089cf91632664baad832dfb0c7033e77f
parent42d4499a16577fd1e32bb7769e2b35adde2aa364
Fix darwin ppc llvm-gcc build breakage: intercept
ppcf128 to i32 conversion and expand it into a code
sequence like in LegalizeDAG.  This needs custom
ppc lowering of FP_ROUND_INREG, so turn that on and
make it work with LegalizeTypes.  Probably PPC should
simply custom lower the original conversion.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58329 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp
lib/Target/PowerPC/PPCISelLowering.cpp
test/CodeGen/PowerPC/2008-10-28-f128-i32.ll [new file with mode: 0644]