[clang] [llvm] [clang][amdgpu] Add builtins for raw/struct buffer lds load (PR #137678)
Shilei Tian via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 28 13:50:16 PDT 2025
================
@@ -0,0 +1,12 @@
+// RUN: %clang_cc1 -triple amdgcn-unknown-unknown -target-cpu tahiti -S -verify -o - %s
+// RUN: %clang_cc1 -triple amdgcn-unknown-unknown -target-cpu bonaire -S -verify -o - %s
+// RUN: %clang_cc1 -triple amdgcn-unknown-unknown -target-cpu carrizo -S -verify -o - %s
+// RUN: %clang_cc1 -triple amdgcn-unknown-unknown -target-cpu gfx1100 -S -verify -o - %s
+// RUN: %clang_cc1 -triple amdgcn-unknown-unknown -target-cpu gfx1200 -S -verify -o - %s
+// REQUIRES: amdgpu-registered-target
+
+typedef unsigned int v4u32 __attribute__((ext_vector_type(4)));
+
+void test_amdgcn_struct_buffer_load_lds(v4u32 rsrc, __local void* lds, int index, int offset, int soffset, int x) {
----------------
shiltian wrote:
> but if I put them in a single file clang bails on the first error and thus the lit test fails (
That should not be the case. We have other test cases where we have many error checks in one file, such as `clang/test/SemaOpenCL/builtins-amdgcn-error-f16.cl`.
https://github.com/llvm/llvm-project/pull/137678
More information about the cfe-commits
mailing list