From 9abbd9eb104c4136071faae59b1deba1d1f08f8e Mon Sep 17 00:00:00 2001 From: ceriel Date: Mon, 11 Apr 1988 09:38:31 +0000 Subject: [PATCH] Added some patterns --- mach/pdp/top/table | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mach/pdp/top/table b/mach/pdp/top/table index 756c6c3df..7de05c47c 100644 --- a/mach/pdp/top/table +++ b/mach/pdp/top/table @@ -28,10 +28,13 @@ add ZERO,A {carry_dead(REST)} -> ; add ONE, X {carry_dead(REST)} -> inc X; sub ONE, X {carry_dead(REST)} -> dec X; +mov A,A -> tst A; + /* tst-elimination */ tst (sp)+ : tst X -> mov X,(sp)+; tst (sp)+ : mov X,-(sp) -> mov X,(sp); mov A,X : tst A -> mov A,X; +mov X,A : tst A -> mov X,A; /* register subsumption */ mov REG,A : ANY A,X -> mov REG,A : ANY REG,X;