projects
/
platform
/
upstream
/
SPIRV-Tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
74a731a
)
Add missing branch instructions in SSA tests
author
Umar Arshad
<umar@arrayfire.com>
Thu, 14 Jan 2016 14:48:29 +0000
(09:48 -0500)
committer
Umar Arshad
<umar@arrayfire.com>
Thu, 14 Jan 2016 14:48:29 +0000
(09:48 -0500)
test/Validate.SSA.cpp
patch
|
blob
|
history
diff --git
a/test/Validate.SSA.cpp
b/test/Validate.SSA.cpp
index
1eaf148
..
5bdc2b8
100644
(file)
--- a/
test/Validate.SSA.cpp
+++ b/
test/Validate.SSA.cpp
@@
-381,6
+381,7
@@
TEST_F(Validate, ForwardBranchConditionalGood) {
OpBranch %endl
%falsel = OpLabel
OpNop
+ OpBranch %endl
%endl = OpLabel
OpReturn
OpFunctionEnd
@@
-405,6
+406,7
@@
TEST_F(Validate, ForwardBranchConditionalWithWeightsGood) {
OpBranch %endl
%falsel = OpLabel
OpNop
+ OpBranch %endl
%endl = OpLabel
OpReturn
OpFunctionEnd
@@
-430,6
+432,7
@@
TEST_F(Validate, ForwardBranchConditionalNonDominantConditionBad) {
OpBranch %endl
%falsel = OpLabel
OpNop
+ OpBranch %endl
%endl = OpLabel
%tcpy = OpCopyObject %boolt %true
OpReturn
@@
-457,6
+460,7
@@
TEST_F(Validate, ForwardBranchConditionalMissingTargetBad) {
OpBranch %endl
%falsel = OpLabel
OpNop
+ OpBranch %endl
%endl = OpLabel
OpReturn
OpFunctionEnd