summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/switch-implicit-fallthrough-cxx98.cpp
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2013-10-21 17:51:24 +0000
committerLang Hames <lhames@gmail.com>2013-10-21 17:51:24 +0000
commit2783993fca239f922df130b320d0c2fe7cab3151 (patch)
treeb98e6dc07ecfe7217fb425aa1143e83283dca46a /clang/test/SemaCXX/switch-implicit-fallthrough-cxx98.cpp
parent691281be2f65398f7242ac74cca0f3dcb2ff2239 (diff)
downloadbcm5719-llvm-2783993fca239f922df130b320d0c2fe7cab3151.tar.gz
bcm5719-llvm-2783993fca239f922df130b320d0c2fe7cab3151.zip
X86 vector element shift-by-immediate instructions take i8 immediates. Make
the instruction defenitions and ISEL reflect this. Prior to this patch these instructions took an i32i8imm, and the high bits were dropped during encoding. This led to incorrect behavior for shifts by immediates higher than 255. This patch fixes that issue by detecting large immediate shifts and returning constant zero (for logical shifts) or capping the shift amount at an encodable value (for arithmetic shifts). Fixes <rdar://problem/14968098> llvm-svn: 193096
Diffstat (limited to 'clang/test/SemaCXX/switch-implicit-fallthrough-cxx98.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud