Fix bug 13532.
authorAkira Hatanaka <ahatanaka@mips.com>
Tue, 28 Aug 2012 02:12:42 +0000 (02:12 +0000)
committerAkira Hatanaka <ahatanaka@mips.com>
Tue, 28 Aug 2012 02:12:42 +0000 (02:12 +0000)
commit1d522388bfa642d710618edd3f4e9fe6471cf674
tree1ea6da6d021bb1ccf9724f6f09e7d1a4cf7e2784
parentf3c3828e57d922bbe912ffabbd9252b9f5100c14
Fix bug 13532.

In SelectionDAGLegalize::ExpandLegalINT_TO_FP, expand INT_TO_FP nodes without
using any f64 operations if f64 is not a legal type.

Patch by Stefan Kristiansson.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162728 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
test/CodeGen/Mips/uitofp.ll [new file with mode: 0644]