1
0
mirror of git://projects.qi-hardware.com/wernermisc.git synced 2024-12-18 19:03:44 +02:00

m1/perf/eval.pl: warn if an instruction reads and writes from the same register

This commit is contained in:
Werner Almesberger 2011-09-25 10:48:22 -03:00
parent a0abd4e122
commit 5bf9ae002f

View File

@ -49,6 +49,11 @@ while (<>) {
$reg{$a} = 1 if $nregs && defined $a;
$reg{$b} = 1 if $nregs && defined $b;
print STDERR "$i: concurrent read/write on $a (A)\n"
if defined $d && $a eq $d;
print STDERR "$i: concurrent read/write on $b (B)\n"
if defined $d && $b eq $d;
$a = $reg{$a} if defined $reg{$a};
$b = $reg{$b} if defined $reg{$b};