Debian Codegraph @

llvm-project/llvm/projects/llvm-spirv/test/DecorateUniform.spvasm

raw
1 ; REQUIRES: spirv-as
2
3 ; RUN: spirv-as %s --target-env spv1.6 -o %t.spv
4 ; RUN: spirv-val %t.spv
5 ; RUN: llvm-spirv -to-text -o - %t.spv | FileCheck %s
6
7 ; Check that the translator does not add the Shader/Matrix capability
8 ; requirements for SPIR-V 1.6.
9
10 ; CHECK-NOT: Capability Matrix
11 ; CHECK-NOT: Capability Shader
12
13 OpCapability Addresses
14 OpCapability Kernel
15 OpCapability UniformDecoration
16 OpMemoryModel Physical64 OpenCL
17 OpEntryPoint Kernel %2 "test"
18 OpDecorate %uint_0 Uniform
19 %uint = OpTypeInt 32 0
20 %uint_0 = OpConstant %uint 0
21 %void = OpTypeVoid
22 %1 = OpTypeFunction %void
23 %2 = OpFunction %void None %1
24 %3 = OpLabel
25 OpReturn
26 OpFunctionEnd