| 1 |
; RUN: llc -verify-machineinstrs -O0 -mtriple=spirv32-unknown-unknown --spirv-ext=+SPV_INTEL_int4,+SPV_KHR_cooperative_matrix %s -o - | FileCheck %s |
| 2 |
; RUNx: %if spirv-tools %{ llc -O0 -mtriple=spirv32-unknown-unknown --spirv-ext=+SPV_INTEL_int4,+SPV_KHR_cooperative_matrix %s -o - -filetype=obj | spirv-val %} |
| 3 |
|
| 4 |
; CHECK-DAG: Capability Int4TypeINTEL |
| 5 |
; CHECK-DAG: Capability CooperativeMatrixKHR |
| 6 |
; CHECK-DAG: Extension "SPV_INTEL_int4" |
| 7 |
; CHECK-DAG: Capability Int4CooperativeMatrixINTEL |
| 8 |
; CHECK-DAG: Extension "SPV_KHR_cooperative_matrix" |
| 9 |
|
| 10 |
; CHECK: %[[#Int4Ty:]] = OpTypeInt 4 0 |
| 11 |
; CHECK: %[[#CoopMatTy:]] = OpTypeCooperativeMatrixKHR %[[#Int4Ty]] |
| 12 |
; CHECK: CompositeConstruct %[[#CoopMatTy]] |
| 13 |
|
| 14 |
define spir_kernel void @foo() { |
| 15 |
entry: |
| 16 |
%call.i.i = tail call spir_func noundef target("spirv.CooperativeMatrixKHR", i4, 3, 12, 12, 2) @_Z26__spirv_CompositeConstruct(i4 noundef 0) |
| 17 |
ret void |
| 18 |
} |
| 19 |
|
| 20 |
declare dso_local spir_func noundef target("spirv.CooperativeMatrixKHR", i4, 3, 12, 12, 2) @_Z26__spirv_CompositeConstruct(i4 noundef) |