Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
}
}
+bool
+backend_instruction::reads_accumulator_implicitly() const
+{
+ switch (opcode) {
+ case BRW_OPCODE_MAC:
+ case BRW_OPCODE_MACH:
+ case BRW_OPCODE_SADA2:
+ return true;
+ default:
+ return false;
+ }
+}
+
bool
backend_instruction::has_side_effects() const
{
bool is_control_flow() const;
bool can_do_source_mods() const;
bool can_do_saturate() const;
+ bool reads_accumulator_implicitly() const;
/**
* True if the instruction has side effects other than writing to