The generic legalization handles this in the same way so just use
that.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368966
91177308-0d34-0410-b5e6-
96231b3b80d8
SrcVT == MVT::i64) && "Unexpected VT!");
assert(Subtarget.hasSSE2() && "Requires at least SSE2!");
- if (DstVT != MVT::f64 && DstVT != MVT::i64 &&
+ if (DstVT != MVT::i64 &&
+ !(DstVT == MVT::f64 && SrcVT == MVT::i64) &&
!(DstVT == MVT::x86mmx && SrcVT.isVector()))
// This conversion needs to be expanded.
return SDValue();