public
/
ack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5efd428
)
Added patterns
author
ceriel
<none@none>
Tue, 25 Sep 1990 15:12:26 +0000
(15:12 +0000)
committer
ceriel
<none@none>
Tue, 25 Sep 1990 15:12:26 +0000
(15:12 +0000)
mach/m68k2/top/table
patch
|
blob
|
history
diff --git
a/mach/m68k2/top/table
b/mach/m68k2/top/table
index
dbc5de9
..
dd07678
100644
(file)
--- a/
mach/m68k2/top/table
+++ b/
mach/m68k2/top/table
@@
-65,6
+65,15
@@
move.l DREG,A : ANY A,X
{reg_subs_allowed(ANY) &&
!is_dreg(A) } -> move.l DREG,A : ANY DREG,X ;
+cmp.b A,A : beq LAB -> bra LAB ;
+cmp.w A,A : beq LAB -> bra LAB ;
+cmp.l A,A : beq LAB -> bra LAB ;
+
+/* cannot delete cmp's because they affect condition codes (obvious, but ... )*/
+cmp.b A,A : bne LAB -> cmp.b A,A ;
+cmp.w A,A : bne LAB -> cmp.w A,A ;
+cmp.l A,A : bne LAB -> cmp.l A,A ;
+
/* change some compares to tests */
cmp.w #0,X : beq LAB -> tst.w X : beq LAB ;
cmp.w #0,X : bne LAB -> tst.w X : bne LAB ;