OSDN Git Service

[AVX-512] Fix the valid immediates for the scatter/gather prefetch intrinsics.
authorCraig Topper <craig.topper@gmail.com>
Sun, 12 Mar 2017 22:29:12 +0000 (22:29 +0000)
committerCraig Topper <craig.topper@gmail.com>
Sun, 12 Mar 2017 22:29:12 +0000 (22:29 +0000)
commitacde88827469b35f9563d93bdd5c3b62c5735667
treec64284ebf47debd2e47902b2148b3f55b342bd52
parentcc9614d291972c3dea88815ad4afa5d8b14bad0c
[AVX-512] Fix the valid immediates for the scatter/gather prefetch intrinsics.

The immediate should be 1 or 2, not 0 or 1. This was found while adding bounds checking to clang. In fact the existing clang builtin test failed if we ran it all the way to assembly.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@297591 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/avx512-gather-scatter-intrin.ll