1
0
mirror of https://github.com/cc65/cc65.git synced 2024-10-19 01:24:38 +00:00
Commit Graph

10760 Commits

Author SHA1 Message Date
mrdudz
15b713f7f1 build mathtest for c64, link c64 float progs against the kernal wrapper 2022-11-17 22:48:21 +01:00
mrdudz
89341e0378 add mandelfloat sample 2022-11-17 22:14:43 +01:00
mrdudz
ab568cf8ad rename source files to prevent weird conflicts when building 2022-11-17 21:52:49 +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
f7f5d39f20 fix some cases when comparing floats vs ints 2022-11-17 20:41:15 +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
0c081b73d3 add logging and comments 2022-11-17 19:14:42 +01:00
mrdudz
44c55513f5 fix math function wrappers for cbmkernal 2022-11-17 19:12:27 +01:00
mrdudz
04d058297b dont include math.h 2022-11-17 19:11:29 +01:00
mrdudz
7f9ebe678c spaces 2022-11-14 01:27:19 +01:00
mrdudz
683a2e7d28 add a simple example program that uses floats :) 2022-11-14 01:25:25 +01:00
mrdudz
78df8e8c3f make cbm float library available 2022-11-14 01:22:03 +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
80d6c71b23 add missing float conversion 2022-11-13 18:54:29 +01:00
mrdudz
e77bf71ab9 fix g_div patch, hopefully checks works again 2022-11-13 17:50:40 +01:00
mrdudz
c427fb36b2 don't attempt strength reduction on divisions with floats 2022-11-13 15:21:15 +01:00
mrdudz
797aba5c07 dont do strength reduction on floats :) 2022-11-13 15:12:01 +01:00
mrdudz
1494a1ac1c Merge branch 'master' into fptest
# Conflicts:
#	src/cc65/codegen.c
2022-11-13 14:07:44 +01:00
mrdudz
bfd53911f6 adapt codegen comments from #1917 2022-11-13 13:41:41 +01:00
Bob Andrews
88b926e914
Merge pull request #1917 from acqn/CodeGen
[cc65] Clearer comments on and usage of code generator flags with type conversions in the primary register
2022-11-13 12:51:17 +01:00
acqn
dadca9e033 Fixed bitwise-shift in PP. 2022-11-13 16:32:41 +08:00
acqn
3bcfa735cb clearer comments on and usage of code generator flags with type conversions in the primary register. 2022-11-13 14:57:48 +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
mrdudz
5c5653027a wrap asm log output into a macro 2022-11-12 18:44:28 +01:00
mrdudz
18dd61da42 another try of silencing 2022-11-12 18:24:31 +01:00
mrdudz
a2d3e87c75 use conversion functions, should shut up windows compile 2022-11-12 18:11:28 +01:00
mrdudz
2583db3abb fix passing of value to push float 2022-11-12 18:04:23 +01:00
acqn
7b436e9823 Added tests for #1895 fix. 2022-11-13 01:01:24 +08:00
mrdudz
2099e56263 fall through comment 2022-11-12 17:52:16 +01:00
mrdudz
69b3659924 fix conversion of float to chars 2022-11-12 17:41:52 +01:00
acqn
9d693d2c80 Warnings instead of errors for division-by-zero/modulo-with-zero in evaluation. 2022-11-12 22:13:56 +08:00
acqn
cc177208b4 Added tests for diagnostics in unevaluated context. 2022-11-12 21:05:01 +08:00
acqn
73897aface Additional check for out of ranges of bit-fields in bitwise-shifts. 2022-11-12 12:36:22 +08:00
acqn
75be73cc8d Added utility functions to acquire bit width of types. 2022-11-12 12:32:27 +08:00
acqn
d0c9b2de99 Added basic shift count check for <<= and >>= operations. 2022-11-12 12:34:16 +08:00
acqn
2c3ca15d90 Fixed marking unevaluated subexpressions for conditional operator. 2022-11-12 12:32:27 +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
89f8f51c32 Merge branch 'master' into fptest 2022-11-11 22:06:21 +01:00
Bob Andrews
6924d44564
Merge pull request #1911 from acqn/TypeFix
[cc65] Organized type-related stuff better
2022-11-11 22:05:45 +01:00
mrdudz
9cdd74e2f1 Merge branch 'master' into fptest 2022-11-11 21:45:04 +01:00