aco: Add tests for subdword register allocation

Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7461>
This commit is contained in:
Tony Wasserka
2020-11-02 18:16:56 +01:00
committed by Marge Bot
parent 6a246f5c6d
commit b841b4fde8
5 changed files with 86 additions and 1 deletions
+1 -1
View File
@@ -351,7 +351,7 @@ bool validate_ir(Program* program)
has_literal |= op.isLiteral();
}
check(!is_subdword || !has_const_sgpr || program->chip_class >= GFX9,
check(!is_subdword || !has_const_sgpr || program->chip_class >= GFX9 || instr->opcode == aco_opcode::p_unit_test,
"Sub-dword pseudo instructions can only take constants or SGPRs on GFX9+", instr.get());
}