[all-commits] [llvm/llvm-project] 7396ab: [NVPTX] Fix 64 bits rotations with large shift val...
Nicolas Miller via All-commits
all-commits at lists.llvm.org
Wed May 1 10:16:13 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 7396ab1210a2aeee6bab5b73ec6d02975ba51b93
https://github.com/llvm/llvm-project/commit/7396ab1210a2aeee6bab5b73ec6d02975ba51b93
Author: Nicolas Miller <nicolas.miller at codeplay.com>
Date: 2024-05-01 (Wed, 01 May 2024)
Changed paths:
M llvm/lib/Target/NVPTX/NVPTXInstrInfo.td
M llvm/test/CodeGen/NVPTX/rotate.ll
Log Message:
-----------
[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.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list