1
0
mirror of https://github.com/cc65/cc65.git synced 2024-07-30 04:29:26 +00:00
Commit Graph

589 Commits

Author SHA1 Message Date
bbbradsmith
e3cb8dfb9b Numerical constant scanner requires explicitly 32-bit sized type for cross-platform consistency 2023-05-03 19:27:37 -04:00
Bob Andrews
45bdeb62ad
Merge pull request #2070 from bbbradsmith/fix2060
RHS primary integer promotion must happen after loading the primary, not before
2023-05-03 23:57:19 +02:00
bbbradsmith
49bd568113 error test for integer constant too large for internal representation 2023-05-03 17:55:02 -04:00
Bob Andrews
ae7a1416fe
Revert "Revert "Forbid 3-byte struct pass/return by value, document struct value pass/return"" 2023-05-03 20:02:12 +02:00
Brad Smith
2c47ea45af
bug895.c compliant token pasting syntax to remove warnings
Gets rid of some unnecessary warning spam in the test log of lines like this:
```
bug895.c:95: Warning: Pasting formed "unsigned_long_14(", an invalid preprocessing token
```
2023-05-02 18:18:10 -04:00
bbbradsmith
1c26b1cf1b RHS primary integer promotion must happen after loading the primary, not before. See: #2060 2023-05-02 14:42:00 -04:00
bbbradsmith
99220f60af test/asm readme val description revision 2023-03-07 18:53:30 -05:00
bbbradsmith
6be7c16013 linkter test with custom config should not use none.lib 2023-03-07 18:48:30 -05:00
bbbradsmith
4732e937ad overwrite segment tests
asm/listing linker CFG support
asm and asm/listing test documentation
2023-03-07 18:44:56 -05:00
mrdudz
c92a8f863a Merge branch 'master' into fptest 2023-03-04 13:48:31 +01:00
Bob Andrews
b9cf6266e7
Merge pull request #2010 from bbbradsmith/ca65_brk_optional_signature
optional BRK signature on all 6502 CPUs, not just 65816
2023-03-04 13:21:28 +01:00
Bob Andrews
c0559dd931
Merge pull request #2009 from bbbradsmith/ca65_feature_disable
ca65: allow .feature to both enable and disable
2023-03-04 13:08:18 +01:00
mvax
3f2129894b Fix .endmacro not at the start of the line. Rename test files. 2023-03-02 15:12:30 -05:00
mvax
98d2d9ee4e Fix .endmacro not at the start of the line. Fix style 2023-03-01 21:59:00 -05:00
mvax
0b71d1cfff Fix .endmacro not at the start of the line. Fix last commit 2023-03-01 21:55:14 -05:00
bbbradsmith
3d41a5b516 allow immedite style syntax variation for BRK signature byte 2023-02-25 08:23:47 -05:00
bbbradsmith
cd8fa39066 optional BRK signature on all 6502 CPUs, not just 65816 (also COP) 2023-02-24 22:40:29 -05:00
bbbradsmith
c2bc40f213 test for all ca65 .feature options 2023-02-24 20:00:56 -05:00
bbbradsmith
230230819e document the undocumented test/asm/listing behaviours 2023-02-24 19:35:38 -05:00
Bob Andrews
12fc59351e
Merge branch 'master' into ca65_long_jsr_jmp_rts 2023-02-24 19:25:32 +01:00
Bob Andrews
221e6b53ef
Merge pull request #1992 from bbbradsmith/optstackops_toscmpbool_fix
OptStackOps label migration fix
2023-02-24 13:43:07 +01:00
bbbradsmith
2cdab999f5 dasm test extend 65816.info to include added code 2023-02-21 05:22:28 -05:00
bbbradsmith
4b29d257d9 fix dasm test65816 which relied on JMP automatic promotion, add test of new long_jsr_jmp_rts and smart 2023-02-21 04:38:42 -05:00
bbbradsmith
3df5b9f41f relocate dasm test start-addr to avoid producing negative memory area size with none.cfg (conflicted with stack position at $8000) 2023-02-19 09:30:07 -05:00
bbbradsmith
78263cd24b Fix OptStackOps label migration case for toscmpbool, add test case 2023-02-17 23:48:32 -05:00
mrdudz
1764b7aca9 fix for #1941, taken from 22d435b689 2023-01-28 12:29:05 +01:00
mrdudz
61f2f4fa56 Merge branch 'master' into fptest 2023-01-28 11:22:20 +01:00
Bob Andrews
cce119a9e7
Merge pull request #1871 from clbr/da816
da65 support for 65816
2022-12-30 15:34:40 +01:00
mrdudz
d9ebfa7192 all good things are three 2022-12-11 12:29:11 +01:00
mrdudz
2b941e255a move test. oops 2022-12-11 12:22:41 +01:00
mrdudz
ddab16007a run branch fixer again after replacing BRA by JMP. should fix #1936 2022-12-11 12:08:30 +01:00
mrdudz
bad961b36f add missing newline 2022-11-28 06:34:05 +01:00
mrdudz
61ee5fe1d5 test for bug #1933 2022-11-28 06:26:47 +01:00
mrdudz
46bb7e8961 Merge branch 'master' into fptest 2022-11-19 22:12:26 +01:00
mrdudz
d6c37a757d Merge branch 'master' into underscores 2022-11-19 17:11:11 +01:00
mrdudz
54f7325800 another test fixed 2022-11-19 00:06:37 +01:00
mrdudz
1413ab711e fix some compare tests 2022-11-18 23:38:40 +01:00
mrdudz
1ba10a9619 Merge branch 'master' into fptest
# Conflicts:
#	src/cc65/expr.c
2022-11-18 20:23:02 +01:00
Bob Andrews
3513342445
Merge pull request #1913 from acqn/Diagnostics
[cc65] Improved diagnostics on div-by-zero/bitwise-shift in unevaluated context and overall
2022-11-18 19:55:51 +01:00
mrdudz
c9ff35933a Merge branch 'master' into fptest 2022-11-18 19:12:52 +01:00
Bob Andrews
a0a9cfdcd3
Merge pull request #1918 from acqn/PPFix
[cc65] Fixed bitwise-shift in preprocessor
2022-11-18 19:09:55 +01:00
mrdudz
820358ce9a Merge branch 'master' into fptest 2022-11-18 19:07:24 +01:00
Bob Andrews
93b015660d
Merge pull request #1899 from acqn/TypeCmpFix
[cc65] Fixed compatibility checks on "pointer to pointer" vs "pointer to array" etc.
2022-11-18 19:04:35 +01:00
mrdudz
a83bd3a341 Merge branch 'master' into fptest 2022-11-18 19:02:23 +01:00
mrdudz
e30951cf9a spaces 2022-11-18 18:28:59 +01:00
mrdudz
705617cd5f add more checks that are related to recent fixes 2022-11-18 01:52:55 +01:00
mrdudz
965c1f5239 updated 2022-11-18 01:52:18 +01:00
mrdudz
d98b55f8ee fix issues with substraction 2022-11-18 01:16:55 +01:00
mrdudz
c651cb4f1f cleanup 2022-11-17 20:41:49 +01:00
mrdudz
cfdf6aef9d add some tests on comparing floats vs ints. not all cases working 2022-11-17 20:41:36 +01:00
mrdudz
54e7d71cb7 fix division test 2022-11-17 20:38:59 +01:00
mrdudz
14347c2220 cleanup 2022-11-17 19:39:35 +01:00
mrdudz
1ba0651b75 also delete quick.s 2022-11-17 19:16:39 +01:00
mrdudz
331a8c7bc3 fix (some) issues with float constants 2022-11-13 23:47:15 +01:00
mrdudz
7467503f6e in an expression when both sides are constant, and one side is float, convert the other side to float and make the result float 2022-11-13 21:21:17 +01:00
mrdudz
34420ac153 test for mixed expressions 2022-11-13 19:02:47 +01:00
mrdudz
e77bf71ab9 fix g_div patch, hopefully checks works again 2022-11-13 17:50:40 +01:00
acqn
dadca9e033 Fixed bitwise-shift in PP. 2022-11-13 16:32:41 +08:00
mrdudz
9e7e86e443 fix division problem, fix some other tests 2022-11-13 02:21:57 +01:00
Spiro Trikaliotis
d7a804d120 Split stdin and stdout in test/asm/
Some tests pipe the stdout and stderr of the compiler or assembler into
a file and compare the result with a reference. This has the subtle
problem that both stdout and stderr and buffered i/o streams that may or
may not work the same on different OSs or even shells. That means the
order of the lines in the resulting file is not guaranteed.

In practise it is "mostly" not an issue, but "we" still stumbled about
one test where different behaviour can be triggered depending on running
it in cmd.exe or bash (msys): test/asm/listing output of
010-paramcount.bin differs from the reference output when running the
test from cmd.exe.

The solution is most likely to have two reference files and not redirect
into one file.

This patch fixes the issue (cf. #1912) for the directory test/asm/.
2022-11-12 23:12:25 +01:00
mrdudz
abe1926a48 remove useless if 2022-11-12 22:55:17 +01:00
mrdudz
fd070c9b79 fix ternary operator 2022-11-12 19:08:03 +01:00
acqn
7b436e9823 Added tests for #1895 fix. 2022-11-13 01:01:24 +08:00
mrdudz
69b3659924 fix conversion of float to chars 2022-11-12 17:41:52 +01:00
acqn
cc177208b4 Added tests for diagnostics in unevaluated context. 2022-11-12 21:05:01 +08:00
mrdudz
694561e917 fix comparing float const vs const 2022-11-12 02:44:01 +01:00
mrdudz
62e211553b fix comparing float variable agains float constants 2022-11-12 02:04:29 +01:00
mrdudz
af15ce8223 some cleanup, make testcompiles of the tests with gcc work again 2022-11-12 02:03:23 +01:00
mrdudz
9cdd74e2f1 Merge branch 'master' into fptest 2022-11-11 21:45:04 +01:00
Bob Andrews
ace39197e5 move test to test/ref 2022-11-11 21:22:20 +01:00
Bob Andrews
9c48c0ab8a
Merge pull request #1900 from acqn/Diagnostics
[cc65] Fixed endlessly repeated error messages when a declaration lacks a required identifier
2022-11-11 21:08:53 +01:00
Bob Andrews
ebb33ee8b4 fix problem with copy command in cmd.exe 2022-11-11 20:54:38 +01:00
mrdudz
6c5807001b add failing tests in test/todo 2022-11-11 00:52:42 +01:00
acqn
9253f0d6bc Added testcase for #1889. 2022-11-10 02:11:54 +08:00
mrdudz
c5728626b0 space! 2022-11-09 02:50:54 +01:00
mrdudz
f55b9ce37e spaces 2022-11-09 02:48:14 +01:00
mrdudz
bbe46bb883 move float libss into libsrc/float, move tests into the correct dirs for the testbench, move includes to toplevel include dir 2022-11-09 02:45:07 +01:00
mrdudz
a09053ce0b make test work again also on linux. why did this not break the github actions? 2022-11-09 01:07:36 +01:00
mrdudz
4a8c13fd93 Merge branch 'master' into fptest 2022-11-05 20:43:47 +01:00
mrdudz
bf924395fb fix some bashisms, hopefully makes "check" work again in cmd.exe 2022-11-05 19:41:02 +01:00
Bob Andrews
53b62184e8
Merge pull request #1905 from acqn/DeclFix
[cc65] Fixed some missing declaration features
2022-11-05 16:03:09 +01:00
acqn
e608f8a94f Renamed several tests. 2022-11-05 18:30:02 +08:00
mrdudz
79fd078ae3 add check for line endings containing CR. 2022-11-03 18:27:10 +01:00
mrdudz
cc450706d1 testcase related to bug #1888 2022-11-03 18:03:47 +01:00
mrdudz
44b2e4f331 added examples for tests that compare the compiler output with a reference 2022-11-03 17:40:13 +01:00
acqn
8a7f566387 Fixed support for storage class specifiers after type specifiers. 2022-11-03 21:46:42 +08:00
acqn
991af3755b Added support for _Static_assert in unions. 2022-11-03 21:46:41 +08:00
Lauri Kasanen
9aae1efd03 Add a da65 65186 test 2022-11-03 08:17:51 +02:00
Bob Andrews
0eba33ee74
Merge pull request #1897 from acqn/TernaryFix
[cc65] Fixed errors in the conditional operator "? :" parser
2022-11-02 18:13:45 +01:00
Bob Andrews
37efb40c69
Merge pull request #1898 from acqn/PPFix
[cc65] Fixed '\\' + newline
2022-11-02 18:09:04 +01:00
acqn
deb5e97732 Fixed diagnostic messages on enumerator overflow.
An enumerator that would be incremented greater than ULONG_MAX now causes an error.
2022-11-02 14:22:21 +08:00
acqn
8fb2576626 Fixed processing '\\' followed with a newline and line number output (-E) with it. 2022-11-02 14:09:15 +08:00
acqn
d84cc2d122 Fixed errors in the conditional operator "? :" parser. 2022-11-02 13:56:55 +08:00
Lauri Kasanen
1e6279aee5 Clarify sprintf-test's output so it doesn't look like the entire test bench summary 2022-10-12 18:38:33 +03:00
Bob Andrews
a169e67e43
Merge pull request #1863 from acqn/LinkageFix
[cc65] Fixed symbol visibility and usage problems with extern/static declarations
2022-10-09 18:59:12 +02:00
acqn
9eab36b95a Fixed block-scope extern declarations visibility.
Fixed missing file-scope static function codegen output in a rare care.
2022-09-30 14:32:08 +08:00
acqn
f6003b8e8c Renamed some testcases. 2022-09-30 09:41:54 +08:00
acqn
1cbd6bc3f9 Fixed comments in test/val/bug1462-biefield-assign-4.c. 2022-09-29 18:23:41 +08:00
acqn
376afd0edb Fixed trailing spaces in some testcases. 2022-09-29 18:23:32 +08:00
mrdudz
846d51db72 change line endings to unix style, should fix #1858 2022-09-22 20:29:57 +02:00