mirror of
git://projects.qi-hardware.com/wernermisc.git
synced 2024-11-15 13:56:22 +02:00
m1/perf/eval.pl: warn if an instruction reads and writes from the same register
This commit is contained in:
parent
a0abd4e122
commit
5bf9ae002f
@ -49,6 +49,11 @@ while (<>) {
|
|||||||
$reg{$a} = 1 if $nregs && defined $a;
|
$reg{$a} = 1 if $nregs && defined $a;
|
||||||
$reg{$b} = 1 if $nregs && defined $b;
|
$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};
|
$a = $reg{$a} if defined $reg{$a};
|
||||||
$b = $reg{$b} if defined $reg{$b};
|
$b = $reg{$b} if defined $reg{$b};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user