diff --git a/src/amd/compiler/aco_validate.cpp b/src/amd/compiler/aco_validate.cpp index 781a25538af..0aa6767654f 100644 --- a/src/amd/compiler/aco_validate.cpp +++ b/src/amd/compiler/aco_validate.cpp @@ -551,9 +551,11 @@ validate_ir(Program* program) instr->operands[0].size() == 2, "First operand of p_jump_to_epilog must be a SGPR", instr.get()); for (unsigned i = 1; i < instr->operands.size(); i++) { - check( - instr->operands[i].isOfType(RegType::vgpr) || instr->operands[i].isUndefined(), - "Other operands of p_jump_to_epilog must be VGPRs or undef", instr.get()); + check(instr->operands[i].isOfType(RegType::vgpr) || + instr->operands[i].isOfType(RegType::sgpr) || + instr->operands[i].isUndefined(), + "Other operands of p_jump_to_epilog must be VGPRs, SGPRs or undef", + instr.get()); } } else if (instr->opcode == aco_opcode::p_dual_src_export_gfx11) { check(instr->definitions.size() == 6,