yum-mirror/glslang

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

Jeff BolzImplement GL_EXT_long_vector (#4132)b937eae5

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