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 b04ed40 commit 0f8c286Copy full SHA for 0f8c286
llvm-spirv/lib/SPIRV/libSPIRV/SPIRVInstruction.h
@@ -977,6 +977,9 @@ class SPIRVCompare : public SPIRVInstTemplateBase {
977
ResTy = Type;
978
}
979
assert(isCmpOpCode(OpCode) && "Invalid op code for cmp inst");
980
+ if (OpCode == OpLessOrGreater)
981
+ assert(this->getModule()->getSPIRVVersion() <= VersionNumber::SPIRV_1_5 &&
982
+ "OpLessOrGreater is removed starting from SPIR-V 1.6");
983
assert((ResTy->isTypeBool() || ResTy->isTypeInt()) &&
984
"Invalid type for compare instruction");
985
assert(Op1Ty == Op2Ty && "Inconsistent types");
0 commit comments