yum-mirror/glslang

git clone https://git.yummers.dev/yum-mirror/glslang

Jeff BolzImplement GL_EXT_long_vector (#4132)b937eae5

main
8.2 KiB175 linesraw
1spv.longVectorBuiltinsuint64.comp
2// Module Version 10300
3// Generated by (magic number): 8000b
4// Id's are bound by 112
5
6                              Capability Shader
7                              Capability Int64
8                              Capability LongVectorEXT
9                              Capability ExpectAssumeKHR
10                              Extension  "SPV_EXT_long_vector"
11                              Extension  "SPV_KHR_expect_assume"
12               1:             ExtInstImport  "GLSL.std.450"
13                              MemoryModel Logical GLSL450
14                              EntryPoint GLCompute 4  "main"
15                              ExecutionMode 4 LocalSize 64 1 1
16                              Source GLSL 450
17                              SourceExtension  "GL_EXT_buffer_reference"
18                              SourceExtension  "GL_EXT_expect_assume"
19                              SourceExtension  "GL_EXT_long_vector"
20                              SourceExtension  "GL_EXT_shader_explicit_arithmetic_types"
21                              SourceExtension  "GL_KHR_memory_scope_semantics"
22                              Name 4  "main"
23                              Name 9  "vu"
24                              Name 12  "u"
25                              Name 41  "vb"
26                              Name 62  "tempReturn"
27                              Name 65  "tempArg"
28                              Name 66  "ResType"
29                              Name 72  "tempReturn"
30                              Name 75  "tempArg"
31                              Name 83  "tempArg"
32                              Name 84  "tempArg"
33                              Name 93  "vi"
34                              Decorate 111 BuiltIn WorkgroupSize
35               2:             TypeVoid
36               3:             TypeFunction 2
37               6:             TypeInt 64 0
38               7:             TypeVector 6(int64_t) 5
39               8:             TypePointer Function 7(i64vec)
40              11:             TypePointer Function 6(int64_t)
41              38:             TypeBool
42              39:             TypeVector 38(bool) 5
43              40:             TypePointer Function 39(bvec)
44     66(ResType):             TypeStruct 7(i64vec) 7(i64vec)
45              90:             TypeInt 64 1
46              91:             TypeVector 90(int64_t) 5
47              92:             TypePointer Function 91(i64vec)
48             107:             TypeInt 32 0
49             108:             TypeVector 107(int) 3
50             109:    107(int) Constant 64
51             110:    107(int) Constant 1
52             111:  108(ivec3) ConstantComposite 109 110 110
53         4(main):           2 Function None 3
54               5:             Label
55           9(vu):      8(ptr) Variable Function
56           12(u):     11(ptr) Variable Function
57          41(vb):     40(ptr) Variable Function
58  62(tempReturn):      8(ptr) Variable Function
59     65(tempArg):      8(ptr) Variable Function
60  72(tempReturn):      8(ptr) Variable Function
61     75(tempArg):      8(ptr) Variable Function
62     83(tempArg):      8(ptr) Variable Function
63     84(tempArg):      8(ptr) Variable Function
64          93(vi):     92(ptr) Variable Function
65              10:   7(i64vec) Load 9(vu)
66              13:  6(int64_t) Load 12(u)
67              14:   7(i64vec) CompositeConstruct 13 13 13 13 13
68              15:   7(i64vec) ExtInst 1(GLSL.std.450) 38(UMin) 10 14
69                              Store 9(vu) 15
70              16:   7(i64vec) Load 9(vu)
71              17:   7(i64vec) Load 9(vu)
72              18:   7(i64vec) ExtInst 1(GLSL.std.450) 38(UMin) 16 17
73                              Store 9(vu) 18
74              19:   7(i64vec) Load 9(vu)
75              20:  6(int64_t) Load 12(u)
76              21:   7(i64vec) CompositeConstruct 20 20 20 20 20
77              22:   7(i64vec) ExtInst 1(GLSL.std.450) 41(UMax) 19 21
78                              Store 9(vu) 22
79              23:   7(i64vec) Load 9(vu)
80              24:   7(i64vec) Load 9(vu)
81              25:   7(i64vec) ExtInst 1(GLSL.std.450) 41(UMax) 23 24
82                              Store 9(vu) 25
83              26:   7(i64vec) Load 9(vu)
84              27:  6(int64_t) Load 12(u)
85              28:  6(int64_t) Load 12(u)
86              29:   7(i64vec) CompositeConstruct 27 27 27 27 27
87              30:   7(i64vec) CompositeConstruct 28 28 28 28 28
88              31:   7(i64vec) ExtInst 1(GLSL.std.450) 44(UClamp) 26 29 30
89                              Store 9(vu) 31
90              32:   7(i64vec) Load 9(vu)
91              33:   7(i64vec) Load 9(vu)
92              34:   7(i64vec) Load 9(vu)
93              35:   7(i64vec) ExtInst 1(GLSL.std.450) 44(UClamp) 32 33 34
94                              Store 9(vu) 35
95              36:   7(i64vec) Load 9(vu)
96              37:   7(i64vec) Load 9(vu)
97              42:    39(bvec) Load 41(vb)
98              43:   7(i64vec) Select 42 37 36
99                              Store 9(vu) 43
100              44:   7(i64vec) Load 9(vu)
101              45:   7(i64vec) Load 9(vu)
102              46:    39(bvec) ULessThan 44 45
103                              Store 41(vb) 46
104              47:   7(i64vec) Load 9(vu)
105              48:   7(i64vec) Load 9(vu)
106              49:    39(bvec) ULessThanEqual 47 48
107                              Store 41(vb) 49
108              50:   7(i64vec) Load 9(vu)
109              51:   7(i64vec) Load 9(vu)
110              52:    39(bvec) UGreaterThan 50 51
111                              Store 41(vb) 52
112              53:   7(i64vec) Load 9(vu)
113              54:   7(i64vec) Load 9(vu)
114              55:    39(bvec) UGreaterThanEqual 53 54
115                              Store 41(vb) 55
116              56:   7(i64vec) Load 9(vu)
117              57:   7(i64vec) Load 9(vu)
118              58:    39(bvec) IEqual 56 57
119                              Store 41(vb) 58
120              59:   7(i64vec) Load 9(vu)
121              60:   7(i64vec) Load 9(vu)
122              61:    39(bvec) INotEqual 59 60
123                              Store 41(vb) 61
124              63:   7(i64vec) Load 9(vu)
125              64:   7(i64vec) Load 9(vu)
126              67: 66(ResType) IAddCarry 63 64
127              68:   7(i64vec) CompositeExtract 67 1
128                              Store 65(tempArg) 68
129              69:   7(i64vec) CompositeExtract 67 0
130                              Store 62(tempReturn) 69
131              70:   7(i64vec) Load 65(tempArg)
132                              Store 9(vu) 70
133              71:   7(i64vec) Load 62(tempReturn)
134                              Store 9(vu) 71
135              73:   7(i64vec) Load 9(vu)
136              74:   7(i64vec) Load 9(vu)
137              76: 66(ResType) ISubBorrow 73 74
138              77:   7(i64vec) CompositeExtract 76 1
139                              Store 75(tempArg) 77
140              78:   7(i64vec) CompositeExtract 76 0
141                              Store 72(tempReturn) 78
142              79:   7(i64vec) Load 75(tempArg)
143                              Store 9(vu) 79
144              80:   7(i64vec) Load 72(tempReturn)
145                              Store 9(vu) 80
146              81:   7(i64vec) Load 9(vu)
147              82:   7(i64vec) Load 9(vu)
148              85: 66(ResType) UMulExtended 81 82
149              86:   7(i64vec) CompositeExtract 85 0
150                              Store 84(tempArg) 86
151              87:   7(i64vec) CompositeExtract 85 1
152                              Store 83(tempArg) 87
153              88:   7(i64vec) Load 83(tempArg)
154                              Store 9(vu) 88
155              89:   7(i64vec) Load 84(tempArg)
156                              Store 9(vu) 89
157              94:   7(i64vec) Load 9(vu)
158              95:  91(i64vec) BitCount 94
159                              Store 93(vi) 95
160              96:   7(i64vec) Load 9(vu)
161              97:   7(i64vec) Load 9(vu)
162              98:    39(bvec) Load 41(vb)
163              99:   7(i64vec) Select 98 97 96
164                              Store 9(vu) 99
165             100:    39(bvec) Load 41(vb)
166             101:    39(bvec) Load 41(vb)
167             102:    39(bvec) Load 41(vb)
168             103:    39(bvec) Select 102 101 100
169                              Store 41(vb) 103
170             104:   7(i64vec) Load 9(vu)
171             105:   7(i64vec) Load 9(vu)
172             106:   7(i64vec) ExpectKHR 104 105
173                              Store 9(vu) 106
174                              Return
175                              FunctionEnd