Test SPV_KHR_subgroup_vote support in assembler, disassembler

This commit is contained in:
David Neto 2017-01-26 18:26:20 -05:00
parent 9696393c5b
commit 0004f721e3

View File

@ -168,4 +168,24 @@ INSTANTIATE_TEST_CASE_P(
{1, SpvDecorationBuiltIn, SpvBuiltInDrawIndex})},
})), );
// SPV_KHR_subgroup_vote
INSTANTIATE_TEST_CASE_P(
SPV_KHR_subgroup_vote, 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 SubgroupVoteKHR\n",
MakeInstruction(SpvOpCapability, {SpvCapabilitySubgroupVoteKHR})},
{"%2 = OpSubgroupAnyKHR %1 %3\n",
MakeInstruction(SpvOpSubgroupAnyKHR, {1, 2, 3})},
{"%2 = OpSubgroupAllKHR %1 %3\n",
MakeInstruction(SpvOpSubgroupAllKHR, {1, 2, 3})},
{"%2 = OpSubgroupAllEqualKHR %1 %3\n",
MakeInstruction(SpvOpSubgroupAllEqualKHR, {1, 2, 3})},
})), );
} // anonymous namespace