[PowerPC] Fix the int2fp(fp2int(x)) DAGCombine to ignore ppc_fp128
authorHal Finkel <hfinkel@anl.gov>
Thu, 20 Aug 2015 01:18:20 +0000 (01:18 +0000)
committerHal Finkel <hfinkel@anl.gov>
Thu, 20 Aug 2015 01:18:20 +0000 (01:18 +0000)
commitc2b62e02e8ac5a3df255332ad82f55d708d76884
treed96c7986cf0663387aa650364e3ff4bf90b37464
parente2e6dea9f2043ad2175e499f97a31adea6d3bddd
[PowerPC] Fix the int2fp(fp2int(x)) DAGCombine to ignore ppc_fp128

This DAGCombine was creating custom SDAG nodes with an illegal ppc_fp128
operand type because it was triggering on f64/f32 int2fp(fp2int(ppc_fp128 x)),
but shouldn't (it should only apply to f32/f64 types). The result was a crash.

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