aboutsummaryrefslogtreecommitdiff
path: root/clang/CMakeLists.txt
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2017-12-07 20:10:04 +0000
committerCraig Topper <craig.topper@intel.com>2017-12-07 20:10:04 +0000
commitdfc79c7c333b1764140c9da01ffd37222ba4939c (patch)
tree5347b1f21486bce99c068cc81542b6e771ca65e6 /clang/CMakeLists.txt
parent7b8fa5f782a5e615c3c07218f438ed56017f7d38 (diff)
[X86] Fix InsertBitToMaskVector to only issue KSHIFTS of native size so that upper bits are properly zeroed.
There's no v2i1 or v4i1 kshift, and v8i1 is only supported with AVXDQ. Isel has fake patterns to extend these types to native shifts, but makes no guarantees about the value of any bits shifted in when shifting right. This patch promotes the vector to a type that supports a native shift first and only allows inserting into the msb of a native sized shift. I've constructed this in a way that doesn't do the promotion if we're going to fallback to using a xmm/ymm/zmm shuffle. I think I have a plan to remove the shuffle fall back entirely. In which case we this can be simplified, but I wanted to fix the correctness issue first. llvm-svn: 320081
Diffstat (limited to 'clang/CMakeLists.txt')
0 files changed, 0 insertions, 0 deletions