blob: 121907b36fa7019c8a80f0f70275a00a44563175 [file] [edit]
spv.longVectorBuiltinsint64.comp
// Module Version 10300
// Generated by (magic number): 8000b
// Id's are bound by 90
Capability Shader
Capability Int64
Capability LongVectorEXT
Capability ExpectAssumeKHR
Extension "SPV_EXT_long_vector"
Extension "SPV_KHR_expect_assume"
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
EntryPoint GLCompute 4 "main"
ExecutionMode 4 LocalSize 64 1 1
Source GLSL 450
SourceExtension "GL_EXT_buffer_reference"
SourceExtension "GL_EXT_expect_assume"
SourceExtension "GL_EXT_long_vector"
SourceExtension "GL_EXT_shader_explicit_arithmetic_types"
SourceExtension "GL_KHR_memory_scope_semantics"
Name 4 "main"
Name 9 "vi"
Name 12 "i"
Name 41 "vb"
Name 64 "tempArg"
Name 65 "tempArg"
Name 66 "ResType"
Decorate 89 BuiltIn WorkgroupSize
2: TypeVoid
3: TypeFunction 2
6: TypeInt 64 1
7: TypeVector 6(int64_t) 5
8: TypePointer Function 7(i64vec)
11: TypePointer Function 6(int64_t)
38: TypeBool
39: TypeVector 38(bool) 5
40: TypePointer Function 39(bvec)
66(ResType): TypeStruct 7(i64vec) 7(i64vec)
85: TypeInt 32 0
86: TypeVector 85(int) 3
87: 85(int) Constant 64
88: 85(int) Constant 1
89: 86(ivec3) ConstantComposite 87 88 88
4(main): 2 Function None 3
5: Label
9(vi): 8(ptr) Variable Function
12(i): 11(ptr) Variable Function
41(vb): 40(ptr) Variable Function
64(tempArg): 8(ptr) Variable Function
65(tempArg): 8(ptr) Variable Function
10: 7(i64vec) Load 9(vi)
13: 6(int64_t) Load 12(i)
14: 7(i64vec) CompositeConstruct 13 13 13 13 13
15: 7(i64vec) ExtInst 1(GLSL.std.450) 39(SMin) 10 14
Store 9(vi) 15
16: 7(i64vec) Load 9(vi)
17: 7(i64vec) Load 9(vi)
18: 7(i64vec) ExtInst 1(GLSL.std.450) 39(SMin) 16 17
Store 9(vi) 18
19: 7(i64vec) Load 9(vi)
20: 6(int64_t) Load 12(i)
21: 7(i64vec) CompositeConstruct 20 20 20 20 20
22: 7(i64vec) ExtInst 1(GLSL.std.450) 42(SMax) 19 21
Store 9(vi) 22
23: 7(i64vec) Load 9(vi)
24: 7(i64vec) Load 9(vi)
25: 7(i64vec) ExtInst 1(GLSL.std.450) 42(SMax) 23 24
Store 9(vi) 25
26: 7(i64vec) Load 9(vi)
27: 6(int64_t) Load 12(i)
28: 6(int64_t) Load 12(i)
29: 7(i64vec) CompositeConstruct 27 27 27 27 27
30: 7(i64vec) CompositeConstruct 28 28 28 28 28
31: 7(i64vec) ExtInst 1(GLSL.std.450) 45(SClamp) 26 29 30
Store 9(vi) 31
32: 7(i64vec) Load 9(vi)
33: 7(i64vec) Load 9(vi)
34: 7(i64vec) Load 9(vi)
35: 7(i64vec) ExtInst 1(GLSL.std.450) 45(SClamp) 32 33 34
Store 9(vi) 35
36: 7(i64vec) Load 9(vi)
37: 7(i64vec) Load 9(vi)
42: 39(bvec) Load 41(vb)
43: 7(i64vec) Select 42 37 36
Store 9(vi) 43
44: 7(i64vec) Load 9(vi)
45: 7(i64vec) Load 9(vi)
46: 39(bvec) SLessThan 44 45
Store 41(vb) 46
47: 7(i64vec) Load 9(vi)
48: 7(i64vec) Load 9(vi)
49: 39(bvec) SLessThanEqual 47 48
Store 41(vb) 49
50: 7(i64vec) Load 9(vi)
51: 7(i64vec) Load 9(vi)
52: 39(bvec) SGreaterThan 50 51
Store 41(vb) 52
53: 7(i64vec) Load 9(vi)
54: 7(i64vec) Load 9(vi)
55: 39(bvec) SGreaterThanEqual 53 54
Store 41(vb) 55
56: 7(i64vec) Load 9(vi)
57: 7(i64vec) Load 9(vi)
58: 39(bvec) IEqual 56 57
Store 41(vb) 58
59: 7(i64vec) Load 9(vi)
60: 7(i64vec) Load 9(vi)
61: 39(bvec) INotEqual 59 60
Store 41(vb) 61
62: 7(i64vec) Load 9(vi)
63: 7(i64vec) Load 9(vi)
67: 66(ResType) SMulExtended 62 63
68: 7(i64vec) CompositeExtract 67 0
Store 65(tempArg) 68
69: 7(i64vec) CompositeExtract 67 1
Store 64(tempArg) 69
70: 7(i64vec) Load 64(tempArg)
Store 9(vi) 70
71: 7(i64vec) Load 65(tempArg)
Store 9(vi) 71
72: 7(i64vec) Load 9(vi)
73: 7(i64vec) BitCount 72
Store 9(vi) 73
74: 7(i64vec) Load 9(vi)
75: 7(i64vec) Load 9(vi)
76: 39(bvec) Load 41(vb)
77: 7(i64vec) Select 76 75 74
Store 9(vi) 77
78: 39(bvec) Load 41(vb)
79: 39(bvec) Load 41(vb)
80: 39(bvec) Load 41(vb)
81: 39(bvec) Select 80 79 78
Store 41(vb) 81
82: 7(i64vec) Load 9(vi)
83: 7(i64vec) Load 9(vi)
84: 7(i64vec) ExpectKHR 82 83
Store 9(vi) 84
Return
FunctionEnd