369 Commits
Author SHA1 Message Date
Alex Volkov 4ceb10ef98 Tests for issue #3010: missing sign extension in 'const int + signed char' code generaiton. 2026-10-18 19:38:41 -04:00
Alex Volkov f962339580 Extra tests for load/store through pointer, OptPtrLoadX/OptPtrStoreX optimizer steps. 2026-10-18 14:02:09 -04:00
Alex Volkov 4f04250675 Tests for OptShiftX optimizer steps; incomplete set. 2026-10-14 18:50:11 -04:00
Alex Volkov 03725ef47b Test for bug #3000; LDX #$FF instructions get erroneously removed by the optimizer around shrax runtimes. 2026-10-06 19:10:50 -04:00
Alex Volkov 69c17a502b Additional synthetic, extreme register load reuse tests future-proofing issues #2942 and #2947. 2026-04-01 18:27:28 -04:00
Alex Volkov 6027487c30 Expand bug2461 tests to other operators and Lhs/Rhs conditions 2026-03-26 18:22:39 -04:00
Alex Volkov 40a20ab973 Expand bug1374 tests to a few other conditions 2026-03-25 19:03:00 -04:00
Alex Volkov 7988d9aefb Regression tests for #2947 expanded to other operators and conditions 2026-03-22 18:44:16 -04:00
Alex Volkov 9732bc2cb7 Correct some printed messages and remove one print in bug2395 test (c&p errors) 2026-03-22 18:42:01 -04:00
Alex Volkov 9c5916866b Prevent stdout/stderr redirect races in the testbench 2026-03-22 14:24:02 -04:00
Alex Volkov d036c4aaae Minimal test for issue #2947 2026-03-20 19:51:55 -04:00
Alex Volkov f464b50495 Minimal test for issue #2946 2026-03-20 19:51:37 -04:00
Alex Volkov 2fd9411f7f Expand bug2395 tests to other operators and conditions 2026-03-20 19:51:04 -04:00
Alex Volkov 76d71aec92 Compare operator test suite: forward and reverse compares; edge and corner cases; literals, autos, statics, simple expressions; signed and unsigned; some special cases. 2026-03-09 20:04:59 -04:00
Kugel Fuhr 3d26a7e1fe Correct test name and test comment. 2026-03-05 18:44:33 +01:00
Kugel Fuhr 380c3f810e Fix an invalid transformation by the optimizer. Introduced by #2811. 2026-03-05 18:40:52 +01:00
Willis Blackburn 789416798f Add terminating NUL after __func__ string literal #2920 2026-01-24 12:32:31 -05:00
Colin Leroy-Mira f3e43cc5c5 Add a 9% faster ZX02 decompressor 2025-10-26 18:53:26 +01:00
Colin Leroy-Mira 2b2c082efb Fix bug in PR #2778
Don't replace incaxy like incax[1-8].
2025-07-20 14:36:30 +02:00
Bob Andrews 4a53a891e8 Merge pull request #2778 from colinleroy/optimise-ldaxi
Optimise ldaxi
2025-07-10 17:03:28 +02:00
Bob Andrews 9971d9fac0 Merge pull request #2776 from colinleroy/optimize-incdecsp-further
Further optimize inc/decsp
2025-07-10 17:02:32 +02:00
Colin Leroy-Mira 20a9db757d Optimize multiple incax* and incax*/ldaxi
- Group multiple calls to incax* and decax* into a single one
- Replace incaxN/jsr ldaxi with ldy #N+1/jsr ldaxidx

Fixes #2055
2025-07-06 20:37:01 +02:00
Colin Leroy-Mira facf7b2a0c Add basic test for incsp optimisation 2025-07-06 18:35:21 +02:00
Colin Leroy-Mira fb7afcfee9 Add strndup ENOMEM test 2025-07-05 12:31:26 +02:00
Bob Andrews fd973cd544 Merge pull request #2769 from colinleroy/add-strndup
Add strndup
2025-07-04 17:01:28 +02:00
Colin Leroy-Mira 90e1ac374b Add strndup
char* __fastcall__ strndup (const char* S, size_t maxlen);
2025-07-03 23:46:28 +02:00
Colin Leroy-Mira fcbc253bf9 Add strlen and strnlen unit tests 2025-07-03 23:43:04 +02:00
Kugel Fuhr 64d35b6a86 Allow comments within _Pragma(). Fixes #2231. 2025-07-01 17:24:24 +02:00
mrdudz cb4cd114bf handle -s correctly when using these makefiles directly 2025-06-29 22:48:03 +02:00
mrdudz cc6813428c fix the fix 2025-06-26 21:00:20 +02:00
mrdudz 46770bbb63 another for cmd.exe 2025-06-26 20:53:10 +02:00
mrdudz 70f9723a89 dumb down for cmd.exe 2025-06-26 20:42:15 +02:00
mrdudz 7a85575158 fix handling of QUIET in the "test" directory 2025-06-26 19:48:16 +02:00
Gorilla Sapiens a7af49a763 Merge branch 'master' into c_sp 2025-06-22 19:02:24 +00:00
Gorilla Sapiens 8cb0578447 changes suggested by mrdudz 2025-06-18 06:38:38 +00:00
Gorilla Sapiens 06a77abc68 Merge branch 'master' into sane_makefile_output 2025-06-18 06:26:58 +00:00
Bob Andrews af2ab29a91 Merge branch 'master' into c_sp 2025-06-12 23:38:48 +02:00
Gorilla Sapiens 880322a5ae renamed test as requested. 2025-06-12 06:06:52 +00:00
Gorilla Sapiens 51da666210 fixes #2608 2025-06-11 02:21:39 +00:00
Gorilla Sapiens b6f42f9ab2 changed "spc" to "c_sp" 2025-06-04 06:37:59 +00:00
Gorilla Sapiens dd2f19260c added information to Makefile output 2025-06-04 03:03:18 +00:00
Gorilla Sapiens 3d118dc6e5 rename "sp" to "spc", avoid conflict with 4510 opcodes 2025-06-04 02:06:40 +00:00
Colin Leroy-Mira cfbfaa559c Add ZX02 and LZSA (1,2) decompressors 2025-05-13 21:26:47 +02:00
Gorilla Sapiens 6a17aedd81 conform to 6.4.4.4 for hex and octal escapes
fixes problem noted in #2610
2025-05-02 05:03:55 +00:00
Kugel Fuhr 1556c8ac7c Move the test from "todo" to "val" since it shouldn't fail any longer. 2025-01-05 17:04:31 +01:00
Bob Andrews 4dfbccfafd Merge pull request #2522 from kugelfuhr/kugelfuhr/code-optimizations
Improve generated code for AND/EOR/ORA
2024-10-05 15:03:46 +02:00
Bob Andrews 270aa4417b Merge pull request #2524 from kugelfuhr/kugelfuhr/fix-2523
Fix some issues with preprocessor expressions
2024-10-05 14:14:29 +02:00
Kugel Fuhr 9c69aac097 Fix some issues with signedness in preprocessor expressions. Do also disallow
comma expressions since the aren't compliant and collide with macro invocations.
2024-09-17 11:45:46 +02:00
Kugel Fuhr 175ec65af1 Fix #2520. 2024-09-14 21:12:19 +02:00
Kugel Fuhr 231ab4169b Added a test. 2024-09-13 19:30:38 +02:00