- /* If requested, make sure that the first instruction does not
- overwrite the inputs of the second instruction. */
- if (test_b_inputs && writes_to_dest_reg (a->insn))
- {
- unsigned char syntax_field;
- int skip = 0;
-
- while (syntax_field = reads_from_src_reg (b->insn, skip ++))
- {
- if (get_src_reg (syntax_field, & b->fields) == get_dest_reg (a->fields))
- return "First instruction writes to register read by the second instruction";
- }
- }
-
- /* Similarly, if requested, make sure that the second instruction
- does not overwrite the inputs of the first instruction. */
- if (test_a_inputs && writes_to_dest_reg (b->insn))
- {
- unsigned char syntax_field;
- int skip = 0;
-
- while (syntax_field = reads_from_src_reg (a->insn, skip ++))
- {
- if (get_src_reg (syntax_field, & a->fields) == get_dest_reg (b->fields))
- return "Second instruction writes to register read by the first instruction";
- }
- }
-