[VectorLegalizer] Enable TargetLowering::expandFP_TO_UINT support.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sun, 28 Oct 2018 13:07:25 +0000 (13:07 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sun, 28 Oct 2018 13:07:25 +0000 (13:07 +0000)
commit9b77f0c291922518d61f56f55d43efa8130366e4
treedea5d84597fd4ef3d229ff1750e6039e3d6605b3
parent5b30571753cef75c86c6bc11983a5a4e56d5c771
[VectorLegalizer] Enable TargetLowering::expandFP_TO_UINT support.

Add vector support to TargetLowering::expandFP_TO_UINT.

This exposes an issue in X86TargetLowering::LowerVSELECT which was assuming that the select mask was the same width as the LHS/RHS ops - as long as the result is a sign splat we can easily sext/trunk this.

llvm-svn: 345473
llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp
llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/test/CodeGen/X86/ftrunc.ll
llvm/test/CodeGen/X86/vec_cast3.ll
llvm/test/CodeGen/X86/vec_fp_to_int.ll