mirror of
https://github.com/KhronosGroup/SPIRV-Tools
synced 2024-11-22 11:40:05 +00:00
Test SPV_KHR_subgroup_vote support in assembler, disassembler
This commit is contained in:
parent
9696393c5b
commit
0004f721e3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user