These can have two literals so validation would fail.
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23507>
instr.get());
}
- if (instr->isSALU() || instr->isVALU()) {
+ if ((instr->isSALU() && instr->opcode != aco_opcode::p_constaddr_addlo &&
+ instr->opcode != aco_opcode::p_resumeaddr_addlo) ||
+ instr->isVALU()) {
/* check literals */
Operand literal(s1);
for (unsigned i = 0; i < instr->operands.size(); i++) {