1
0
mirror of https://github.com/cc65/cc65.git synced 2024-10-04 03:56:13 +00:00
cc65/test/val
Jesse Rosenstock 93145246fd Add tests for u8 op s16_const
Test expressions like `unsigned char x = ...; ... = x / 2;`
These use `int` constants with values representable by
`unsigned int` / `unsigned char`, so using unsigned codegen should
be possible.

Additional tests for #1308.  These are things we want to generate better
code for, so add tests that the behavior doesn't change.
2020-11-09 21:20:16 +01:00
..
add1.c added tests as prepared by oliver 2014-09-25 21:38:34 +02:00
add2.c
add3.c
add3a.c
add4.c
add5.c
and1.c
and2.c
anon-struct1.c
anon-struct2.c Made a C union declaration know the sizes of anonymous struct/union members when it determines its size. 2018-05-13 18:54:45 -04:00
assign-use1.c
atoi-test.c
binlit.c binlit: Add a few random leading zeros 2019-07-20 17:21:42 +02:00
bitfield-union.c Add test of union of bit-field from mailing list 2020-08-17 09:54:31 +02:00
bitfield.c
bool1.c
bool3.c
bss-name-decl.c
bss-name.c
bug170.c Use C89 semantics for integer conversions 2020-08-15 19:14:31 +02:00
bug250.c Moved bug250.c to test/val as it is fixed. 2020-08-26 09:40:32 +08:00
bug327.c Fixed Issue #327. 2020-08-22 13:44:18 +02:00
bug367.c
bug735.c
bug830.c
bug895.c
bug975.c move (now working) tests to test/val 2020-07-21 19:24:39 +02:00
bug1047.c Allow char bit-fields 2020-09-08 14:24:04 +02:00
bug1050.c
bug1071.c test related to issue #1071 2020-07-09 15:57:51 +02:00
bug1075.c
bug1077.c move test for issue #1077 to test/val 2020-07-22 15:12:02 +02:00
bug1094.c
bug1095.c
bug1108.c
bug1139.c
bug1143warn.c
bug1178.c
bug1181.c
bug1201.c
bug1211-ice-move-refs-1.c CS_MergeLabels: Keep labels referenced by data 2020-10-08 12:11:03 +02:00
bug1221.c
bug1222.c
bug1244.c
bug1245.c
bug1267.c
call1.c added tests as prepared by oliver 2014-09-25 21:38:34 +02:00
casttochar.c
cc65091020.c
cc65141002.c
cc65141011.c
cc65141022.c
cc65150311.c patch from Uz that makes some illegal operations on pointers error out 2015-07-10 14:27:49 +02:00
char-bitfield.c
char-promote.c Add tests for u8 op s16_const 2020-11-09 21:20:16 +01:00
common.h added makefile and common include 2014-11-22 17:02:46 +01:00
compare1.c
compare2.c
compare3.c added tests as prepared by oliver 2014-09-25 21:38:34 +02:00
compare4.c
compare5.c remote TABs in doc/ and test/ 2019-02-12 22:50:49 +01:00
compare6.c added tests as prepared by oliver 2014-09-25 21:38:34 +02:00
compare7.c added tests as prepared by oliver 2014-09-25 21:38:34 +02:00
compare8.c
compare9.c
compare10.c
computedgoto.c again, some TABs slipped into the code... 2019-04-30 18:21:13 +02:00
cq4.c remote TABs in doc/ and test/ 2019-02-12 22:50:49 +01:00
cq9.c
cq22.c remote TABs in doc/ and test/ 2019-02-12 22:50:49 +01:00
cq25.c
cq26.c
cq61.c
cq71.c
cq72.c
cq81.c remote TABs in doc/ and test/ 2019-02-12 22:50:49 +01:00
cq84.c
cq85.c remote TABs in doc/ and test/ 2019-02-12 22:50:49 +01:00
cq86.c
cq88.c
cq241.c remote TABs in doc/ and test/ 2019-02-12 22:50:49 +01:00
cq243.c
cq244.c
cq626.c remote TABs in doc/ and test/ 2019-02-12 22:50:49 +01:00
cq714.c
cq714b.c
cq715.c
cq757.c
cq7813.c
div-char-char.c
div-common.h
div-int-int.c
div-long-long.c
duffs-device.c Added Duff's Device to tests. 2016-08-15 11:26:03 -07:00
enum-bitfield.c
fields.c
for.c
jmp-callax.c again, some TABs slipped into the code... 2019-04-30 18:21:13 +02:00
lib_common_atoi.c
lib_common_ctype.c
lib_common_memmove.c Removed workaround. 2017-04-04 15:45:24 +02:00
lib_common_mulxx.c
lib_common_strcat.c
lib_common_strchr.c
lib_common_strcspn.c
lib_common_strncat.c Removed workaround. 2017-04-04 15:52:37 +02:00
lib_common_strol.c
lib_common_strrchr.c
lib_common_strspn.c Removed workaround. 2017-04-04 15:53:14 +02:00
lib_common_strtoul.c Added further optimizations and unit tests. 2017-03-05 02:09:12 +01:00
lz4.c
Makefile
mult1.c
nestfor.c remote TABs in doc/ and test/ 2019-02-12 22:50:49 +01:00
or1.c
plain-int-bitfield.c
pointed-array.c
pointer1.c
postdec-8-8.c added various tests related to bug #1045 2020-06-23 00:46:12 +02:00
postdec-8-16.c added various tests related to bug #1045 2020-06-23 00:46:12 +02:00
postdec-16-8.c
postdec-16-16.c
postinc-8-8.c
postinc-8-16.c added various tests related to bug #1045 2020-06-23 00:46:12 +02:00
postinc-16-8.c added various tests related to bug #1045 2020-06-23 00:46:12 +02:00
postinc-16-16.c
postincdec.c
pptest1.c
pptest3.c reworked pptest3 into an exectutable test and moved to test/val 2020-07-21 15:30:35 +02:00
pptest4.c
pptest5.c
pr1102.c added a test related to pr#1102 - we can now return structs by value when they are max. 4 bytes 2020-07-21 21:04:41 +02:00
pr1110a.c
predec-8-8.c
predec-8-16.c
predec-16-8.c
predec-16-16.c added various tests related to bug #1045 2020-06-23 00:46:12 +02:00
preinc-8-8.c added various tests related to bug #1045 2020-06-23 00:46:12 +02:00
preinc-8-16.c added various tests related to bug #1045 2020-06-23 00:46:12 +02:00
preinc-16-8.c
preinc-16-16.c added various tests related to bug #1045 2020-06-23 00:46:12 +02:00
ptrfunc.c remove ifdef magic 2020-07-22 00:21:23 +02:00
rand.c rand() use XOR to break up unwanted pair correlation (#1107) 2020-07-21 23:38:18 +02:00
return-struct.c move/fix bug264.c as suggested in issue #1122 2020-08-19 22:25:18 +02:00
rotate1.c added tests as prepared by oliver 2014-09-25 21:38:34 +02:00
rotate2.c
rotate3.c use uint16_t instead of magic ifdefs, leaving support for bit type in there incase we support it some day 2020-07-22 00:09:48 +02:00
rotate4.c use uint16_t instead of magic ifdefs, leaving support for bit type in there incase we support it some day 2020-07-22 00:09:48 +02:00
rotate5.c
rotate6.c
rotate7.c use uint16_t instead of magic ifdefs, leaving support for bit type in there incase we support it some day 2020-07-22 00:09:48 +02:00
rotate8.c
shift-test.c
signal-test.c some tweaks to the moved tests to make them more suitable for automatic testing 2020-07-13 21:26:07 +02:00
snprintf-test.c some tweaks to the moved tests to make them more suitable for automatic testing 2020-07-13 21:26:07 +02:00
static-1.c
static-fwd-decl.c
staticassert.c
strncmp-test.c
strnicmp-test.c
strpbrk-test.c
strtol-test.c move a bunch of tests from testcode/lib to test/val (and a failing one to test/todo) 2020-07-13 21:25:13 +02:00
strtoul-test.c
struct1.c
sub1.c use uint16_t instead of magic ifdefs, leaving support for bit type in there incase we support it some day 2020-07-22 00:09:48 +02:00
sub2.c
switch1.c
switch2.c Updated switch statement comments. 2016-08-19 20:21:10 -07:00
time-test.c
time.c
trampoline-params.c
trampoline-varargs.c Changed empty parameter lists into (void) lists on functions with asm() statements. 2019-07-16 13:16:02 -04:00
trampoline.c
unittest.h
void-size1.c
while.c
xor.c