[llvm] [NVPTX] deprecate nvvm.rotate.* intrinsics, cleanup funnel-shift handling (PR #107655)
Artem Belevich via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 23 11:27:10 PDT 2024
================
@@ -6,19 +6,19 @@ declare i64 @llvm.nvvm.rotate.right.b64(i64, i32)
; CHECK: rotate64
define i64 @rotate64(i64 %a, i32 %b) {
-; CHECK: shl.b64 [[LHS:%.*]], [[RD1:%.*]], 3;
-; CHECK: shr.b64 [[RHS:%.*]], [[RD1]], 61;
-; CHECK: add.u64 [[RD2:%.*]], [[LHS]], [[RHS]];
+; CHECK: shr.u64 [[RHS:%.*]], [[RD1:%.*]], 61;
----------------
Artem-B wrote:
This test should probably be converted to use automatic check generation, too.
One of the cases where we may have spotted wrong operation order with all instructions visible.
https://github.com/llvm/llvm-project/pull/107655
More information about the llvm-commits
mailing list