| 1 |
119734787 65792 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: llvm-spirv %s -to-binary -o %t.spv |
| 31 |
; RUN: spirv-val %t.spv |
| 32 |
; RUN: llvm-spirv -r -emit-opaque-pointers %t.spv --spirv-max-version=1.1 -o %t |
| 33 |
; RUN: not llvm-spirv -r -emit-opaque-pointers %t.spv --spirv-max-version=1.0 -o - 2>&1 | FileCheck %s --check-prefix=CHECK-ERROR |
| 34 |
; |
| 35 |
; CHECK-ERROR: Invalid SPIR-V module: incorrect SPIR-V version number 1.1 (65792) - it conflicts with --spirv-max-version which is set to 1.0 (65536) |