From: ceriel Date: Fri, 3 Nov 1989 13:28:37 +0000 (+0000) Subject: Added some patterns X-Git-Tag: release-5-5~2107 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=1158018fdfc8b7dfabcea186e7f5a6d51f84d3cc;p=ack.git Added some patterns --- diff --git a/mach/i86/ncg/table b/mach/i86/ncg/table index a3b51d823..56b3d942e 100644 --- a/mach/i86/ncg/table +++ b/mach/i86/ncg/table @@ -2527,6 +2527,28 @@ uses REG = {ANYCON, 0} inc %a 1: yields %a +pat ldc cmu zgt highw($1)==0 && loww($1)==0 && $2==4 +with rmorconst rmorconst +uses REG = {ANYCON, 0} + gen cmp %a,%2 + jl {label,$3} + jg {label,1f} + cmp %a,%1 + jne {label,$3} + 1: + +pat ldc cmu tgt highw($1)==0 && loww($1)==0 && $2==4 +with rmorconst rmorconst +uses REG = {ANYCON, 0} + gen cmp %a,%2 + jl {label,2f} + jg {label,1f} + cmp %a,%1 + je {label,1f} + 2: + inc %a + 1: yields %a + pat ldc cms zeq $2==4 && loww($1)==0 && highw($1)==0 with rmorconst REG STACK gen or %2,%1