[llvm] [NVPTX] Fix 64 bits rotations with large shift values (PR #89399)

Artem Belevich via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 30 10:09:22 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:

^^^ we still want to improve the test.

https://github.com/llvm/llvm-project/pull/89399


More information about the llvm-commits mailing list