[PATCH] D21160: [NVPTX] Add intrinsics for shfl instructions.

Justin Lebar via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 9 12:50:09 PDT 2016


jlebar marked an inline comment as done.

================
Comment at: test/CodeGen/NVPTX/shfl.ll:19
@@ +18,3 @@
+  ; CHECK: shfl.down.b32 [[OUT:%r[0-9]+]], [[IN]], 1, 2;
+  ; CHECK: st.param.{{.}}32 {{.*}}, [[OUT]]
+  %val = call i32 @llvm.nvvm.shfl.down.i32(i32 %in, i32 1, i32 2)
----------------
tra wrote:
> I'm curious why {{.}}32 here? Do you expect return type to change?
It's currently a b32, but there's no reason (afaict) that it couldn't be a u32 (or i32).  I didn't want to tie this test to the current behavior, since I don't think it matters.


http://reviews.llvm.org/D21160





More information about the llvm-commits mailing list