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