blob: e0fba776a4ee7321b9b3ba62d46e2dad5114e1df [file] [log] [blame]
John Kessenich647fcca2018-03-15 21:07:35 -06001spv.rankShift.comp
2// Module Version 10000
John Kessenich31c33702019-11-02 21:26:40 -06003// Generated by (magic number): 80008
John Kessenich647fcca2018-03-15 21:07:35 -06004// Id's are bound by 33
5
6 Capability Shader
7 Capability Int64
8 1: ExtInstImport "GLSL.std.450"
9 MemoryModel Logical GLSL450
10 EntryPoint GLCompute 4 "main"
11 ExecutionMode 4 LocalSize 54 1 1
12 Source GLSL 450
13 SourceExtension "GL_ARB_gpu_shader_int64"
14 Name 4 "main"
15 Name 8 "result"
16 Name 11 "arg0"
17 Name 15 "arg1"
18 Decorate 11(arg0) Location 4
19 Decorate 15(arg1) Location 5
20 Decorate 32 BuiltIn WorkgroupSize
21 2: TypeVoid
22 3: TypeFunction 2
23 6: TypeInt 64 0
Jeff Bolzaf7a9482018-05-22 23:13:30 -050024 7: TypePointer Function 6(int64_t)
John Kessenich647fcca2018-03-15 21:07:35 -060025 9: TypeInt 64 1
Jeff Bolzaf7a9482018-05-22 23:13:30 -050026 10: TypePointer UniformConstant 9(int64_t)
John Kessenich647fcca2018-03-15 21:07:35 -060027 11(arg0): 10(ptr) Variable UniformConstant
28 13: TypeInt 32 0
29 14: TypePointer UniformConstant 13(int)
30 15(arg1): 14(ptr) Variable UniformConstant
31 29: TypeVector 13(int) 3
32 30: 13(int) Constant 54
33 31: 13(int) Constant 1
34 32: 29(ivec3) ConstantComposite 30 31 31
35 4(main): 2 Function None 3
36 5: Label
37 8(result): 7(ptr) Variable Function
Jeff Bolzaf7a9482018-05-22 23:13:30 -050038 12: 9(int64_t) Load 11(arg0)
John Kessenich647fcca2018-03-15 21:07:35 -060039 16: 13(int) Load 15(arg1)
Jeff Bolzaf7a9482018-05-22 23:13:30 -050040 17: 9(int64_t) ShiftLeftLogical 12 16
41 18: 6(int64_t) Bitcast 17
John Kessenich647fcca2018-03-15 21:07:35 -060042 Store 8(result) 18
Jeff Bolzaf7a9482018-05-22 23:13:30 -050043 19: 9(int64_t) Load 11(arg0)
John Kessenich647fcca2018-03-15 21:07:35 -060044 20: 13(int) Load 15(arg1)
Jeff Bolzaf7a9482018-05-22 23:13:30 -050045 21: 9(int64_t) ShiftRightArithmetic 19 20
46 22: 6(int64_t) Bitcast 21
John Kessenich647fcca2018-03-15 21:07:35 -060047 Store 8(result) 22
48 23: 13(int) Load 15(arg1)
Jeff Bolzaf7a9482018-05-22 23:13:30 -050049 24: 6(int64_t) Load 8(result)
50 25: 6(int64_t) ShiftLeftLogical 24 23
John Kessenich647fcca2018-03-15 21:07:35 -060051 Store 8(result) 25
52 26: 13(int) Load 15(arg1)
Jeff Bolzaf7a9482018-05-22 23:13:30 -050053 27: 6(int64_t) Load 8(result)
54 28: 6(int64_t) ShiftRightLogical 27 26
John Kessenich647fcca2018-03-15 21:07:35 -060055 Store 8(result) 28
56 Return
57 FunctionEnd