Move to newer version of SPIRV-Tools

* Update tests according to spirv-opt update

We refactored function inlining pass of spirv-opt and it results in
different numbering of result ids in SPIR-V code. This commit updates
test cases to avoid a test failure according to the spirv-opt update.

* Update known good
This commit is contained in:
Jaebaek Seo
2020-05-14 13:06:05 -04:00
committed by GitHub
parent 4fa68edd68
commit 08a05bc2b9
8 changed files with 111 additions and 111 deletions

View File

@@ -1,7 +1,7 @@
hlsl.partialFlattenLocal.vert
// Module Version 10000
// Generated by (magic number): 80008
// Id's are bound by 158
// Id's are bound by 159
Capability Shader
1: ExtInstImport "GLSL.std.450"
@@ -38,44 +38,44 @@ hlsl.partialFlattenLocal.vert
83(pos): 82(ptr) Variable Input
85: TypePointer Output 7(fvec4)
86(@entryPointOutput): 85(ptr) Variable Output
130: TypePointer Function 17
132: TypePointer Function 20
131: TypePointer Function 17
133: TypePointer Function 20
4(main): 2 Function None 3
5: Label
133: 132(ptr) Variable Function
131: 130(ptr) Variable Function
134: 133(ptr) Variable Function
132: 131(ptr) Variable Function
84: 7(fvec4) Load 83(pos)
136: 34(ptr) AccessChain 131 25
Store 136 33
137: 39(ptr) AccessChain 133 25
Store 137 38
Branch 100
100: Label
157: 21(int) Phi 25 5 119 106
105: 54(bool) SLessThan 157 31
LoopMerge 101 106 None
BranchConditional 105 106 101
106: Label
138: 39(ptr) AccessChain 133 157
110: 18(fvec2) Load 138
139: 34(ptr) AccessChain 131 157
112: 14(fvec3) Load 139
113: 18(fvec2) VectorShuffle 112 112 0 1
114: 18(fvec2) FAdd 113 110
140: 34(ptr) AccessChain 131 157
116: 14(fvec3) Load 140
117: 14(fvec3) VectorShuffle 116 114 3 4 2
Store 140 117
119: 21(int) IAdd 157 31
Branch 100
137: 34(ptr) AccessChain 132 25
Store 137 33
138: 39(ptr) AccessChain 134 25
Store 138 38
Branch 101
101: Label
142: 17 Load 131
156: 14(fvec3) CompositeExtract 142 0
124: 6(float) CompositeExtract 156 0
125: 6(float) CompositeExtract 156 1
126: 6(float) CompositeExtract 156 2
127: 7(fvec4) CompositeConstruct 124 125 126 32
128: 7(fvec4) FAdd 84 127
Store 86(@entryPointOutput) 128
158: 21(int) Phi 25 5 119 105
104: 54(bool) SLessThan 158 31
LoopMerge 120 105 None
BranchConditional 104 105 120
105: Label
139: 39(ptr) AccessChain 134 158
109: 18(fvec2) Load 139
140: 34(ptr) AccessChain 132 158
111: 14(fvec3) Load 140
112: 18(fvec2) VectorShuffle 111 111 0 1
113: 18(fvec2) FAdd 112 109
141: 34(ptr) AccessChain 132 158
115: 14(fvec3) Load 141
116: 14(fvec3) VectorShuffle 115 113 3 4 2
Store 141 116
119: 21(int) IAdd 158 31
Branch 101
120: Label
143: 17 Load 132
157: 14(fvec3) CompositeExtract 143 0
125: 6(float) CompositeExtract 157 0
126: 6(float) CompositeExtract 157 1
127: 6(float) CompositeExtract 157 2
128: 7(fvec4) CompositeConstruct 125 126 127 32
129: 7(fvec4) FAdd 84 128
Store 86(@entryPointOutput) 129
Return
FunctionEnd