Skip to content

Commit

Permalink
instr_trace_compare: Add additional mismatch print
Browse files Browse the repository at this point in the history
Signed-off-by: Mateusz Karlic <[email protected]>
  • Loading branch information
MateuszKarlic committed Aug 28, 2024
1 parent 9a6587a commit 2c319b8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/instr_trace_compare.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ def compare_trace_csv(csv1, csv2, name1, name2, log,
instr_trace_2[trace_2_index].gpr,
gpr_val_2)
if gpr_state_change_2 == 1:
fd.write("Mismatch[{}]:\n[{}] {} : {}\n".format(
mismatch_cnt, trace_1_index, name1,trace.get_trace_string()))
fd.write("{} instructions left in trace {}\n".format(
len(instr_trace_2) - trace_2_index, name2))
mismatch_cnt += len(instr_trace_2) - trace_2_index
Expand Down

0 comments on commit 2c319b8

Please sign in to comment.