Generalize ExpandIntToFP to handle the case where the operand is legal
authorDan Gohman <gohman@apple.com>
Tue, 11 Mar 2008 01:59:03 +0000 (01:59 +0000)
committerDan Gohman <gohman@apple.com>
Tue, 11 Mar 2008 01:59:03 +0000 (01:59 +0000)
commit034f60ed24c53c1e37f7695965f782faec2dff2b
tree5d03f996815edb42366307eda1257caaaa8a6de0
parentb7795801001a1537fc6debb37f6d8658bcf6b517
Generalize ExpandIntToFP to handle the case where the operand is legal
and it's the result that requires expansion. This code is a little confusing
because the TargetLoweringInfo tables for [US]INT_TO_FP use the operand type
(the integer type) rather than the result type.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48206 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
lib/Target/PowerPC/PPCISelLowering.cpp
test/CodeGen/PowerPC/int-fp-conv-0.ll [new file with mode: 0644]
test/CodeGen/PowerPC/int-fp-conv-1.ll [new file with mode: 0644]
test/CodeGen/PowerPC/int-fp-conv.ll [deleted file]