aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/SourceMgr.cpp
diff options
context:
space:
mode:
authorDavid Tweed <david.tweed@arm.com>2013-01-07 16:43:27 +0000
committerDavid Tweed <david.tweed@arm.com>2013-01-07 16:43:27 +0000
commit042e0883cbcd35641d60fd2d22105ac5c6a402f8 (patch)
tree6fc623b2575c7a12ceb41f7aa7f6fe8be5e72a45 /llvm/lib/Support/SourceMgr.cpp
parentd5650bdc1a4bcd4806631781a33ff10e87da33b5 (diff)
downloadllvm-042e0883cbcd35641d60fd2d22105ac5c6a402f8.zip
llvm-042e0883cbcd35641d60fd2d22105ac5c6a402f8.tar.gz
llvm-042e0883cbcd35641d60fd2d22105ac5c6a402f8.tar.bz2
Scalar shifts in the OpenCL specification (as of v. 1.2) are defined to be
with respect to the lower "left-hand-side bitwidth" bits, even when negative); see OpenCL spec 6.3j. This patch both implements this behaviour in the code generator and "constant folding" bits of Sema, and also prevents tests to detect undefinedness in terms of the weaker C99 or C++ specifications from being applied. llvm-svn: 171755
Diffstat (limited to 'llvm/lib/Support/SourceMgr.cpp')
0 files changed, 0 insertions, 0 deletions