[clang] [CIR][AMDGPU][SPIR-V] Implement __builtin_amdgcn_fence (PR #230829)
Shilei Tian via cfe-commits
cfe-commits at lists.llvm.org
Sat Oct 10 21:13:49 PDT 2026
================
@@ -0,0 +1,69 @@
+// REQUIRES: amdgpu-registered-target
+// RUN: %clang_cc1 -triple amdgcn-amd-amdhsa -x hip -fclangir \
+// RUN: -fcuda-is-device -emit-cir %s -o %t.amd.cir
+// RUN: FileCheck --check-prefix=CIR %s --input-file=%t.amd.cir
+// RUN: %clang_cc1 -triple amdgcn-amd-amdhsa -x hip -fclangir \
+// RUN: -fcuda-is-device -emit-llvm %s -o %t.amd-cir.ll
+// RUN: FileCheck --check-prefixes=LLVM,AMD %s --input-file=%t.amd-cir.ll
+// RUN: %clang_cc1 -triple amdgcn-amd-amdhsa -x hip \
+// RUN: -fcuda-is-device -emit-llvm %s -o %t.amd.ll
+// RUN: FileCheck --check-prefixes=LLVM,AMD %s --input-file=%t.amd.ll
+// RUN: %clang_cc1 -triple spirv64-amd-amdhsa -x hip -fclangir \
+// RUN: -fcuda-is-device -emit-cir %s -o %t.spv.cir
----------------
shiltian wrote:
Don't format test file, aka no need for wrapping RUN lines.
https://github.com/llvm/llvm-project/pull/230829
More information about the cfe-commits
mailing list