================
@@ -0,0 +1,51 @@
+; RUN: llc -mtriple=spirv64-unknown-unknown \
+; RUN: -spirv-ext=+SPV_KHR_cooperative_matrix \
+; RUN: -filetype=asm < %s | FileCheck %s
+
+target triple = "spirv64-unknown-unknown"
+
+%coopmat.f32.sc3.16x16.u0 =
+ type target("spirv.CooperativeMatrixKHR", float, 3, 16, 16, 0)
+
+; ---------------------------------------------------------------------------
+; Suffix branch.
+; ---------------------------------------------------------------------------
+
+declare spir_func %coopmat.f32.sc3.16x16.u0
+@__spirv_CooperativeMatrixLoadKHR_f32_sc3_16x16_u0_global(
+ ptr addrspace(1), i32)
+
+define spir_kernel void @test_mangled_load(
+ ptr addrspace(1) %ptr) {
+entry:
+ %mat = call spir_func %coopmat.f32.sc3.16x16.u0
+ @__spirv_CooperativeMatrixLoadKHR_f32_sc3_16x16_u0_global(
+ ptr addrspace(1) %ptr, i32 16)
----------------
svenvh wrote:
We should add some coverage for e.g. `OpFAdd` too (as SPIRVUtils.cpp might not
handle that yet?)
https://github.com/llvm/llvm-project/pull/221328
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits