Add test for constant type conversion
This commit is contained in:
parent
f9d08a25fb
commit
8912336663
3 changed files with 317 additions and 0 deletions
158
Test/baseResults/spv.constConstruct.vert.out
Normal file
158
Test/baseResults/spv.constConstruct.vert.out
Normal file
|
|
@ -0,0 +1,158 @@
|
|||
spv.constConstruct.vert
|
||||
Validation failed
|
||||
// Module Version 10000
|
||||
// Generated by (magic number): 80007
|
||||
// Id's are bound by 137
|
||||
|
||||
Capability Shader
|
||||
Capability Float64
|
||||
Capability Int64
|
||||
1: ExtInstImport "GLSL.std.450"
|
||||
MemoryModel Logical GLSL450
|
||||
EntryPoint Vertex 4 "main"
|
||||
Source GLSL 450
|
||||
SourceExtension "GL_EXT_shader_explicit_arithmetic_types_float16"
|
||||
SourceExtension "GL_EXT_shader_explicit_arithmetic_types_float32"
|
||||
SourceExtension "GL_EXT_shader_explicit_arithmetic_types_float64"
|
||||
SourceExtension "GL_EXT_shader_explicit_arithmetic_types_int16"
|
||||
SourceExtension "GL_EXT_shader_explicit_arithmetic_types_int32"
|
||||
SourceExtension "GL_EXT_shader_explicit_arithmetic_types_int64"
|
||||
SourceExtension "GL_EXT_shader_explicit_arithmetic_types_int8"
|
||||
Name 4 "main"
|
||||
2: TypeVoid
|
||||
3: TypeFunction 2
|
||||
6: TypeFloat 16
|
||||
7:6(float16_t) Constant 15360
|
||||
8:6(float16_t) Constant 16384
|
||||
9:6(float16_t) Constant 16896
|
||||
10:6(float16_t) Constant 0
|
||||
11:6(float16_t) Constant 17920
|
||||
12:6(float16_t) Constant 18176
|
||||
13:6(float16_t) Constant 18688
|
||||
14:6(float16_t) Constant 18816
|
||||
15: TypeFloat 32
|
||||
16: 15(float) Constant 1099431936
|
||||
17: 15(float) Constant 1099956224
|
||||
18: 15(float) Constant 1100480512
|
||||
19: 15(float) Constant 2139095040
|
||||
20: 15(float) Constant 0
|
||||
21: 15(float) Constant 1102053376
|
||||
22: 15(float) Constant 1102577664
|
||||
23: 15(float) Constant 1104150528
|
||||
24: 15(float) Constant 1104674816
|
||||
25: 15(float) Constant 1065353216
|
||||
26: TypeFloat 64
|
||||
27:26(float64_t) Constant 0 1077968896
|
||||
28:26(float64_t) Constant 0 1078001664
|
||||
29:26(float64_t) Constant 0 1078034432
|
||||
30:26(float64_t) Constant 36 0
|
||||
31:26(float64_t) Constant 37 0
|
||||
32:26(float64_t) Constant 0 1078132736
|
||||
33:26(float64_t) Constant 0 1078165504
|
||||
34:26(float64_t) Constant 40 0
|
||||
35:26(float64_t) Constant 41 0
|
||||
36:26(float64_t) Constant 0 1078263808
|
||||
37:26(float64_t) Constant 0 1078296576
|
||||
38:26(float64_t) Constant 0 1072693248
|
||||
39: TypeInt 8 1
|
||||
40: 39(int8_t) Constant 0
|
||||
41: 39(int8_t) Constant 52
|
||||
42: 39(int8_t) Constant 53
|
||||
43: 39(int8_t) Constant 54
|
||||
44: 39(int8_t) Constant 55
|
||||
45: 39(int8_t) Constant 56
|
||||
46: 39(int8_t) Constant 57
|
||||
47: 39(int8_t) Constant 58
|
||||
48: 39(int8_t) Constant 59
|
||||
49: 39(int8_t) Constant 1
|
||||
50: TypeInt 16 1
|
||||
51: 50(int16_t) Constant 0
|
||||
52: 50(int16_t) Constant 68
|
||||
53: 50(int16_t) Constant 69
|
||||
54: 50(int16_t) Constant 70
|
||||
55: 50(int16_t) Constant 71
|
||||
56: 50(int16_t) Constant 72
|
||||
57: 50(int16_t) Constant 73
|
||||
58: 50(int16_t) Constant 74
|
||||
59: 50(int16_t) Constant 75
|
||||
60: 50(int16_t) Constant 1
|
||||
61: TypeInt 32 1
|
||||
62: 61(int) Constant 81
|
||||
63: 61(int) Constant 82
|
||||
64: 61(int) Constant 83
|
||||
65: 61(int) Constant 84
|
||||
66: 61(int) Constant 85
|
||||
67: 61(int) Constant 86
|
||||
68: 61(int) Constant 87
|
||||
69: 61(int) Constant 88
|
||||
70: 61(int) Constant 89
|
||||
71: 61(int) Constant 90
|
||||
72: 61(int) Constant 91
|
||||
73: 61(int) Constant 1
|
||||
74: TypeInt 64 1
|
||||
75: 74(int64_t) Constant 97 0
|
||||
76: 74(int64_t) Constant 98 0
|
||||
77: 74(int64_t) Constant 99 0
|
||||
78: 74(int64_t) Constant 100 1702109236
|
||||
79: 74(int64_t) Constant 101 0
|
||||
80: 74(int64_t) Constant 102 0
|
||||
81: 74(int64_t) Constant 103 0
|
||||
82: 74(int64_t) Constant 104 0
|
||||
83: 74(int64_t) Constant 105 0
|
||||
84: 74(int64_t) Constant 106 0
|
||||
85: 74(int64_t) Constant 107 0
|
||||
86: 74(int64_t) Constant 1 0
|
||||
87: TypeInt 8 0
|
||||
88: 87(int8_t) Constant 0
|
||||
89: 87(int8_t) Constant 116
|
||||
90: 87(int8_t) Constant 117
|
||||
91: 87(int8_t) Constant 118
|
||||
92: 87(int8_t) Constant 119
|
||||
93: 87(int8_t) Constant 120
|
||||
94: 87(int8_t) Constant 121
|
||||
95: 87(int8_t) Constant 122
|
||||
96: 87(int8_t) Constant 123
|
||||
97: 87(int8_t) Constant 1
|
||||
98: TypeInt 16 0
|
||||
99: 98(int16_t) Constant 0
|
||||
100: 98(int16_t) Constant 132
|
||||
101: 98(int16_t) Constant 133
|
||||
102: 98(int16_t) Constant 134
|
||||
103: 98(int16_t) Constant 135
|
||||
104: 98(int16_t) Constant 136
|
||||
105: 98(int16_t) Constant 137
|
||||
106: 98(int16_t) Constant 138
|
||||
107: 98(int16_t) Constant 139
|
||||
108: 98(int16_t) Constant 1
|
||||
109: TypeInt 32 0
|
||||
110: 109(int) Constant 145
|
||||
111: 109(int) Constant 146
|
||||
112: 109(int) Constant 147
|
||||
113: 109(int) Constant 148
|
||||
114: 109(int) Constant 149
|
||||
115: 109(int) Constant 150
|
||||
116: 109(int) Constant 151
|
||||
117: 109(int) Constant 152
|
||||
118: 109(int) Constant 153
|
||||
119: 109(int) Constant 154
|
||||
120: 109(int) Constant 155
|
||||
121: 109(int) Constant 1
|
||||
122: TypeInt 64 0
|
||||
123:122(int64_t) Constant 161 0
|
||||
124:122(int64_t) Constant 162 0
|
||||
125:122(int64_t) Constant 163 0
|
||||
126:122(int64_t) Constant 164 0
|
||||
127:122(int64_t) Constant 165 0
|
||||
128:122(int64_t) Constant 166 0
|
||||
129:122(int64_t) Constant 167 0
|
||||
130:122(int64_t) Constant 168 0
|
||||
131:122(int64_t) Constant 169 0
|
||||
132:122(int64_t) Constant 170 0
|
||||
133:122(int64_t) Constant 171 0
|
||||
134:122(int64_t) Constant 1 0
|
||||
135: TypeBool
|
||||
136: 135(bool) ConstantTrue
|
||||
4(main): 2 Function None 3
|
||||
5: Label
|
||||
Return
|
||||
FunctionEnd
|
||||
Loading…
Add table
Add a link
Reference in a new issue