[PowerPC] Don't crash on PPC32 i64 fp_to_uint on modern cores
authorHal Finkel <hfinkel@anl.gov>
Fri, 10 Apr 2015 03:39:00 +0000 (03:39 +0000)
committerHal Finkel <hfinkel@anl.gov>
Fri, 10 Apr 2015 03:39:00 +0000 (03:39 +0000)
commit36f934a2076404d22bf84a8ccf7a8252367e6d24
treef60300f36199c2b29266035385cc9e5449894eeb
parent1810ca3110f774819d4ff84463922a62574fd547
[PowerPC] Don't crash on PPC32 i64 fp_to_uint on modern cores

When we have an instruction for this (and, thus, don't generate a runtime
call), we need to custom type legalize this (in a trivial way, just as we do
for fp_to_sint).

Fixes PR23173.

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