diff options
author | Nicolas Miller <nicolas.miller@codeplay.com> | 2024-05-01 18:15:52 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-01 10:15:52 -0700 |
commit | 7396ab1210a2aeee6bab5b73ec6d02975ba51b93 (patch) | |
tree | af717a696e0fa1411392b156f7067c701127ff8c /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
parent | cf2f32c97f8fece105557c2357be4809cb9c14a1 (diff) | |
download | llvm-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