aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorNicolas Miller <nicolas.miller@codeplay.com>2024-05-01 18:15:52 +0100
committerGitHub <noreply@github.com>2024-05-01 10:15:52 -0700
commit7396ab1210a2aeee6bab5b73ec6d02975ba51b93 (patch)
treeaf717a696e0fa1411392b156f7067c701127ff8c /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parentcf2f32c97f8fece105557c2357be4809cb9c14a1 (diff)
downloadllvm-7396ab1210a2aeee6bab5b73ec6d02975ba51b93.zip
llvm-7396ab1210a2aeee6bab5b73ec6d02975ba51b93.tar.gz
llvm-7396ab1210a2aeee6bab5b73ec6d02975ba51b93.tar.bz2
[NVPTX] Fix 64 bits rotations with large shift values (#89399)
ROTL and ROTR can take a shift amount larger than the element size, in which case the effective shift amount should be the shift amount modulo the element size. This patch adds the modulo step when the shift amount isn't known at compile time. Without it the existing implementation would end up shifting beyond the type size and give incorrect results.
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions