ack/tests/plat
George Koehler 26de4c1ab1 Add test for EM _rck_. Fix traps in PowerPC ncg.
The new test rck_e.e segfaults on PowerPC unless I make some changes.
The inline code for _rck_ was wrong because it didn't allow the trap
handler to return.  _sig_ forgot to push the old trap handler.

Move plat/linuxppc/libsys/trap.s to mach/powerpc/libem/trp.s and
rewrite it with simplified/extended mnemonics.  Remove .trap alias for
.trp procedure.  Add a missing `mtspr lr, r0` so we can return from
the trap handler.  Call write() and _exit() so trp.s works with both
linuxppc and osxppc.  Before, Mac OS X was wrongly using the trap.s
for Linux.

In powerpc/libem, simplify .aar4; teach .csa and .csb to raise the
trap if the default target is zero.

C programs don't need these changes.  You may relink your C programs
with the changed .csa and .csb, but C code doesn't raise the trap.
Modula-2 code can raise traps, so you may want to relink your Modula-2
programs with the changed libem, but you might keep your old .o files
from Modula-2.  You may need to recompile your Pascal programs (delete
old .o files from Pascal) because the Pascal compiler might use _rck_.
2017-12-24 22:37:52 -05:00
..
b Make sure that constant folding doesn't render our tests trivial. 2017-01-07 19:53:57 +01:00
bugs Fix pattern that was rewriting func(! var, var) as func(1). 2017-10-29 14:53:33 -04:00
lib Remove '\0' from output. Fix a compiler warning. 2017-12-18 21:17:42 -05:00
m2 Add some tests for Modula-2. 2017-12-21 18:24:17 -05:00
_dummy_e.c Add a test for #22. 2016-12-06 22:07:22 +01:00
brk_c.c Enable tests for linuxppc via qemu-ppc. 2016-11-26 11:56:17 +01:00
build.lua Add test for EM _rck_. Fix traps in PowerPC ncg. 2017-12-24 22:37:52 -05:00
calloc_c.c Refactored the tests to make the generic across different plats. 2016-11-25 21:02:51 +01:00
csa_e.c Refactored the tests to make the generic across different plats. 2016-11-25 21:02:51 +01:00
csb_e.c Refactored the tests to make the generic across different plats. 2016-11-25 21:02:51 +01:00
doublecmp_e.c Refactored the tests to make the generic across different plats. 2016-11-25 21:02:51 +01:00
dup_e.e Revise the comments in the EM tests. 2017-12-21 18:24:28 -05:00
exg_e.e Revise the comments in the EM tests. 2017-12-21 18:24:28 -05:00
from_d_to_si_e.c Rework the tests to run on pc86; lots of test fixes for the brk() test, which 2016-11-26 11:23:25 +01:00
from_d_to_ui_e.c Rework the tests to run on pc86; lots of test fixes for the brk() test, which 2016-11-26 11:23:25 +01:00
from_si_to_d_e.c Rework the tests to run on pc86; lots of test fixes for the brk() test, which 2016-11-26 11:23:25 +01:00
from_ui_to_d_e.c Rework the tests to run on pc86; lots of test fixes for the brk() test, which 2016-11-26 11:23:25 +01:00
inn_e.e Pass 4 bytes to fail(uint32_t) 2017-12-18 21:58:57 -05:00
intadd_e.c Refactored the tests to make the generic across different plats. 2016-11-25 21:02:51 +01:00
intcmp_e.c Refactored the tests to make the generic across different plats. 2016-11-25 21:02:51 +01:00
intdiv_e.c Refactored the tests to make the generic across different plats. 2016-11-25 21:02:51 +01:00
intrem_e.c Refactored the tests to make the generic across different plats. 2016-11-25 21:02:51 +01:00
intshift_e.c Rework the tests to run on pc86; lots of test fixes for the brk() test, which 2016-11-26 11:23:25 +01:00
intsub_e.c Rework the tests to run on pc86; lots of test fixes for the brk() test, which 2016-11-26 11:23:25 +01:00
newdispose_p.p Add a test (currently failing) to check that Pascal char sets can store all 256 2017-01-15 22:28:14 +01:00
pascalsets_p.p Add a bunch more set operations to the PowerPC backends, and the Pascal test 2017-01-17 22:31:38 +01:00
rck_e.e Add test for EM _rck_. Fix traps in PowerPC ncg. 2017-12-24 22:37:52 -05:00
rotate_e.e Revise the comments in the EM tests. 2017-12-21 18:24:28 -05:00
testdriver.sh Show tests that @@TIMEDOUT. 2017-11-08 14:08:43 -05:00