1
0
mirror of https://github.com/cc65/cc65.git synced 2024-11-19 06:31:31 +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
add2.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
add3.c
add3a.c Removed executable bit. 2020-07-12 23:11:43 +02:00
add4.c
add5.c
and1.c
and2.c
anon-struct1.c
anon-struct2.c
assign-use1.c
atoi-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
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 change "the cc65 authors" to "The cc65 Authors" as per jmrs request 2020-08-18 22:41:42 +02:00
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 Fix for multiplication optimization issue #367 2019-04-02 16:34:22 +02:00
bug735.c
bug830.c Fix for #830 supplied by UvB 2019-04-25 15:19:53 +02:00
bug895.c bug895 test: more specific description comment 2019-05-27 10:03:25 +02:00
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 Add enum size test case for #1050 2020-08-02 01:18:28 +02:00
bug1071.c test related to issue #1071 2020-07-09 15:57:51 +02:00
bug1075.c move test for issue #1075 to test/var 2020-07-21 20:02:51 +02:00
bug1077.c move test for issue #1077 to test/val 2020-07-22 15:12:02 +02:00
bug1094.c Fix ICE for bit-fields with typedef 2020-10-03 15:04:31 +02:00
bug1095.c change "the cc65 authors" to "The cc65 Authors" as per jmrs request 2020-08-18 22:41:42 +02:00
bug1108.c Made a regression test increment a variable after, instead of before, using it. 2020-07-20 17:16:11 -04:00
bug1139.c Handle bit-field test after shift/mask 2020-07-31 19:33:28 +02:00
bug1143warn.c added test related to issue #1143 2020-08-18 00:40:29 +02:00
bug1178.c added test related to issue #1178 2020-08-14 19:58:58 +02:00
bug1181.c added test related to issue #1181 2020-08-14 16:12:17 +02:00
bug1201.c added test related to issue #1201 2020-08-26 23:20:28 +02:00
bug1211-ice-move-refs-1.c CS_MergeLabels: Keep labels referenced by data 2020-10-08 12:11:03 +02:00
bug1221.c test related to issue #1221 2020-09-24 00:08:36 +02:00
bug1222.c test related to issue #1222 2020-09-24 12:23:18 +02:00
bug1244.c test related to issue #1244 2020-09-23 23:57:36 +02:00
bug1245.c test related to issue #1245 2020-09-23 23:57:25 +02:00
bug1267.c Fix ICE for bit-fields with typedef 2020-10-03 15:04:31 +02:00
call1.c
casttochar.c Removed executable bit. 2020-07-12 23:11:43 +02:00
cc65091020.c
cc65141002.c Removed executable bit. 2020-07-12 23:11:43 +02:00
cc65141011.c Removed executable bit. 2020-07-12 23:11:43 +02:00
cc65141022.c Removed executable bit. 2020-07-12 23:11:43 +02:00
cc65150311.c
char-bitfield.c Allow char bit-fields 2020-09-08 14:24:04 +02:00
char-promote.c Add tests for u8 op s16_const 2020-11-09 21:20:16 +01:00
common.h
compare1.c
compare2.c
compare3.c
compare4.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
compare5.c
compare6.c
compare7.c
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
cq9.c
cq22.c
cq25.c
cq26.c
cq61.c
cq71.c
cq72.c
cq81.c
cq84.c
cq85.c
cq86.c
cq88.c
cq241.c
cq243.c
cq244.c
cq626.c
cq714.c
cq714b.c
cq715.c
cq757.c
cq7813.c
div-char-char.c tests for issue #169 2020-07-09 16:05:57 +02:00
div-common.h tests for issue #169 2020-07-09 16:05:57 +02:00
div-int-int.c tests for issue #169 2020-07-09 16:05:57 +02:00
div-long-long.c tests for issue #169 2020-07-09 16:05:57 +02:00
duffs-device.c
enum-bitfield.c Allow char bit-fields 2020-09-08 14:24:04 +02:00
fields.c move (now working) tests to test/val 2020-07-21 19:24:39 +02:00
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 Changes resulting from 2nd code review 2020-02-03 20:45:09 +01:00
lib_common_memmove.c
lib_common_mulxx.c
lib_common_strcat.c
lib_common_strchr.c
lib_common_strcspn.c
lib_common_strncat.c
lib_common_strol.c
lib_common_strrchr.c
lib_common_strspn.c
lib_common_strtoul.c
lz4.c
Makefile Avoid cl65 in tests. 2020-08-26 20:39:34 +02:00
mult1.c
nestfor.c
or1.c
plain-int-bitfield.c change "the cc65 authors" to "The cc65 Authors" as per jmrs request 2020-08-18 22:41:42 +02:00
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 added various tests related to bug #1045 2020-06-23 00:46:12 +02:00
postdec-16-16.c added various tests related to bug #1045 2020-06-23 00:46:12 +02:00
postinc-8-8.c added various tests related to bug #1045 2020-06-23 00:46:12 +02:00
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 added various tests related to bug #1045 2020-06-23 00:46:12 +02:00
postincdec.c
pptest1.c reworked pptest1/4/5 into executable tests and moved to test/val 2020-07-21 14:58:15 +02:00
pptest3.c reworked pptest3 into an exectutable test and moved to test/val 2020-07-21 15:30:35 +02:00
pptest4.c reworked pptest1/4/5 into executable tests and moved to test/val 2020-07-21 14:58:15 +02:00
pptest5.c reworked pptest1/4/5 into executable tests and moved to test/val 2020-07-21 14:58:15 +02:00
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 added tests related to pr #1110 2020-07-22 15:52:04 +02:00
predec-8-8.c added various tests related to bug #1045 2020-06-23 00:46:12 +02:00
predec-8-16.c added various tests related to bug #1045 2020-06-23 00:46:12 +02:00
predec-16-8.c added various tests related to bug #1045 2020-06-23 00:46:12 +02:00
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 added various tests related to bug #1045 2020-06-23 00:46:12 +02:00
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
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 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
rotate6.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
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 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
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 Improved test case for Issue #191. 2020-08-14 18:33:54 +02:00
static-fwd-decl.c
staticassert.c change "the cc65 authors" to "The cc65 Authors" as per jmrs request 2020-08-18 22:41:42 +02:00
strncmp-test.c some tweaks to the moved tests to make them more suitable for automatic testing 2020-07-13 21:26:07 +02:00
strnicmp-test.c some tweaks to the moved tests to make them more suitable for automatic testing 2020-07-13 21:26:07 +02:00
strpbrk-test.c some tweaks to the moved tests to make them more suitable for automatic testing 2020-07-13 21:26:07 +02:00
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 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
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
time-test.c some tweaks to the moved tests to make them more suitable for automatic testing 2020-07-13 21:26:07 +02:00
time.c
trampoline-params.c Changed empty parameter lists into (void) lists on functions with asm() statements. 2019-07-16 13:16:02 -04:00
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 Changed empty parameter lists into (void) lists on functions with asm() statements. 2019-07-16 13:16:02 -04:00
unittest.h
void-size1.c
while.c
xor.c