We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36400fe commit fccfff3Copy full SHA for fccfff3
visa/iga/IGALibrary/IR/Checker/IRChecker.cpp
@@ -236,6 +236,21 @@ struct SemanticChecker : LOCChecker {
236
}
237
checkSrcScalarReg(i, src);
238
checkMathSource(i, srcIx);
239
+ checkTernarySource(i, srcIx);
240
+ }
241
+
242
+ void checkTernarySource(const Instruction& i, int srcIx) {
243
+ if (i.getSourceCount() != 3)
244
+ return;
245
+ auto& src = i.getSource(srcIx);
246
+ if (src.isImm() || src.getDirRegName() == RegName::GRF_R)
247
248
249
+ // valid arf kind is acc and null
250
+ if (src.getDirRegName() == RegName::ARF_ACC ||
251
+ src.getDirRegName() == RegName::ARF_NULL)
252
253
+ warning("Invalid ARF register file for ternary instructions");
254
255
256
// Math can only have grf source with mme
0 commit comments