[clang] [llvm] [llvm][OpenMP][SPIRV] Fix assertion for GPU reductions (PR #194879)
Nick Sarnie via llvm-commits
llvm-commits at lists.llvm.org
Tue May 5 08:35:51 PDT 2026
================
@@ -0,0 +1,34 @@
+// Test that target teams reduction codegen handles address space casts correctly.
+
+// RUN: %clang_cc1 -verify -fopenmp -x c -triple x86_64-unknown-linux -fopenmp-targets=spirv64-intel -emit-llvm-bc %s -o %t-host.bc
+// RUN: %clang_cc1 -verify -fopenmp -x c -triple spirv64-intel -fopenmp-targets=spirv64-intel -emit-llvm %s -fopenmp-is-target-device -fopenmp-host-ir-file-path %t-host.bc -o - | FileCheck %s
+
+// expected-no-diagnostics
+
+// Verify the kernel is generated
----------------
sarnex wrote:
nit: periods at ends of comment sentences
https://github.com/llvm/llvm-project/pull/194879
More information about the llvm-commits
mailing list