Lines Matching +full:clang +full:- +full:12

7 //    http://www.apache.org/licenses/LICENSE-2.0
21 #include "spirv-tools/libspirv.hpp"
29 return alignment * ((val + alignment - 1) / alignment); in alignUp()
87 printf("-- WARNING: Disassembly does not match assembly: ---\n\n"); in compileSpirv()
89 auto splitLines = [](const std::string &str) -> std::vector<std::string> { in compileSpirv()
109 printf("\n\n---\nExpected:\n\n%s", disassembled.c_str()); in compileSpirv()
152 ASSERT_TRUE(device->IsValid()); in test()
171 size_t magic0Offset = alignElements - 1; in test()
174 size_t magic2Offset = alignUp(magic1Offset + 1, alignElements) - 1; in test()
181 VK_ASSERT(device->AllocateMemory(buffersSize, in test()
186 VK_ASSERT(device->MapMemory(memory, 0, buffersSize, 0, (void **)&buffers)); in test()
200 device->UnmapMemory(memory); in test()
204 VK_ASSERT(device->CreateStorageBuffer(memory, in test()
210 VK_ASSERT(device->CreateStorageBuffer(memory, in test()
216 VK_ASSERT(device->CreateShaderModule(code, &shaderModule)); in test()
236 VK_ASSERT(device->CreateDescriptorSetLayout(descriptorSetLayoutBindings, &descriptorSetLayout)); in test()
239 VK_ASSERT(device->CreatePipelineLayout(descriptorSetLayout, &pipelineLayout)); in test()
242 VK_ASSERT(device->CreateComputePipeline(shaderModule, pipelineLayout, &pipeline)); in test()
245 VK_ASSERT(device->CreateStorageBufferDescriptorPool(2, &descriptorPool)); in test()
248 VK_ASSERT(device->AllocateDescriptorSet(descriptorPool, descriptorSetLayout, &descriptorSet)); in test()
262 device->UpdateStorageBufferDescriptorSets(descriptorSet, descriptorBufferInfos); in test()
265 VK_ASSERT(device->CreateCommandPool(&commandPool)); in test()
268 VK_ASSERT(device->AllocateCommandBuffer(commandPool, &commandBuffer)); in test()
270 VK_ASSERT(device->BeginCommandBuffer(VK_COMMAND_BUFFER_USAGE_ONE_TIME_SUBMIT_BIT, commandBuffer)); in test()
281 VK_ASSERT(device->QueueSubmitAndWait(commandBuffer)); in test()
283 VK_ASSERT(device->MapMemory(memory, 0, buffersSize, 0, (void **)&buffers)); in test()
297 device->UnmapMemory(memory); in test()
300 device->FreeCommandBuffer(commandPool, commandBuffer); in test()
301 device->FreeMemory(memory); in test()
302 device->DestroyPipeline(pipeline); in test()
303 device->DestroyCommandPool(commandPool); in test()
304 device->DestroyPipelineLayout(pipelineLayout); in test()
305 device->DestroyDescriptorSetLayout(descriptorSetLayout); in test()
306 device->DestroyDescriptorPool(descriptorPool); in test()
307 device->DestroyBuffer(bufferIn); in test()
308 device->DestroyBuffer(bufferOut); in test()
309 device->DestroyShaderModule(shaderModule); in test()
316 … // Non-multiple of SIMD-lane.
336 // clang-format off in TEST_P()
361 "%12 = OpConstant %9 0\n" // int32(0) in TEST_P()
369 "%1 = OpFunction %7 None %8\n" // -- Function begin -- in TEST_P()
373 "%21 = OpAccessChain %17 %6 %12 %20\n" // &in.arr[gl_GlobalInvocationId.x] in TEST_P()
375 "%23 = OpAccessChain %17 %5 %12 %20\n" // &out.arr[gl_GlobalInvocationId.x] in TEST_P()
379 // clang-format on in TEST_P()
388 // clang-format off in TEST_P()
413 "%12 = OpConstant %9 0\n" // int32(0) in TEST_P()
424 "%1 = OpFunction %7 None %8\n" // -- Function begin -- in TEST_P()
432 "%28 = OpAccessChain %20 %6 %12 %25\n" // &in.arr[gl_GlobalInvocationId.x] in TEST_P()
436 "%32 = OpAccessChain %20 %5 %12 %25\n" // &out.arr[gl_GlobalInvocationId.x] in TEST_P()
440 // clang-format on in TEST_P()
450 // clang-format off in TEST_P()
475 "%12 = OpConstant %9 0\n" // int32(0) in TEST_P()
483 "%1 = OpFunction %7 None %8\n" // -- Function begin -- in TEST_P()
487 "%21 = OpAccessChain %17 %6 %12 %20\n" // &in.arr[gl_GlobalInvocationId.x] in TEST_P()
489 "%23 = OpAccessChain %17 %5 %12 %20\n" // &out.arr[gl_GlobalInvocationId.x] in TEST_P()
503 // clang-format on in TEST_P()
512 // clang-format off in TEST_P()
537 "%12 = OpConstant %9 0\n" // int32(0) in TEST_P()
545 "%1 = OpFunction %7 None %8\n" // -- Function begin -- in TEST_P()
549 "%21 = OpAccessChain %17 %6 %12 %20\n" // &in.arr[gl_GlobalInvocationId.x] in TEST_P()
551 "%23 = OpAccessChain %17 %5 %12 %20\n" // &out.arr[gl_GlobalInvocationId.x] in TEST_P()
566 // clang-format on in TEST_P()
575 // clang-format off in TEST_P()
599 "%12 = OpTypePointer Uniform %4\n" // struct{ int32[] }* in TEST_P()
600 "%5 = OpVariable %12 Uniform\n" // struct{ int32[] }* in in TEST_P()
608 "%6 = OpVariable %12 Uniform\n" // struct{ int32[] }* out in TEST_P()
610 "%1 = OpFunction %7 None %8\n" // -- Function begin -- in TEST_P()
629 // clang-format on in TEST_P()
638 // clang-format off in TEST_P()
662 "%12 = OpTypePointer Uniform %4\n" // struct{ int32[] }* in TEST_P()
663 "%5 = OpVariable %12 Uniform\n" // struct{ int32[] }* in in TEST_P()
671 "%6 = OpVariable %12 Uniform\n" // struct{ int32[] }* out in TEST_P()
673 "%1 = OpFunction %7 None %8\n" // -- Function begin -- in TEST_P()
696 // clang-format on in TEST_P()
706 // clang-format off in TEST_P()
730 "%12 = OpTypePointer Uniform %4\n" // struct{ int32[] }* in TEST_P()
731 "%5 = OpVariable %12 Uniform\n" // struct{ int32[] }* in in TEST_P()
740 "%6 = OpVariable %12 Uniform\n" // struct{ int32[] }* out in TEST_P()
742 "%1 = OpFunction %7 None %8\n" // -- Function begin -- in TEST_P()
765 // clang-format on in TEST_P()
774 // clang-format off in TEST_P()
798 "%12 = OpTypePointer Uniform %4\n" // struct{ int32[] }* in TEST_P()
799 "%5 = OpVariable %12 Uniform\n" // struct{ int32[] }* in in TEST_P()
808 "%6 = OpVariable %12 Uniform\n" // struct{ int32[] }* out in TEST_P()
810 "%1 = OpFunction %7 None %8\n" // -- Function begin -- in TEST_P()
830 // clang-format on in TEST_P()
840 // clang-format off in TEST_P()
864 "%12 = OpTypePointer Uniform %4\n" // struct{ int32[] }* in TEST_P()
865 "%5 = OpVariable %12 Uniform\n" // struct{ int32[] }* in in TEST_P()
874 "%6 = OpVariable %12 Uniform\n" // struct{ int32[] }* out in TEST_P()
876 "%1 = OpFunction %7 None %8\n" // -- Function begin -- in TEST_P()
899 // clang-format on in TEST_P()
908 // clang-format off in TEST_P()
932 "%12 = OpTypePointer Uniform %4\n" // struct{ int32[] }* in TEST_P()
933 "%5 = OpVariable %12 Uniform\n" // struct{ int32[] }* in in TEST_P()
941 "%6 = OpVariable %12 Uniform\n" // struct{ int32[] }* out in TEST_P()
943 "%1 = OpFunction %7 None %8\n" // -- Function begin -- in TEST_P()
965 // clang-format on in TEST_P()
974 // clang-format off in TEST_P()
998 "%12 = OpTypePointer Uniform %4\n" // struct{ int32[] }* in TEST_P()
999 "%5 = OpVariable %12 Uniform\n" // struct{ int32[] }* in in TEST_P()
1008 "%6 = OpVariable %12 Uniform\n" // struct{ int32[] }* out in TEST_P()
1010 "%1 = OpFunction %7 None %8\n" // -- Function begin -- in TEST_P()
1032 // clang-format on in TEST_P()
1041 // clang-format off in TEST_P()
1065 "%12 = OpTypePointer Uniform %4\n" // struct{ int32[] }* in TEST_P()
1066 "%5 = OpVariable %12 Uniform\n" // struct{ int32[] }* in in TEST_P()
1075 "%6 = OpVariable %12 Uniform\n" // struct{ int32[] }* out in TEST_P()
1077 "%1 = OpFunction %7 None %8\n" // -- Function begin -- in TEST_P()
1098 // clang-format on in TEST_P()
1107 // clang-format off in TEST_P()
1131 "%12 = OpTypePointer Uniform %4\n" // struct{ int32[] }* in TEST_P()
1132 "%5 = OpVariable %12 Uniform\n" // struct{ int32[] }* in in TEST_P()
1141 "%6 = OpVariable %12 Uniform\n" // struct{ int32[] }* out in TEST_P()
1143 "%1 = OpFunction %7 None %8\n" // -- Function begin -- in TEST_P()
1164 // clang-format on in TEST_P()
1173 // clang-format off in TEST_P()
1197 "%12 = OpTypePointer Uniform %4\n" // struct{ int32[] }* in TEST_P()
1198 "%5 = OpVariable %12 Uniform\n" // struct{ int32[] }* in in TEST_P()
1207 "%6 = OpVariable %12 Uniform\n" // struct{ int32[] }* out in TEST_P()
1209 "%1 = OpFunction %7 None %8\n" // -- Function begin -- in TEST_P()
1234 // clang-format on in TEST_P()
1243 // clang-format off in TEST_P()
1267 "%12 = OpTypePointer Uniform %4\n" // struct{ int32[] }* in TEST_P()
1268 "%5 = OpVariable %12 Uniform\n" // struct{ int32[] }* in in TEST_P()
1277 "%6 = OpVariable %12 Uniform\n" // struct{ int32[] }* out in TEST_P()
1279 "%1 = OpFunction %7 None %8\n" // -- Function begin -- in TEST_P()
1306 // clang-format on in TEST_P()
1315 // clang-format off in TEST_P()
1339 "%12 = OpTypePointer Uniform %4\n" // struct{ int32[] }* in TEST_P()
1340 "%5 = OpVariable %12 Uniform\n" // struct{ int32[] }* in in TEST_P()
1349 "%6 = OpVariable %12 Uniform\n" // struct{ int32[] }* out in TEST_P()
1351 "%1 = OpFunction %7 None %8\n" // -- Function begin -- in TEST_P()
1373 // clang-format on in TEST_P()
1406 // clang-format off in TEST_P()
1429 "%12 = OpTypeInt 32 1\n" in TEST_P()
1430 "%13 = OpConstant %12 0\n" in TEST_P()
1439 "%4 = OpTypeRuntimeArray %12\n" in TEST_P()
1443 "%22 = OpTypePointer Uniform %12\n" in TEST_P()
1444 "%23 = OpConstant %12 1\n" in TEST_P()
1445 "%7 = OpTypeRuntimeArray %12\n" in TEST_P()
1466 "%40 = OpLoad %12 %39\n" in TEST_P()
1474 "%41 = OpPhi %12 %13 %29 %40 %38\n" // %40: phi in TEST_P()
1479 // clang-format on in TEST_P()