Debian Codegraph @

llvm-project/llvm/projects/llvm-spirv/test/negative/spirv-version-controls-2.spt

raw
1 119734787 1024 393230 12 0
2 2 Capability Addresses
3 2 Capability Kernel
4 5 ExtInstImport 1 "OpenCL.std"
5 3 MemoryModel 1 2
6 4 EntryPoint 6 6 "foo"
7 9 String 11 "kernel_arg_type.foo.int*,"
8 3 Source 3 102000
9 3 Name 7 "a"
10 4 Name 8 "entry"
11 4 Name 10 "a.addr"
12 4 Decorate 10 Alignment 4
13 4 TypeInt 3 32 0
14 2 TypeVoid 2
15 4 TypePointer 4 5 3
16 4 TypeFunction 5 2 4
17 4 TypePointer 9 7 4
18
19
20 5 Function 2 6 0 5
21 3 FunctionParameter 4 7
22
23 2 Label 8
24 4 Variable 9 10 7
25 5 Store 10 7 2 4
26 1 Return
27
28 1 FunctionEnd
29
30 ; RUN: not llvm-spirv %s -to-binary -o - 2>&1 | FileCheck %s --check-prefix=CHECK-ERROR
31 ;
32 ; CHECK-ERROR: Invalid SPIR-V module: unsupported SPIR-V version number 'unknown (1024)'. Range of supported/known SPIR-V versions is 1.0 (65536) - 1.6 (67072)