1
0
mirror of https://github.com/cc65/cc65.git synced 2024-09-29 17:56:21 +00:00
cc65/test
Brad Smith 041f981960
rand() use XOR to break up unwanted pair correlation (#1107)
* rand() use XOR to break up unwanted pair correlation

This form of rand() cannot return the same value twice in a row.
Two additonal EOR instructions produce a more even distribution of successive pairs.
see comments on #951

* rand.s document purpose of XOR

* suggested srand() optimization: zero fill unnecessary

* test to validate implementation of rand()

* srand() improving behaviour and adding startup test

* srand() with a tail call to rand() for better initial shuffle

* srand() can fall through to rand() instead of tail call
2020-07-21 23:38:18 +02:00
..
asm Move .NOTPARALLEL closer to rule that needs it 2020-07-10 13:08:19 +02:00
dasm Allow to control test Makefile output via QUIET (like libsrc). 2017-03-20 11:22:04 +01:00
err added regression test related to bug #1001 2020-01-25 20:56:52 +01:00
misc move test for issue #1075 to test/var 2020-07-21 20:02:51 +02:00
ref Removed executable bit. 2020-07-12 23:11:43 +02:00
todo Add test of signed bitfields for #1095 2020-07-19 11:05:27 +02:00
val rand() use XOR to break up unwanted pair correlation (#1107) 2020-07-21 23:38:18 +02:00
.gitignore
bdiff.c
CPYRIGHT.LCC Add test license description. 2020-06-27 02:23:40 +02:00
Makefile Make Makefiles more -j friendly 2020-07-10 13:08:19 +02:00
readme.txt added a bit more precise description 2020-07-13 17:04:22 +02:00

This directory contains test code for automatic regression testing of the CC65
compiler.


/val  - the bulk of tests are contained here, individual tests should exit with
        an exit code of EXIT_SUCCESS when they pass, or EXIT_FAILURE on error

/ref  - these tests produce output that must be compared with reference output

/err  - contains tests that MUST NOT compile

/todo - these tests fail due to open compiler issues.
        when an issue was fixed, the test should get moved to /var

/asm  - contains the assembler regression tests

/dasm - contains the disassembler regression tests

/misc - a few tests that need special care of some sort
        tests that (incorrectly) fail to compile and other tests that fail and
        do NOT return an exit code are collected here.


to run the tests use "make" in this (top) directory, the makefile should exit
with no error.

when a test failed you can use "make continue" to run further tests

--------------------------------------------------------------------------------

TODO:

- reduce usage of "common.h" to a minimum
- convert more tests from using reference output to returning an exit code