| 73 | } |
| 74 | |
| 75 | spv_result_t ValidateGroupInt(ValidationState_t& _, const Instruction* inst) { |
| 76 | const uint32_t type_id = inst->type_id(); |
| 77 | if (!_.IsIntScalarOrVectorType(type_id)) { |
| 78 | return _.diag(SPV_ERROR_INVALID_DATA, inst) |
| 79 | << "Result must be a scalar or vector of integer type"; |
| 80 | } |
| 81 | |
| 82 | const uint32_t x_type_id = _.GetOperandTypeId(inst, 4); |
| 83 | if (x_type_id != type_id) { |
| 84 | return _.diag(SPV_ERROR_INVALID_DATA, inst) |
| 85 | << "The type of X must match the Result type"; |
| 86 | } |
| 87 | return SPV_SUCCESS; |
| 88 | } |
| 89 | |
| 90 | spv_result_t ValidateGroupAsyncCopy(ValidationState_t& _, |
| 91 | const Instruction* inst) { |
no test coverage detected