Test asm,dis support for SPV_KHR_variable_pointers

This commit is contained in:
David Neto 2017-03-08 17:16:04 -05:00
parent 11a867f412
commit 4087e89bc6

View File

@ -243,6 +243,7 @@ INSTANTIATE_TEST_CASE_P(
SpvBuiltInViewIndex})},
})), );
// SPV_AMD_gcn_shader
#define PREAMBLE "%1 = OpExtInstImport \"SPV_AMD_gcn_shader\"\n"
@ -268,4 +269,23 @@ INSTANTIATE_TEST_CASE_P(
})), );
#undef PREAMBLE
// SPV_KHR_variable_pointers
INSTANTIATE_TEST_CASE_P(
SPV_KHR_variable_pointers, ExtensionRoundTripTest,
// We'll get coverage over operand tables by trying the universal
// environments, and at least one specific environment.
Combine(Values(SPV_ENV_UNIVERSAL_1_0, SPV_ENV_UNIVERSAL_1_1,
SPV_ENV_VULKAN_1_0),
ValuesIn(std::vector<AssemblyCase>{
{"OpCapability VariablePointers\n",
MakeInstruction(SpvOpCapability,
{SpvCapabilityVariablePointers})},
{"OpCapability VariablePointersUniformBufferBlock\n",
MakeInstruction(
SpvOpCapability,
{SpvCapabilityVariablePointersUniformBufferBlock})},
})), );
} // anonymous namespace