| 1 |
119734787 65536 458752 24 0 |
| 2 |
2 Capability Addresses |
| 3 |
2 Capability Linkage |
| 4 |
2 Capability Kernel |
| 5 |
2 Capability Int64 |
| 6 |
3 MemoryModel 2 2 |
| 7 |
10 EntryPoint 6 1 "composite_construct_int4" |
| 8 |
3 Source 3 102000 |
| 9 |
3 Name 2 "in" |
| 10 |
4 Decorate 3 BuiltIn 28 |
| 11 |
3 Decorate 3 Constant |
| 12 |
4 Decorate 2 FuncParamAttr 5 |
| 13 |
11 Decorate 3 LinkageAttributes "__spirv_GlobalInvocationId" Import |
| 14 |
4 TypeInt 4 64 0 |
| 15 |
4 TypeInt 8 32 0 |
| 16 |
5 Constant 4 12 32 0 |
| 17 |
4 Constant 8 13 -123 |
| 18 |
4 Constant 8 14 -122 |
| 19 |
4 Constant 8 15 -121 |
| 20 |
4 Constant 8 16 -119 |
| 21 |
4 TypeVector 5 4 3 |
| 22 |
4 TypePointer 6 0 5 |
| 23 |
2 TypeVoid 7 |
| 24 |
4 TypeVector 9 8 4 |
| 25 |
4 TypePointer 10 5 9 |
| 26 |
4 TypeFunction 11 7 10 |
| 27 |
4 Variable 6 3 0 |
| 28 |
|
| 29 |
5 Function 7 1 0 11 |
| 30 |
3 FunctionParameter 10 2 |
| 31 |
|
| 32 |
2 Label 17 |
| 33 |
4 Load 5 18 3 |
| 34 |
5 CompositeExtract 4 19 18 0 |
| 35 |
5 ShiftLeftLogical 4 20 19 12 |
| 36 |
5 ShiftRightArithmetic 4 21 20 12 |
| 37 |
7 CompositeConstruct 9 22 13 14 15 16 |
| 38 |
5 InBoundsPtrAccessChain 10 23 2 21 |
| 39 |
3 Store 23 22 |
| 40 |
1 Return |
| 41 |
|
| 42 |
1 FunctionEnd |
| 43 |
|
| 44 |
; RUN: llvm-spirv %s -to-binary -o %t.spv |
| 45 |
; RUN: spirv-val %t.spv |
| 46 |
; RUN: llvm-spirv -r -emit-opaque-pointers %t.spv -o %t.bc |
| 47 |
; RUN: llvm-dis < %t.bc | FileCheck %s --check-prefix=CHECK-LLVM |
| 48 |
|
| 49 |
; CHECK-LLVM: %[[vector:[0-9]+]] = getelementptr inbounds <4 x i32>, ptr addrspace(1) %in, i64 %{{[0-9]*}} |
| 50 |
; CHECK-LLVM: store <4 x i32> <i32 -123, i32 -122, i32 -121, i32 -119>, ptr addrspace(1) %[[vector]] |