George Koehler
32e60ea994
Add test case for #203
...
left_shift() adapts the example from @davidgiven that caused `ack -O3`
to crash. multiply() is a similar example.
Edit the build system to use -O3 for this test. It now takes -O3 from
the test's filename, and still defaults to -O0.
2019-11-15 15:33:15 -05:00
David Given
cf6041c57f
Add failing test case.
2019-02-14 23:19:11 +01:00
David Given
f4b45f1ed7
Fix bad code generation due to not correctly flushing the stack before
...
comparisons.
2019-02-12 22:19:07 +01:00
David Given
a2b5202081
Added a test case for #157 .
2019-02-12 22:08:08 +01:00
George Koehler
b38fcdded3
Add tests for clearing BSS, copying C structs.
...
The new tests are bss_e.c, structcopy_e.c. We do clear the BSS before
calling _m_a_i_n, so fix the comments in the other tests.
2018-01-27 20:09:16 -05:00
George Koehler
3d6ee435cf
Fix pattern that was rewriting func(! var, var) as func(1).
...
Bug reported by Rune, see
- https://sourceforge.net/p/tack/mailman/message/35809953/
- https://github.com/davidgiven/ack/issues/62
In EM code, beq and bne pop 2 values and compare them, but teq and tne
pop only 1 value and compare it with zero. We need cms to compare 2
values; other patterns may convert cmi or cmu to cms.
2017-10-29 14:53:33 -04:00
David Given
62edb90641
Convert the inn test to work with the test library and not import InOut; it now
...
runs on qemuppc again. Reenable qemuppc tests.
2016-12-11 23:06:37 +01:00
David Given
1039c0a747
Add a test for #22 .
2016-12-06 22:07:22 +01:00