• Home
  • Raw
  • Download

Lines Matching +full:clang +full:- +full:15

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()
364 "%15 = OpTypePointer Input %14\n" // vec3<int32>* in TEST_P()
365 "%2 = OpVariable %15 Input\n" // gl_GlobalInvocationId in TEST_P()
369 "%1 = OpFunction %7 None %8\n" // -- Function begin -- in TEST_P()
379 // clang-format on in TEST_P()
388 // clang-format off in TEST_P()
416 "%15 = OpConstant %10 1\n" // uint32(1) in TEST_P()
424 "%1 = OpFunction %7 None %8\n" // -- Function begin -- in TEST_P()
427 "%23 = OpAccessChain %19 %2 %15\n" // &gl_GlobalInvocationId.y in TEST_P()
440 // clang-format on in TEST_P()
450 // clang-format off in TEST_P()
478 "%15 = OpTypePointer Input %14\n" // vec3<int32>* in TEST_P()
479 "%2 = OpVariable %15 Input\n" // gl_GlobalInvocationId in TEST_P()
483 "%1 = OpFunction %7 None %8\n" // -- Function begin -- in TEST_P()
503 // clang-format on in TEST_P()
512 // clang-format off in TEST_P()
540 "%15 = OpTypePointer Input %14\n" // vec3<int32>* in TEST_P()
541 "%2 = OpVariable %15 Input\n" // gl_GlobalInvocationId in TEST_P()
545 "%1 = OpFunction %7 None %8\n" // -- Function begin -- in TEST_P()
566 // clang-format on in TEST_P()
575 // clang-format off in TEST_P()
603 "%15 = OpConstant %10 0\n" // uint32(0) in TEST_P()
610 "%1 = OpFunction %7 None %8\n" // -- Function begin -- in TEST_P()
612 "%21 = OpAccessChain %18 %2 %15\n" // &gl_GlobalInvocationId.x in TEST_P()
629 // clang-format on in TEST_P()
638 // clang-format off in TEST_P()
666 "%15 = OpConstant %10 0\n" // uint32(0) in TEST_P()
673 "%1 = OpFunction %7 None %8\n" // -- Function begin -- in TEST_P()
675 "%21 = OpAccessChain %18 %2 %15\n" // &gl_GlobalInvocationId.x in TEST_P()
696 // clang-format on in TEST_P()
706 // clang-format off in TEST_P()
734 "%15 = OpConstant %9 2\n" // int32(2) in TEST_P()
742 "%1 = OpFunction %7 None %8\n" // -- Function begin -- in TEST_P()
751 "%27 = OpSMod %9 %25 %15\n" // in % 2 in TEST_P()
759 "OpStore %26 %15\n" // write 2 in TEST_P()
765 // clang-format on in TEST_P()
774 // clang-format off in TEST_P()
802 "%15 = OpConstant %9 2\n" // int32(2) in TEST_P()
810 "%1 = OpFunction %7 None %8\n" // -- Function begin -- in TEST_P()
819 "%27 = OpSMod %9 %25 %15\n" // in % 2 in TEST_P()
826 "OpStore %26 %15\n" // write 2 in TEST_P()
830 // clang-format on in TEST_P()
840 // clang-format off in TEST_P()
868 "%15 = OpConstant %9 2\n" // int32(2) in TEST_P()
876 "%1 = OpFunction %7 None %8\n" // -- Function begin -- in TEST_P()
885 "%27 = OpSMod %9 %25 %15\n" // in % 2 in TEST_P()
894 "%32 = OpPhi %9 %14 %30 %15 %31\n" // (in % 2) == 0 ? 1 : 2 in TEST_P()
899 // clang-format on in TEST_P()
908 // clang-format off in TEST_P()
936 "%15 = OpConstant %10 0\n" // uint32(0) in TEST_P()
943 "%1 = OpFunction %7 None %8\n" // -- Function begin -- in TEST_P()
945 "%21 = OpAccessChain %18 %2 %15\n" // &gl_GlobalInvocationId.x in TEST_P()
965 // clang-format on in TEST_P()
974 // clang-format off in TEST_P()
1002 "%15 = OpConstant %9 2\n" // int32(2) in TEST_P()
1010 "%1 = OpFunction %7 None %8\n" // -- Function begin -- in TEST_P()
1019 "%27 = OpSMod %9 %25 %15\n" // in % 2 in TEST_P()
1023 "OpStore %26 %15\n" // write 2 in TEST_P()
1032 // clang-format on in TEST_P()
1041 // clang-format off in TEST_P()
1069 "%15 = OpConstant %9 2\n" // int32(2) in TEST_P()
1077 "%1 = OpFunction %7 None %8\n" // -- Function begin -- in TEST_P()
1086 "%27 = OpSMod %9 %25 %15\n" // in % 2 in TEST_P()
1098 // clang-format on in TEST_P()
1107 // clang-format off in TEST_P()
1135 "%15 = OpConstant %9 2\n" // int32(2) in TEST_P()
1143 "%1 = OpFunction %7 None %8\n" // -- Function begin -- in TEST_P()
1152 "%27 = OpSMod %9 %25 %15\n" // in % 2 in TEST_P()
1164 // clang-format on in TEST_P()
1173 // clang-format off in TEST_P()
1201 "%15 = OpConstant %9 2\n" // int32(2) in TEST_P()
1209 "%1 = OpFunction %7 None %8\n" // -- Function begin -- in TEST_P()
1218 "%27 = OpSMod %9 %25 %15\n" // in % 2 in TEST_P()
1226 "OpStore %26 %15\n" // write 2 in TEST_P()
1234 // clang-format on in TEST_P()
1243 // clang-format off in TEST_P()
1271 "%15 = OpConstant %9 2\n" // int32(2) in TEST_P()
1279 "%1 = OpFunction %7 None %8\n" // -- Function begin -- in TEST_P()
1288 "%27 = OpSMod %9 %25 %15\n" // in % 2 in TEST_P()
1300 "OpStore %26 %15\n" // write 2 in TEST_P()
1306 // clang-format on in TEST_P()
1315 // clang-format off in TEST_P()
1343 "%15 = OpConstant %9 2\n" // int32(2) in TEST_P()
1351 "%1 = OpFunction %7 None %8\n" // -- Function begin -- in TEST_P()
1360 "%27 = OpSMod %9 %25 %15\n" // in % 2 in TEST_P()
1368 "%31 = OpPhi %9 %14 %30 %15 %29\n" // (in % 2) == 1 ? 1 : 2 in TEST_P()
1373 // clang-format on in TEST_P()
1406 // clang-format off in TEST_P()
1432 "%15 = OpTypeVector %14 3\n" in TEST_P()
1433 "%16 = OpTypePointer Input %15\n" in TEST_P()
1479 // clang-format on in TEST_P()