Was missing BitcastXor, GenericCastToPtr.
Remove duplicate of SLessThanEqual
CASE(UConvert),
CASE(ConvertPtrToU),
CASE(ConvertUToPtr),
+ CASE(GenericCastToPtr),
CASE(PtrCastToGeneric),
CASE(Bitcast),
CASE(QuantizeToF16),
CASE(ShiftLeftLogical),
CASE(BitwiseOr),
CASE(BitwiseAnd),
+ CASE(BitwiseXor),
CASE(FNegate),
CASE(FAdd),
CASE(FSub),
CASE(SGreaterThan),
CASE(ULessThanEqual),
CASE(SLessThanEqual),
- CASE(SLessThanEqual),
CASE(UGreaterThanEqual),
CASE(SGreaterThanEqual),
// Memory
CASE(PtrAccessChain),
CASE(InBoundsPtrAccessChain),
};
+
+// The 58 is determined by counting the opcodes listed in the spec.
+static_assert(58 == sizeof(kOpSpecConstantOpcodes)/sizeof(kOpSpecConstantOpcodes[0]),
+ "OpSpecConstantOp opcode table is incomplete");
#undef CASE
// clang-format on
CASE1(UConvert),
CASE1(ConvertPtrToU),
CASE1(ConvertUToPtr),
+ CASE1(GenericCastToPtr),
CASE1(PtrCastToGeneric),
CASE1(Bitcast),
CASE1(QuantizeToF16),
CASE2(ShiftLeftLogical),
CASE2(BitwiseOr),
CASE2(BitwiseAnd),
+ CASE2(BitwiseXor),
CASE1(FNegate),
CASE2(FAdd),
CASE2(FSub),
CASE2(SGreaterThan),
CASE2(ULessThanEqual),
CASE2(SLessThanEqual),
- CASE2(SLessThanEqual),
CASE2(UGreaterThanEqual),
CASE2(SGreaterThanEqual),
// Memory