[llvm-branch-commits] [clang] [llvm] [AMDGPU] Add builtins for wave reduction intrinsics (PR #150170)

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Jul 28 03:26:35 PDT 2025


================
@@ -398,6 +398,384 @@ void test_s_sendmsghalt_var(int in)
   __builtin_amdgcn_s_sendmsghalt(1, in);
 }
 
+// CHECK-LABEL: @test_wave_reduce_add_u32_default
+// CHECK: {{.*}}call{{.*}} i32 @llvm.amdgcn.wave.reduce.add.i32(
+void test_wave_reduce_add_u32_default(global int* out, int in)
----------------
easyonaadit wrote:

@arsenm should these test cases be changed to `unsigned` instead of `int` as well?

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


More information about the llvm-branch-commits mailing list