mirror of
https://github.com/KhronosGroup/SPIRV-Tools
synced 2024-11-27 05:40:06 +00:00
Add missing branch instructions in SSA tests
This commit is contained in:
parent
74a731add4
commit
fa3b878119
@ -381,6 +381,7 @@ TEST_F(Validate, ForwardBranchConditionalGood) {
|
|||||||
OpBranch %endl
|
OpBranch %endl
|
||||||
%falsel = OpLabel
|
%falsel = OpLabel
|
||||||
OpNop
|
OpNop
|
||||||
|
OpBranch %endl
|
||||||
%endl = OpLabel
|
%endl = OpLabel
|
||||||
OpReturn
|
OpReturn
|
||||||
OpFunctionEnd
|
OpFunctionEnd
|
||||||
@ -405,6 +406,7 @@ TEST_F(Validate, ForwardBranchConditionalWithWeightsGood) {
|
|||||||
OpBranch %endl
|
OpBranch %endl
|
||||||
%falsel = OpLabel
|
%falsel = OpLabel
|
||||||
OpNop
|
OpNop
|
||||||
|
OpBranch %endl
|
||||||
%endl = OpLabel
|
%endl = OpLabel
|
||||||
OpReturn
|
OpReturn
|
||||||
OpFunctionEnd
|
OpFunctionEnd
|
||||||
@ -430,6 +432,7 @@ TEST_F(Validate, ForwardBranchConditionalNonDominantConditionBad) {
|
|||||||
OpBranch %endl
|
OpBranch %endl
|
||||||
%falsel = OpLabel
|
%falsel = OpLabel
|
||||||
OpNop
|
OpNop
|
||||||
|
OpBranch %endl
|
||||||
%endl = OpLabel
|
%endl = OpLabel
|
||||||
%tcpy = OpCopyObject %boolt %true
|
%tcpy = OpCopyObject %boolt %true
|
||||||
OpReturn
|
OpReturn
|
||||||
@ -457,6 +460,7 @@ TEST_F(Validate, ForwardBranchConditionalMissingTargetBad) {
|
|||||||
OpBranch %endl
|
OpBranch %endl
|
||||||
%falsel = OpLabel
|
%falsel = OpLabel
|
||||||
OpNop
|
OpNop
|
||||||
|
OpBranch %endl
|
||||||
%endl = OpLabel
|
%endl = OpLabel
|
||||||
OpReturn
|
OpReturn
|
||||||
OpFunctionEnd
|
OpFunctionEnd
|
||||||
|
Loading…
Reference in New Issue
Block a user