26 lines · plain
1; RUN: llc -verify-machineinstrs -O0 -mtriple=spirv32-unknown-unknown --spirv-ext=+SPV_INTEL_int4 %s -o - | FileCheck %s2; RUNx: %if spirv-tools %{ llc -O0 -mtriple=spirv32-unknown-unknown --spirv-ext=+SPV_INTEL_int4 %s -o - -filetype=obj | spirv-val %}3 4; CHECK: Capability Int4TypeINTEL5; CHECK: Extension "SPV_INTEL_int4"6; CHECK: %[[#Int4:]] = OpTypeInt 4 07; CHECK: OpTypeFunction %[[#]] %[[#Int4]]8; CHECK: %[[#Int4PtrTy:]] = OpTypePointer Function %[[#Int4]]9; CHECK: %[[#Const:]] = OpConstant %[[#Int4]] 110 11; CHECK: %[[#Int4Ptr:]] = OpVariable %[[#Int4PtrTy]] Function12; CHECK: OpStore %[[#Int4Ptr]] %[[#Const]]13; CHECK: %[[#Load:]] = OpLoad %[[#Int4]] %[[#Int4Ptr]]14; CHECK: OpFunctionCall %[[#]] %[[#]] %[[#Load]]15 16define spir_kernel void @foo() {17entry:18 %0 = alloca i419 store i4 1, ptr %020 %1 = load i4, ptr %021 call spir_func void @boo(i4 %1)22 ret void23}24 25declare spir_func void @boo(i4)26