]> granicus.if.org Git - llvm/commit
[X86] Add X86ISD::VMFPROUND to handle the masked case of VCVTPD2PSZ128 which only...
authorCraig Topper <craig.topper@intel.com>
Sun, 13 Jan 2019 02:59:57 +0000 (02:59 +0000)
committerCraig Topper <craig.topper@intel.com>
Sun, 13 Jan 2019 02:59:57 +0000 (02:59 +0000)
commit47100f5f523424a284c2ccf3f9442179aa27d6d4
tree19411f538568c0c1dd598bde00e0346b8dce1a29
parent114f0172187583259678f83bd691b27302d95ae4
[X86] Add X86ISD::VMFPROUND to handle the masked case of VCVTPD2PSZ128 which only produces 2 result elements and zeroes the upper elements.

We can't represent this properly with vselect like we normally do. We also have to update the instruction definition to use a VK2WM mask instead of VK4WM to represent this.

Fixes another case from PR34877.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@351017 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
lib/Target/X86/X86ISelLowering.h
lib/Target/X86/X86InstrAVX512.td
lib/Target/X86/X86InstrFragmentsSIMD.td
lib/Target/X86/X86IntrinsicsInfo.h