summaryrefslogtreecommitdiff
path: root/source/comp
diff options
context:
space:
mode:
authorAndrey Tuganov <andreyt@google.com>2017-09-06 14:30:27 -0400
committerDavid Neto <dneto@google.com>2017-09-08 11:08:41 -0400
commitc6dfc11880653f8291f92a20e8a464dd051ca50d (patch)
treeb40175db493b91d4700275eda6415098771f51a0 /source/comp
parent44421022472e8f4de4cb6dc7fde99bf1a6a0fee1 (diff)
Add new checks to validate arithmetics pass
New operations: - OpDot - OpVectorTimesScalar - OpMatrixTimesScalar - OpVectorTimesMatrix - OpMatrixTimesVector - OpMatrixTimesMatrix - OpOuterProduct
Diffstat (limited to 'source/comp')
-rw-r--r--source/comp/markv_codec.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/comp/markv_codec.cpp b/source/comp/markv_codec.cpp
index c99fdd99..b3f0fffb 100644
--- a/source/comp/markv_codec.cpp
+++ b/source/comp/markv_codec.cpp
@@ -1290,8 +1290,10 @@ uint64_t MarkvCodecBase::GetRuleBasedMtf() {
}
case SpvOpVectorTimesScalar: {
- if (operand_index_ == 0)
+ if (operand_index_ == 0) {
+ // TODO(atgoo@github.com) Could be narrowed to vector of floats.
return GetMtfIdGeneratedByOpcode(SpvOpTypeVector);
+ }
assert(inst_.type_id);
if (operand_index_ == 2)