Browse Source

added rcsid

sater 40 years ago
parent
commit
3c197c150a

+ 2 - 0
util/opt/alloc.h

@@ -1,3 +1,5 @@
+/* $Header$ */
+
 extern line_p 	newline();
 extern offset	*newrom();
 extern sym_p	newsym();

+ 2 - 0
util/opt/assert.h

@@ -1,3 +1,5 @@
+/* $Header$ */
+
 #ifndef NDEBUG
 #define assert(x) if(!(x)) badassertion(__FILE__,__LINE__)
 #else

+ 2 - 0
util/opt/ext.h

@@ -1,3 +1,5 @@
+/* $Header$ */
+
 #ifndef FILE
 #include <stdio.h>
 #endif

+ 2 - 0
util/opt/line.h

@@ -1,3 +1,5 @@
+/* $Header$ */
+
 #define NARGBYTES	14
 struct argbytes {
 	argb_p	ab_next;

+ 2 - 0
util/opt/lookup.h

@@ -1,3 +1,5 @@
+/* $Header$ */
+
 #define IDL	8
 
 struct sym {

+ 1 - 0
util/opt/makedepend

@@ -1,3 +1,4 @@
+: '$Header$'
 for extension in c y
 do
     for file in *.$extension

+ 4 - 0
util/opt/mktab.y

@@ -1,4 +1,8 @@
 %{
+#ifndef NORCSID
+static char rcsid[] = "$Header$";
+#endif
+
 #include <stdio.h>
 #include "param.h"
 #include "types.h"

+ 2 - 0
util/opt/optim.h

@@ -1,3 +1,5 @@
+/* $Header$ */
+
 /* #define DIAGOPT /* if defined diagnostics are produced */
 #ifdef DIAGOPT
 #define OPTIM(x) optim(x)

+ 2 - 0
util/opt/param.h

@@ -1,3 +1,5 @@
+/* $Header$ */
+
 #define LONGOFF		/* if defined long offsets are used */
 
 #define TRUE	1

+ 2 - 0
util/opt/pattern.h

@@ -1,3 +1,5 @@
+/* $Header$ */
+
 /*
  * pattern contains the optimization patterns in an apparently
  * unordered fashion. All patterns follow each other unaligned.

+ 3 - 2
util/opt/patterns

@@ -1,3 +1,4 @@
+# $Header$
 loc adi loc sbi $2==w && $4==w: loc $1-$3 adi w
 ldc adi ldc sbi $2==2*w && $4==2*w:     ldc $1-$3 adi 2*w
 loc adi loc adi $2==w && $4==w: loc $1+$3 adi w
@@ -438,8 +439,8 @@ lal loi lal sti $2==$4 && $2>4*w && ( $3<=$1-$2 || $3>=$1+$2 ) :
 lae loi lae sti $2==$4 && $2>4*w && ( !defined($1==$3) || $3<=$1-$2 || $3>=$1+$2 ) :
 	lae $1 lae $3 blm $2
 loc loc loc cif $1==0 && $2==w :	zrf $3
-loc loc loc cii $2==w && $3==2*w : ldc $1
-loc loc loc ciu $1>=0 && $2==w && $3==2*w : ldc $1
+loc loc loc ciu $1>=0 && $2==w && $3==2*w :	ldc $1
+loc loc loc cii $2==w && $3==2*w :	ldc $1
 loi loc inn $1==$3 && $2>=0 && $2<$1*8 : 
 	lof ($2/(8*w))*w loc $2&(8*w-1) inn w
 ldl loc inn $3==2*w && $2>=0 && $2<16*w : 

+ 1 - 0
util/opt/testopt

@@ -1,3 +1,4 @@
+: '$Header$'
 while true
 do
   (echo ' mes 2,2,2

+ 2 - 0
util/opt/types.h

@@ -1,3 +1,5 @@
+/* $Header$ */
+
 typedef char byte;
 typedef char bool;
 typedef struct line line_t;