]> granicus.if.org Git - clang/commit
[X86] Properly account for the immediate being multiplied by 8 in the immediate range...
authorCraig Topper <craig.topper@intel.com>
Mon, 11 Jun 2018 16:34:10 +0000 (16:34 +0000)
committerCraig Topper <craig.topper@intel.com>
Mon, 11 Jun 2018 16:34:10 +0000 (16:34 +0000)
commit638e493dcac9873d12a33a04753b3ef99fbf0b1c
tree0cd4f2c7f6bcb45f424d666243b20f3af8ccf04b
parent1e2253b777d0ab7b7424dcb60fc24d42061ae546
[X86] Properly account for the immediate being multiplied by 8 in the immediate range checking for BI__builtin_ia32_psrldqi128 and friends.

The limit was set to 1023 which only up to 127*8. It needs to be 2047 to allow 255*8.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@334416 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaChecking.cpp