Lines Matching full:at
5 // You may obtain a copy of the License at
85 EXPECT_EQ(1u, stats.capability_hist.at(SpvCapabilityAddresses)); in TEST()
86 EXPECT_EQ(1u, stats.capability_hist.at(SpvCapabilityKernel)); in TEST()
87 EXPECT_EQ(1u, stats.capability_hist.at(SpvCapabilityGenericPointer)); in TEST()
88 EXPECT_EQ(1u, stats.capability_hist.at(SpvCapabilityLinkage)); in TEST()
92 EXPECT_EQ(1u, stats.capability_hist.at(SpvCapabilityShader)); in TEST()
93 EXPECT_EQ(1u, stats.capability_hist.at(SpvCapabilityAddresses)); in TEST()
94 EXPECT_EQ(1u, stats.capability_hist.at(SpvCapabilityKernel)); in TEST()
95 EXPECT_EQ(1u, stats.capability_hist.at(SpvCapabilityGenericPointer)); in TEST()
96 EXPECT_EQ(2u, stats.capability_hist.at(SpvCapabilityLinkage)); in TEST()
100 EXPECT_EQ(1u, stats.capability_hist.at(SpvCapabilityShader)); in TEST()
101 EXPECT_EQ(2u, stats.capability_hist.at(SpvCapabilityAddresses)); in TEST()
102 EXPECT_EQ(2u, stats.capability_hist.at(SpvCapabilityKernel)); in TEST()
103 EXPECT_EQ(2u, stats.capability_hist.at(SpvCapabilityGenericPointer)); in TEST()
104 EXPECT_EQ(3u, stats.capability_hist.at(SpvCapabilityLinkage)); in TEST()
108 EXPECT_EQ(2u, stats.capability_hist.at(SpvCapabilityShader)); in TEST()
109 EXPECT_EQ(2u, stats.capability_hist.at(SpvCapabilityAddresses)); in TEST()
110 EXPECT_EQ(2u, stats.capability_hist.at(SpvCapabilityKernel)); in TEST()
111 EXPECT_EQ(2u, stats.capability_hist.at(SpvCapabilityGenericPointer)); in TEST()
112 EXPECT_EQ(4u, stats.capability_hist.at(SpvCapabilityLinkage)); in TEST()
138 EXPECT_EQ(1u, stats.extension_hist.at("SPV_KHR_16bit_storage")); in TEST()
142 EXPECT_EQ(1u, stats.extension_hist.at("SPV_NV_viewport_array2")); in TEST()
143 EXPECT_EQ(1u, stats.extension_hist.at("SPV_KHR_16bit_storage")); in TEST()
144 EXPECT_EQ(1u, stats.extension_hist.at("greatest_extension_ever")); in TEST()
148 EXPECT_EQ(1u, stats.extension_hist.at("SPV_NV_viewport_array2")); in TEST()
149 EXPECT_EQ(2u, stats.extension_hist.at("SPV_KHR_16bit_storage")); in TEST()
150 EXPECT_EQ(1u, stats.extension_hist.at("greatest_extension_ever")); in TEST()
154 EXPECT_EQ(2u, stats.extension_hist.at("SPV_NV_viewport_array2")); in TEST()
155 EXPECT_EQ(2u, stats.extension_hist.at("SPV_KHR_16bit_storage")); in TEST()
156 EXPECT_EQ(2u, stats.extension_hist.at("greatest_extension_ever")); in TEST()
170 EXPECT_EQ(1u, stats.version_hist.at(0x00010100)); in TEST()
174 EXPECT_EQ(1u, stats.version_hist.at(0x00010100)); in TEST()
175 EXPECT_EQ(1u, stats.version_hist.at(0x00010000)); in TEST()
179 EXPECT_EQ(2u, stats.version_hist.at(0x00010100)); in TEST()
180 EXPECT_EQ(1u, stats.version_hist.at(0x00010000)); in TEST()
184 EXPECT_EQ(2u, stats.version_hist.at(0x00010100)); in TEST()
185 EXPECT_EQ(2u, stats.version_hist.at(0x00010000)); in TEST()
202 EXPECT_EQ(1u, stats.generator_hist.at(kGeneratorKhronosAssembler)); in TEST()
206 EXPECT_EQ(2u, stats.generator_hist.at(kGeneratorKhronosAssembler)); in TEST()
232 EXPECT_EQ(4u, stats.opcode_hist.at(SpvOpCapability)); in TEST()
233 EXPECT_EQ(1u, stats.opcode_hist.at(SpvOpMemoryModel)); in TEST()
234 EXPECT_EQ(2u, stats.opcode_hist.at(SpvOpTypeInt)); in TEST()
235 EXPECT_EQ(1u, stats.opcode_hist.at(SpvOpTypeFloat)); in TEST()
239 EXPECT_EQ(6u, stats.opcode_hist.at(SpvOpCapability)); in TEST()
240 EXPECT_EQ(2u, stats.opcode_hist.at(SpvOpMemoryModel)); in TEST()
241 EXPECT_EQ(2u, stats.opcode_hist.at(SpvOpTypeInt)); in TEST()
242 EXPECT_EQ(1u, stats.opcode_hist.at(SpvOpTypeFloat)); in TEST()
243 EXPECT_EQ(1u, stats.opcode_hist.at(SpvOpExtension)); in TEST()
247 EXPECT_EQ(10u, stats.opcode_hist.at(SpvOpCapability)); in TEST()
248 EXPECT_EQ(3u, stats.opcode_hist.at(SpvOpMemoryModel)); in TEST()
249 EXPECT_EQ(4u, stats.opcode_hist.at(SpvOpTypeInt)); in TEST()
250 EXPECT_EQ(2u, stats.opcode_hist.at(SpvOpTypeFloat)); in TEST()
251 EXPECT_EQ(1u, stats.opcode_hist.at(SpvOpExtension)); in TEST()
255 EXPECT_EQ(12u, stats.opcode_hist.at(SpvOpCapability)); in TEST()
256 EXPECT_EQ(4u, stats.opcode_hist.at(SpvOpMemoryModel)); in TEST()
257 EXPECT_EQ(4u, stats.opcode_hist.at(SpvOpTypeInt)); in TEST()
258 EXPECT_EQ(2u, stats.opcode_hist.at(SpvOpTypeFloat)); in TEST()
259 EXPECT_EQ(2u, stats.opcode_hist.at(SpvOpExtension)); in TEST()
287 EXPECT_EQ(2u, stats.opcode_markov_hist[0].at(SpvOpCapability).size()); in TEST()
288 EXPECT_EQ(1u, stats.opcode_markov_hist[0].at(SpvOpExtension).size()); in TEST()
290 1u, stats.opcode_markov_hist[0].at(SpvOpCapability).at(SpvOpCapability)); in TEST()
292 stats.opcode_markov_hist[0].at(SpvOpCapability).at(SpvOpExtension)); in TEST()
294 1u, stats.opcode_markov_hist[0].at(SpvOpExtension).at(SpvOpMemoryModel)); in TEST()
297 EXPECT_EQ(2u, stats.opcode_markov_hist[1].at(SpvOpCapability).size()); in TEST()
299 stats.opcode_markov_hist[1].at(SpvOpCapability).at(SpvOpExtension)); in TEST()
301 1u, stats.opcode_markov_hist[1].at(SpvOpCapability).at(SpvOpMemoryModel)); in TEST()
306 EXPECT_EQ(3u, stats.opcode_markov_hist[0].at(SpvOpCapability).size()); in TEST()
307 EXPECT_EQ(1u, stats.opcode_markov_hist[0].at(SpvOpExtension).size()); in TEST()
308 EXPECT_EQ(1u, stats.opcode_markov_hist[0].at(SpvOpMemoryModel).size()); in TEST()
309 EXPECT_EQ(2u, stats.opcode_markov_hist[0].at(SpvOpTypeInt).size()); in TEST()
311 4u, stats.opcode_markov_hist[0].at(SpvOpCapability).at(SpvOpCapability)); in TEST()
313 stats.opcode_markov_hist[0].at(SpvOpCapability).at(SpvOpExtension)); in TEST()
315 1u, stats.opcode_markov_hist[0].at(SpvOpCapability).at(SpvOpMemoryModel)); in TEST()
317 1u, stats.opcode_markov_hist[0].at(SpvOpExtension).at(SpvOpMemoryModel)); in TEST()
319 stats.opcode_markov_hist[0].at(SpvOpMemoryModel).at(SpvOpTypeInt)); in TEST()
320 EXPECT_EQ(1u, stats.opcode_markov_hist[0].at(SpvOpTypeInt).at(SpvOpTypeInt)); in TEST()
322 stats.opcode_markov_hist[0].at(SpvOpTypeInt).at(SpvOpTypeFloat)); in TEST()
325 EXPECT_EQ(4u, stats.opcode_markov_hist[1].at(SpvOpCapability).size()); in TEST()
326 EXPECT_EQ(1u, stats.opcode_markov_hist[1].at(SpvOpMemoryModel).size()); in TEST()
327 EXPECT_EQ(1u, stats.opcode_markov_hist[1].at(SpvOpTypeInt).size()); in TEST()
329 2u, stats.opcode_markov_hist[1].at(SpvOpCapability).at(SpvOpCapability)); in TEST()
331 stats.opcode_markov_hist[1].at(SpvOpCapability).at(SpvOpExtension)); in TEST()
333 2u, stats.opcode_markov_hist[1].at(SpvOpCapability).at(SpvOpMemoryModel)); in TEST()
335 stats.opcode_markov_hist[1].at(SpvOpCapability).at(SpvOpTypeInt)); in TEST()
337 stats.opcode_markov_hist[1].at(SpvOpMemoryModel).at(SpvOpTypeInt)); in TEST()
339 stats.opcode_markov_hist[1].at(SpvOpTypeInt).at(SpvOpTypeFloat)); in TEST()
397 EXPECT_EQ(1u, stats.f32_constant_hist.at(0.1f)); in TEST()
398 EXPECT_EQ(1u, stats.f32_constant_hist.at(-2.f)); in TEST()
399 EXPECT_EQ(1u, stats.f64_constant_hist.at(-2)); in TEST()
407 EXPECT_EQ(1u, stats.u16_constant_hist.at(16)); in TEST()
408 EXPECT_EQ(1u, stats.u16_constant_hist.at(2)); in TEST()
409 EXPECT_EQ(1u, stats.u32_constant_hist.at(32)); in TEST()
410 EXPECT_EQ(1u, stats.u64_constant_hist.at(64)); in TEST()
415 EXPECT_EQ(2u, stats.f32_constant_hist.at(0.1f)); in TEST()
416 EXPECT_EQ(2u, stats.f32_constant_hist.at(-2.f)); in TEST()
417 EXPECT_EQ(1u, stats.f64_constant_hist.at(-2)); in TEST()
425 EXPECT_EQ(2u, stats.u16_constant_hist.at(16)); in TEST()
426 EXPECT_EQ(2u, stats.u16_constant_hist.at(2)); in TEST()
427 EXPECT_EQ(1u, stats.u16_constant_hist.at(1)); in TEST()
428 EXPECT_EQ(1u, stats.s16_constant_hist.at(-16)); in TEST()
429 EXPECT_EQ(2u, stats.u32_constant_hist.at(32)); in TEST()
430 EXPECT_EQ(1u, stats.s32_constant_hist.at(2)); in TEST()
431 EXPECT_EQ(1u, stats.s32_constant_hist.at(-32)); in TEST()
432 EXPECT_EQ(2u, stats.u64_constant_hist.at(64)); in TEST()
433 EXPECT_EQ(1u, stats.s64_constant_hist.at(-64)); in TEST()