aco: add framework for unit testing
[mesa.git] / src / amd / compiler / aco_lower_to_hw_instr.cpp
index c7e4acd542e31883772f1e424891f897fa8a80a1..e8c72485772573458274512eedfbed78452a94f5 100644 (file)
@@ -1684,7 +1684,7 @@ void lower_to_hw_instr(Program* program)
       for (size_t j = 0; j < block->instructions.size(); j++) {
          aco_ptr<Instruction>& instr = block->instructions[j];
          aco_ptr<Instruction> mov;
-         if (instr->format == Format::PSEUDO) {
+         if (instr->format == Format::PSEUDO && instr->opcode != aco_opcode::p_unit_test) {
             Pseudo_instruction *pi = (Pseudo_instruction*)instr.get();
 
             switch (instr->opcode)