| 1 |
119734787 65536 393230 13 0 |
| 2 |
2 Capability Addresses |
| 3 |
2 Capability Linkage |
| 4 |
2 Capability Kernel |
| 5 |
2 Capability Int8 |
| 6 |
5 ExtInstImport 1 "OpenCL.std" |
| 7 |
3 MemoryModel 2 2 |
| 8 |
5 EntryPoint 6 8 "test" |
| 9 |
3 ExecutionMode 8 31 |
| 10 |
14 String 12 "kernel_arg_type.test.char,short,int,long,int2," |
| 11 |
3 Source 12345 67890 |
| 12 |
6 Name 4 "_Z8popcountc" |
| 13 |
3 Name 9 "x8" |
| 14 |
4 Name 10 "entry" |
| 15 |
8 Decorate 4 LinkageAttributes "_Z8popcountc" Import |
| 16 |
4 TypeInt 2 8 0 |
| 17 |
4 TypeFunction 3 2 2 |
| 18 |
2 TypeVoid 6 |
| 19 |
4 TypeFunction 7 6 2 |
| 20 |
|
| 21 |
|
| 22 |
5 Function 2 4 0 3 |
| 23 |
3 FunctionParameter 2 5 |
| 24 |
|
| 25 |
1 FunctionEnd |
| 26 |
|
| 27 |
5 Function 6 8 4 7 |
| 28 |
3 FunctionParameter 2 9 |
| 29 |
|
| 30 |
2 Label 10 |
| 31 |
5 FunctionCall 2 11 4 9 |
| 32 |
1 Return |
| 33 |
|
| 34 |
1 FunctionEnd |
| 35 |
|
| 36 |
; RUN: llvm-spirv %s -to-binary -o %t.spv |
| 37 |
; Reverse translation shouldn't crash: |
| 38 |
; RUN: llvm-spirv -r -emit-opaque-pointers %t.spv -o %t.bc |