[llvm] [NVPTX] Fix 64 bits rotations with large shift values (PR #89399)
Artem Belevich via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 19 11:07:30 PDT 2024
================
@@ -58,3 +58,46 @@ define i32 @rotl0(i32 %x) {
%t2 = or i32 %t0, %t1
ret i32 %t2
}
+
+declare i64 @llvm.fshl.i64(i64, i64, i64)
+declare i64 @llvm.fshr.i64(i64, i64, i64)
+
+; SM35: rotl64
+define i64 @rotl64(i64 %a, i64 %n) {
----------------
Artem-B wrote:
This test should probably be converted to use llvm/utils/update_llc_test_checks.py
We do care about the arguments and the exact instruction sequences here.
https://github.com/llvm/llvm-project/pull/89399
More information about the llvm-commits
mailing list