| 24 | namespace { |
| 25 | |
| 26 | spv_result_t ValidateGroupAnyAll(ValidationState_t& _, |
| 27 | const Instruction* inst) { |
| 28 | if (!_.IsBoolScalarType(inst->type_id())) { |
| 29 | return _.diag(SPV_ERROR_INVALID_DATA, inst) |
| 30 | << "Result must be a boolean scalar type"; |
| 31 | } |
| 32 | |
| 33 | if (!_.IsBoolScalarType(_.GetOperandTypeId(inst, 3))) { |
| 34 | return _.diag(SPV_ERROR_INVALID_DATA, inst) |
| 35 | << "Predicate must be a boolean scalar type"; |
| 36 | } |
| 37 | |
| 38 | return SPV_SUCCESS; |
| 39 | } |
| 40 | |
| 41 | spv_result_t ValidateGroupBroadcast(ValidationState_t& _, |
| 42 | const Instruction* inst) { |
no test coverage detected