| 1 |
119734787 65536 393230 13 0 |
| 2 |
2 Capability Addresses |
| 3 |
2 Capability Kernel |
| 4 |
2 Capability Groups |
| 5 |
5 ExtInstImport 1 "OpenCL.std" |
| 6 |
3 MemoryModel 1 2 |
| 7 |
10 EntryPoint 6 6 "testWorkGroupIAddUnsigned" |
| 8 |
3 Source 3 200000 |
| 9 |
3 Name 7 "a" |
| 10 |
4 Decorate 8 FuncParamAttr 5 |
| 11 |
4 TypeInt 3 32 0 |
| 12 |
4 Constant 3 11 2 |
| 13 |
2 TypeVoid 2 |
| 14 |
4 TypePointer 4 5 3 |
| 15 |
5 TypeFunction 5 2 3 4 |
| 16 |
|
| 17 |
|
| 18 |
5 Function 2 6 0 5 |
| 19 |
3 FunctionParameter 3 7 |
| 20 |
3 FunctionParameter 4 8 |
| 21 |
|
| 22 |
2 Label 9 |
| 23 |
6 GroupIAdd 3 10 11 0 7 |
| 24 |
5 Store 8 10 2 4 |
| 25 |
1 Return |
| 26 |
|
| 27 |
1 FunctionEnd |
| 28 |
|
| 29 |
; TODO: This currently maps to _Z21work_group_reduce_addi, but should map |
| 30 |
; to _Z21work_group_reduce_addj, instead. Remove this test and update |
| 31 |
; test/transcoding/group_ops.cl when fixing this. |
| 32 |
; XFAIL: * |
| 33 |
; RUN: llvm-spirv %s -to-binary -o %t.spv |
| 34 |
; RUN: spirv-val %t.spv |
| 35 |
; RUN: llvm-spirv -r -emit-opaque-pointers %t.spv -o %t.bc |
| 36 |
; RUN: llvm-dis < %t.bc | FileCheck %s |
| 37 |
|
| 38 |
; CHECK: call spir_func i32 @_Z21work_group_reduce_addj(i32 %a) |