|
1 |
| -// RUN: %clangxx -fsycl-device-only -S -emit-llvm -o - %s | FileCheck %s |
| 1 | +// RUN: %clangxx -fsycl-device-only -S -emit-llvm -o - %s -Xclang -opaque-pointers | FileCheck %s |
2 | 2 |
|
3 | 3 | // Check that SROA and mem2reg won't leave alloca of matrix type in IR
|
4 | 4 | // CHECK-NOT: alloca target("spirv.JointMatrixINTEL"
|
@@ -42,16 +42,16 @@ int main(void) {
|
42 | 42 | it.barrier(access::fence_space::local_space);
|
43 | 43 |
|
44 | 44 | // A should load from local address space
|
45 |
| - // CHECK: %{{.*}} = tail call spir_func noundef target("spirv.JointMatrixINTEL", i16, 8, 16, 0, 3, 0) @_Z[[#]]__spirv_JointMatrixLoadINTEL{{.*}}(i16 addrspace(3)* noundef %{{.*}}, i64 noundef 16, i32 noundef 0, i32 noundef 3, i32 noundef 0) #{{.*}} |
| 45 | + // CHECK: %{{.*}} = tail call spir_func noundef target("spirv.JointMatrixINTEL", i16, 8, 16, 0, 3, 0) @_Z[[#]]__spirv_JointMatrixLoadINTEL{{.*}}(ptr addrspace(3) noundef %{{.*}}, i64 noundef 16, i32 noundef 0, i32 noundef 3, i32 noundef 0) #{{.*}} |
46 | 46 | joint_matrix_load(
|
47 | 47 | sg, tA,
|
48 | 48 | tileA.template get_multi_ptr<sycl::access::decorated::yes>(), 16);
|
49 | 49 | // B should load from global address space
|
50 |
| - // CHECK: %{{.*}} = tail call spir_func noundef target("spirv.JointMatrixINTEL", i16, 16, 16, 2, 3, 1) @_Z[[#]]__spirv_JointMatrixLoadINTEL{{.*}}(i16 addrspace(1)* noundef %{{.*}}, i64 noundef 32, i32 noundef 2, i32 noundef 3, i32 noundef 0) #{{.*}} |
| 50 | + // CHECK: %{{.*}} = tail call spir_func noundef target("spirv.JointMatrixINTEL", i16, 16, 16, 2, 3, 1) @_Z[[#]]__spirv_JointMatrixLoadINTEL{{.*}}(ptr addrspace(1) noundef %{{.*}}, i64 noundef 32, i32 noundef 2, i32 noundef 3, i32 noundef 0) #{{.*}} |
51 | 51 | joint_matrix_load(sg, tB, pB, 32);
|
52 | 52 | tC = joint_matrix_mad(sg, tA, tB, tC);
|
53 | 53 | // C should store to global address space
|
54 |
| - // CHECK: tail call spir_func void @_Z[[#]]__spirv_JointMatrixStoreINTEL{{.*}}(float addrspace(1)* noundef %{{.*}}, target("spirv.JointMatrixINTEL", float, 8, 16, 3, 3, 2) noundef %{{.*}}, i64 noundef 16, i32 noundef 0, i32 noundef 3, i32 noundef 0) #{{.*}} |
| 54 | + // CHECK: tail call spir_func void @_Z[[#]]__spirv_JointMatrixStoreINTEL{{.*}}(ptr addrspace(1) noundef %{{.*}}, target("spirv.JointMatrixINTEL", float, 8, 16, 3, 3, 2) noundef %{{.*}}, i64 noundef 16, i32 noundef 0, i32 noundef 3, i32 noundef 0) #{{.*}} |
55 | 55 | joint_matrix_store(sg, tC, pC, 16, layout::row_major);
|
56 | 56 | });
|
57 | 57 | });
|
|
0 commit comments