Target/X86: Fix assertion failures and warnings caused by r151382 _ftol2 lowering...
authorNAKAMURA Takumi <geek4civic@gmail.com>
Sat, 25 Feb 2012 03:37:25 +0000 (03:37 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Sat, 25 Feb 2012 03:37:25 +0000 (03:37 +0000)
commit9a68fdc7f8211a9330537d44e3406d79fc5562af
tree7399a309b349680e8390519aac2780cbfa085e30
parentdfba3ad88276b0aad3d515320bb4a50480c364d9
Target/X86: Fix assertion failures and warnings caused by r151382 _ftol2 lowering for i386-*-win32 targets. Patch by Joe Groff.

[Joe Groff] Hi everyone. My previous patch applied as r151382 had a few problems:
Clang raised a warning, and X86 LowerOperation would assert out for
fptoui f64 to i32 because it improperly lowered to an illegal
BUILD_PAIR. Here's a patch that addresses these issues. Let me know if
any other changes are necessary. Thanks.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151432 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86FloatingPoint.cpp
lib/Target/X86/X86ISelLowering.cpp
lib/Target/X86/X86ISelLowering.h
test/CodeGen/X86/win_ftol2.ll