Commit graph

178 commits

Author SHA1 Message Date
ceriel eaf856c7a0 Added some patterns for unsigned compares 1990-02-09 15:28:46 +00:00
ceriel 1ece6f9107 Added a few more patterns 1989-11-08 12:44:33 +00:00
ceriel 67e5a8e7a5 improved check for loop 1989-10-30 15:17:01 +00:00
ceriel 01f77a03af Added CBO (commutative binary operator) to make it a little easier to
write reordering patterns
1989-10-20 11:59:52 +00:00
eck 46e45d1c2d added CPP variable to Makefile 1989-10-20 10:37:25 +00:00
ceriel 0faaec8e3d cleaned up Makefile 1989-10-12 16:18:38 +00:00
ceriel 0364de3a9c fixed problem: sometimes incorrect labels were generated in case descriptors 1989-10-04 14:39:55 +00:00
ceriel f3a7c72ddb Added some XOR patterns 1989-10-04 14:35:50 +00:00
ceriel 048099535a removed old dependency on EM_WSIZE 1989-08-10 09:23:44 +00:00
ceriel 64a35f954d leave register messages with a count of 0 1989-06-05 15:47:53 +00:00
ceriel 26e5032b9c Added some patterns 1989-03-03 10:36:42 +00:00
ceriel ac2b7f8d44 replace more multiplies by shifts 1989-03-02 18:56:05 +00:00
ceriel 929716a621 Improved label handling and handling of jumps to jumps 1989-02-06 14:39:08 +00:00
ceriel e0c7813927 Added some patterns for LOC LOC CII followed by test on (in)equality to 0 1989-02-06 14:38:21 +00:00
ceriel 732d0eac5c Bug fix in cast 1989-02-06 14:38:00 +00:00
ceriel 0ec10de716 Use our own preprocessor, added dependencies 1989-02-06 14:37:51 +00:00
ceriel ac86c49d85 deleted some patterns; they caused loop 1988-12-14 17:55:02 +00:00
ceriel b9417a3a55 Added patterns 1988-12-12 18:22:59 +00:00
ceriel 66ae1083a8 Added some patterns 1988-12-08 13:21:07 +00:00
ceriel 41d0500d81 replaced relative includes by <> includes 1988-09-12 09:13:49 +00:00
ceriel 61a911c631 some fixes 1988-08-18 15:32:47 +00:00
ceriel ec40d28c25 Added some patterns to evaluate constant shifts 1988-06-22 13:47:57 +00:00
ceriel 16e657858a Some improvements 1988-06-15 13:15:41 +00:00
ceriel 750aad12f6 Made a bit more portable 1988-04-19 19:46:28 +00:00
ceriel 9dce6c6b88 Added patterns for loc sbu and loc adu 1988-03-23 16:52:23 +00:00
ceriel bdc37d879e Added some patterns 1988-01-12 13:27:11 +00:00
ceriel 9bcd5473ad minor adaption: index array with int, not long 1987-08-19 15:27:15 +00:00
ceriel 72e27e7dab put mes 2 in front 1987-05-20 14:09:21 +00:00
ceriel 231841bcfe Added some patterns, generate mes 8 after mes 2 1987-05-20 13:56:26 +00:00
ceriel 81b1d21c35 Initial revision 1987-04-13 10:32:47 +00:00
ceriel 80ff3e60c4 2 last minute-additions (oh dear ...) 1987-04-03 16:21:24 +00:00
ceriel eeb5148f29 BMASK was unsigned, which caused problems with some C compilers (ours) 1987-03-25 15:57:22 +00:00
ceriel 1dd241938c replaced cc by $(CC) 1987-03-24 11:10:23 +00:00
ceriel e2eeea5162 remove regnoglob.c and regglob.c before copying to them 1987-03-11 15:39:01 +00:00
ceriel 6c812387fd Added copyright notice 1987-03-10 01:42:07 +00:00
ceriel 815166e421 Added copyright notice 1987-03-09 19:15:41 +00:00
ceriel fa0f6cd0c6 Lindseys fix to a bug with nested procedures 1987-03-09 10:15:51 +00:00
ceriel c05eb0a5c7 *** empty log message *** 1987-02-24 16:07:04 +00:00
ceriel 35e75e3d55 Added a dependency 1987-02-23 11:02:31 +00:00
ceriel 6f9a14000c Some minor improvements 1987-02-23 11:01:13 +00:00
ceriel 8360226526 Added "opt2" to the clean entry 1987-02-07 02:57:09 +00:00
ceriel ece95a2ee4 Some bug fixes 1987-01-15 17:36:26 +00:00
ceriel 281f83968c This one works. 1987-01-12 14:06:47 +00:00
ceriel cb2b167849 New Makefile, also generating opt2 (t.i. peephole optimizer after global ..) 1987-01-12 14:01:26 +00:00
ceriel eba14fa801 Bug fix in "inc loc adi" patterns and the like. 1986-11-24 10:42:29 +00:00
ceriel bfad7d30f0 Added a pattern for "ldc ads". 1986-09-24 12:17:25 +00:00
ceriel a2599744f0 Addition of new patterns. 1986-09-23 09:41:47 +00:00
em c685aa11b5 set limit on optimization passes to prevent loop
in optimizer in case of bad table.
1986-09-09 13:10:15 +00:00
sater 14b982346f Error fixed where w==2 was assumed 1986-08-28 10:28:42 +00:00
sater f1a0c90fb1 removed sanity checking on result from sprintf
System IIIish systems seem to have their own idea.
1986-06-17 09:13:11 +00:00
ceriel e2cfecffe3 Added some new patterns involving multiplies with 0, 1 etc. 1986-02-10 10:14:41 +00:00
keie 2e947a5e91 BSD4.3 size returns an error when it cannot find one of
its arguments.
1985-10-15 15:47:12 +00:00
em 2c4b17e464 Compile-time option GLOBAL_OPT defined. If set, the resulting
peephole optimizer will be suitable for optimizing the output of
the global optimizer. In particular, it doesn't change the register
messages.
1984-09-14 10:25:07 +00:00
sater 822b1c557c Revised to include rcsid of pattern file in binary opt 1984-08-16 16:08:39 +00:00
sater d1b3479a55 added patterns to remove some more dup's 1984-08-15 16:04:19 +00:00
sater eebcf1b22c added patterns to remove as many dup's as possible. 1984-08-15 14:23:42 +00:00
sater eff0f36a5d added patterns for *p++ local and external p
added pattern to remove some badly placed dups
1984-08-03 16:37:15 +00:00
sater 59fa458a20 removed some superfluous patterns.
Were special cases not needed with the general case.
1984-08-03 13:16:59 +00:00
sater 2943d957bb The patterns to change a cii to cuu when dealing with a known positive
quantity was technically wrong. Changed to generate a cui.
1984-07-18 15:54:25 +00:00
sater 0473678491 added patterns for unsigned shifting
added patterns to delay additive operations until after multiplicative,
  this can be useful for some register machines
1984-07-18 11:05:28 +00:00
sater ea298b258e changed format of rcsid message 1984-07-12 15:18:13 +00:00
sater 2dc4c564e2 added rcsid 1984-07-12 14:55:49 +00:00
sater 96969afa26 Initial revision 1984-07-12 14:14:54 +00:00
sater 2f56cb1cad reworked to use ack instead of npc.
made more user-friendly (ha ha)
1984-07-12 10:42:33 +00:00
sater aa9d50ff5a The sequence:
lin 100
  cal $foo
  lin 101
used to have it's second lin lni'ed. This is obviously wrong.
A check is now made for procedure calls.
1984-07-12 09:29:49 +00:00
sater e30825a5dd Fixed bug: after BRA instruction was optimized away the variable lastbra
pointed to the instruction following. This could lead to anything,
including bus errors. Lastbra is now reset to 0.
Bug discovered at Philips PMDS by Hans de Vries. The fix is also his.
Actually the function cleaninstr should be rewritten.
1984-06-28 10:40:09 +00:00
sater d34532e79d Incorporated variable length identifiers.
Courtesy Johan Stevenson
1984-05-18 13:04:34 +00:00
em 7ac5028864 added rcsid 1984-05-17 15:51:42 +00:00
em 5138be020c changed format of rcsid 1984-05-17 14:37:15 +00:00
em 7d36c44c56 changed rcsid to rcsid2 1984-05-17 14:28:57 +00:00
sater 3c197c150a added rcsid 1984-05-17 14:14:29 +00:00
sater 18ffd176ba added rcsid
added pattern for # comments
1984-05-17 14:13:36 +00:00
sater d78dadca3f added rcsid
added field to remember ms_gto
1984-05-17 14:13:06 +00:00
sater 4eb6ac7b9a added rcsid + some minor reshaping 1984-05-17 14:06:18 +00:00
sater b40016f6fd added rcsid 1984-05-17 13:57:07 +00:00
sater 29202fe224 added rcsid
Changed register message output to terminate with ms_gto, if input
  procedure contained one.
1984-05-17 13:56:00 +00:00
sater 7a8f9ed57c added rcsid
Recognize and process mes ms_gto
1984-05-17 13:54:01 +00:00
sater ac23d5c871 Initial revision 1984-05-17 13:42:36 +00:00