Fix makeLibCall argument (signed) in SoftenFloatRes_XINT_TO_FP function
authorPetar Jovanovic <petar.jovanovic@imgtec.com>
Tue, 10 Feb 2015 23:30:14 +0000 (23:30 +0000)
committerPetar Jovanovic <petar.jovanovic@imgtec.com>
Tue, 10 Feb 2015 23:30:14 +0000 (23:30 +0000)
commit56e9c5f92b8fa33c29b9b9789d9280c4f7e36522
tree2f34d2081f522d3e2e19480445ebdcf3f3e29aa3
parent7b98f2d2a61b7acd3d04bc26c171000d50788e2d
Fix makeLibCall argument (signed) in SoftenFloatRes_XINT_TO_FP function

The isSigned argument of makeLibCall function was hard-coded to false
(unsigned). This caused zero extension on MIPS64 soft float.
As the result SingleSource/Benchmarks/Stanford/FloatMM test and
SingleSource/UnitTests/2005-07-17-INT-To-FP test failed.
The solution was to use the proper argument.

Patch by Strahinja Petrovic.

Differential Revision: http://reviews.llvm.org/D7292

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