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