[AVX512] The vpermi2 instructions require an integer vector for the index vector...
authorCraig Topper <craig.topper@gmail.com>
Mon, 30 Nov 2015 00:13:24 +0000 (00:13 +0000)
committerCraig Topper <craig.topper@gmail.com>
Mon, 30 Nov 2015 00:13:24 +0000 (00:13 +0000)
commitda85caae7a2db9ce0d6fd957ae313df6b29dc2ce
tree1861bdb5729e2c3bbd58c2910f0bf384a443435a
parentdffe9f4fa6bac1ea04bb1d88f1fab87ffac77322
[AVX512] The vpermi2 instructions require an integer vector for the index vector. This is reflected correctly in the intrinsics, but was not refelected in the isel patterns.

For the floating point types, this requires adding a bitcast to the index vector when its passed through to the output.

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