brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1022 B · 02f0232 Raw
21 lines · plain
1; RUN: llc -verify-machineinstrs -O0 -mtriple=spirv32-unknown-unknown --spirv-ext=+SPV_INTEL_int4,+SPV_KHR_cooperative_matrix %s -o - | FileCheck %s2; 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 Int4TypeINTEL5; CHECK-DAG: Capability CooperativeMatrixKHR6; CHECK-DAG: Extension "SPV_INTEL_int4"7; CHECK-DAG: Capability Int4CooperativeMatrixINTEL8; CHECK-DAG: Extension "SPV_KHR_cooperative_matrix"9 10; CHECK: %[[#Int4Ty:]] = OpTypeInt 4 011; CHECK: %[[#CoopMatTy:]] = OpTypeCooperativeMatrixKHR %[[#Int4Ty]]12; CHECK: CompositeConstruct %[[#CoopMatTy]]13 14define spir_kernel void @foo() {15entry: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 void18}19 20declare dso_local spir_func noundef target("spirv.CooperativeMatrixKHR", i4, 3, 12, 12, 2) @_Z26__spirv_CompositeConstruct(i4 noundef)21