Neil Brown
3a0b251235
Fixed rangetest to work with the new support headers (it doesn't need the CIF header, only the plain header)
2009-04-02 13:20:35 +00:00
Neil Brown
55ba56cbae
Fixed the build system for the rangetest
2009-03-27 19:38:08 +00:00
Neil Brown
41946716f0
Implemented ASHIFTRIGHT (straightforward) and ASHIFTLEFT (amazingly hard) and tested them
2009-01-26 18:57:50 +00:00
Neil Brown
df66042a99
Corrected a problem with LONGADD and implemented both LONGSUB and LONGDIFF
2009-01-26 15:46:37 +00:00
Neil Brown
0802d79d6c
Fixed a few more of the intrinsic functions
2009-01-25 22:30:07 +00:00
Neil Brown
062b47bad9
Made some intrinsics stop when they are supposed to (and tested it from rangetest) and implemented a couple more
2009-01-25 22:06:30 +00:00
Neil Brown
0189ba3793
Began implementing the occam intrinsics (some of them, at least) in the C support header
2009-01-23 19:20:26 +00:00
Neil Brown
e71af91e48
Added unsigned tests to rangetest
2009-01-23 13:44:51 +00:00
Neil Brown
084fcad1fe
Changed multiply back to the very simplest implementation
2009-01-23 13:36:09 +00:00
Neil Brown
b7e296943a
Made the commutative range-test also check if the values were correct (seemed easy enough)
2009-01-23 12:43:42 +00:00
Neil Brown
72a8824940
Had a go at implementing multiply overflow checking (with a single division, and pre-checks)
...
I also added an occam testcase to help time the different between * and TIMES. But gcc optimises out the loop with TIMES under -O2, and with -O0 there is a factor of four difference.
2009-01-22 16:51:54 +00:00
Neil Brown
c9fa0f774c
Added all the multiplication tests like the others (currently failing)
2009-01-22 13:18:58 +00:00
Neil Brown
e690f1c36d
Added shift tests and simplified calling the ranged tests a little
2009-01-22 13:07:16 +00:00
Neil Brown
b08d48bd43
Added more remainder tests, and fixed our implementation of remainder to pass the tests
2009-01-22 12:58:53 +00:00
Neil Brown
226f8b4ac4
Added checks for division and remainder, and discovered some failing remainder tests
2009-01-22 12:49:47 +00:00
Neil Brown
98136367e0
Added tests for the occam support negation functions
2009-01-22 12:28:00 +00:00
Neil Brown
ef387ec748
Simplified the range test code
2009-01-22 11:59:40 +00:00
Neil Brown
5d404478f2
Added tests for occam's subtraction
2009-01-22 11:57:11 +00:00
Neil Brown
890b922f2b
Combined the tests for addition in occam into a macro
2009-01-22 11:46:54 +00:00
Neil Brown
0d2ea4c920
Updated the code in light of the feedback from the GCC bug
2009-01-22 11:41:43 +00:00
Neil Brown
1b51eb5d63
Added a C file of tests ready for the occam overflow checking
2009-01-22 11:25:50 +00:00