Don't remove SPIR-V blocks before codegen.
[platform/upstream/glslang.git] / Test / baseResults / spv.100ops.frag.out
1 spv.100ops.frag
2
3 Linked fragment stage:
4
5
6 // Module Version 10000
7 // Generated by (magic number): 80001
8 // Id's are bound by 48
9
10                               Capability Shader
11                1:             ExtInstImport  "GLSL.std.450"
12                               MemoryModel Logical GLSL450
13                               EntryPoint Fragment 4  "main" 36
14                               ExecutionMode 4 OriginLowerLeft
15                               Source ESSL 100
16                               Name 4  "main"
17                               Name 8  "foo("
18                               Name 11  "face1"
19                               Name 13  "face2"
20                               Name 17  "z"
21                               Name 21  "low"
22                               Name 26  "high"
23                               Name 36  "gl_FragColor"
24                               Decorate 11(face1) RelaxedPrecision
25                               Decorate 13(face2) RelaxedPrecision
26                               Decorate 17(z) RelaxedPrecision
27                               Decorate 21(low) RelaxedPrecision
28                               Decorate 26(high) RelaxedPrecision
29                               Decorate 36(gl_FragColor) RelaxedPrecision
30                2:             TypeVoid
31                3:             TypeFunction 2
32                6:             TypeFloat 32
33                7:             TypeFunction 6(float)
34               10:             TypePointer Private 6(float)
35        11(face1):     10(ptr) Variable Private
36               12:    6(float) Constant 1093664768
37        13(face2):     10(ptr) Variable Private
38               14:    6(float) Constant 3221225472
39               15:             TypeInt 32 1
40               16:             TypePointer Function 15(int)
41               18:     15(int) Constant 3
42               19:     15(int) Constant 2
43               20:             TypePointer UniformConstant 15(int)
44          21(low):     20(ptr) Variable UniformConstant
45               24:     15(int) Constant 1
46         26(high):     20(ptr) Variable UniformConstant
47               28:             TypeBool
48               34:             TypeVector 6(float) 4
49               35:             TypePointer Output 34(fvec4)
50 36(gl_FragColor):     35(ptr) Variable Output
51          4(main):           2 Function None 3
52                5:             Label
53            17(z):     16(ptr) Variable Function
54                               Store 11(face1) 12
55                               Store 13(face2) 14
56                               Store 17(z) 18
57               22:     15(int) Load 21(low)
58               23:     15(int) IMul 19 22
59               25:     15(int) IAdd 23 24
60               27:     15(int) Load 26(high)
61               29:    28(bool) SLessThan 25 27
62                               SelectionMerge 31 None
63                               BranchConditional 29 30 31
64               30:               Label
65               32:     15(int)   Load 17(z)
66               33:     15(int)   IAdd 32 24
67                                 Store 17(z) 33
68                                 Branch 31
69               31:             Label
70               37:    6(float) Load 11(face1)
71               38:     15(int) Load 17(z)
72               39:    6(float) ConvertSToF 38
73               40:   34(fvec4) CompositeConstruct 39 39 39 39
74               41:   34(fvec4) VectorTimesScalar 40 37
75               42:    6(float) FunctionCall 8(foo()
76               43:   34(fvec4) CompositeConstruct 42 42 42 42
77               44:   34(fvec4) FAdd 41 43
78                               Store 36(gl_FragColor) 44
79                               Return
80                               FunctionEnd
81          8(foo():    6(float) Function None 7
82                9:             Label
83               45:    6(float) Load 13(face2)
84                               ReturnValue 45
85                               FunctionEnd