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 f7c340c commit 433ae97Copy full SHA for 433ae97
lib/SPIRV/libSPIRV/SPIRVInstruction.h
@@ -986,6 +986,9 @@ class SPIRVCompare : public SPIRVInstTemplateBase {
986
ResTy = Type;
987
}
988
assert(isCmpOpCode(OpCode) && "Invalid op code for cmp inst");
989
+ if (OpCode == OpLessOrGreater)
990
+ assert(this->getModule()->getSPIRVVersion() <= VersionNumber::SPIRV_1_5 &&
991
+ "OpLessOrGreater is removed starting from SPIR-V 1.6");
992
assert((ResTy->isTypeBool() || ResTy->isTypeInt()) &&
993
"Invalid type for compare instruction");
994
assert(Op1Ty == Op2Ty && "Inconsistent types");
0 commit comments