mirror of
https://github.com/mirror/tinycc.git
synced 2025-01-03 04:30:08 +08:00
7f1ab9b1e1
The existing variable 'nocode_wanted' is now used to control output of static data too. So... (nocode_wanted == 0) code and data (normal within functions) (nocode_wanted < 0) means: no code, but data (global or static data) (nocode_wanted > 0) means: no code and no data (code and data suppressed) (nocode_wanted & 0xC0000000) means: we're in declaration of static data Also: new option '-dT' to be used with -run tcc -dT -run file.c This will look in file.c for certain comment-boundaries: /*-* test-xxx: ...some description */ and then for each test below run it from memory. This way various features and error messages can be tested with one single file. See 96_nodata_wanted.c for an example. Also: tccgen.c: one more bitfield fix
153 lines
5.0 KiB
Plaintext
153 lines
5.0 KiB
Plaintext
---- TEST 1 - MS-BITFIELDS ----
|
|
bits in use : 0000001FFFFFFFFF0000007F00000FFF
|
|
bits as set : 00000007605555550000004400000333
|
|
values : 333 44 555555 06 07
|
|
align/size : 4 16
|
|
|
|
---- TEST 2 - MS-BITFIELDS ----
|
|
bits in use : 0000000000000003000000000000000F7FFFFFFFFFFFFFFF0000003F00000FFF
|
|
bits as set : 00000000000000020000000000000005123456789ABCDEF00000001E00000003
|
|
values : 03 1e 123456789abcdef0 05 fffffffffffffffe
|
|
align/size : 8 32
|
|
|
|
---- TEST 3 - MS-BITFIELDS ----
|
|
bits in use : 001F001F0000001F000003FF
|
|
bits as set : 000E000600000019000002F5
|
|
values : 15 17 19 06 0e
|
|
align/size : 4 12
|
|
|
|
---- TEST 4 - MS-BITFIELDS ----
|
|
bits in use : 0007FFFF00000027
|
|
bits as set : 00078F0F00000023
|
|
values : 03 ffffffff 0f fffffff8 78
|
|
align/size : 4 8
|
|
|
|
---- TEST 5 - MS-BITFIELDS ----
|
|
bits in use : 00000000FFFF00FF0000003FFFFFFFFF000000003FFFFFFF00001FFFFFFFFFFF
|
|
bits as set : 0000000000770044000000000000007800000000300000000000000123456789
|
|
values : 0000000123456789 fffffffff0000000 0000000000000078 44 77
|
|
align/size : 8 32
|
|
|
|
---- TEST 6 - MS-BITFIELDS ----
|
|
bits in use : 00000000000000700000FFFF000000FFFFFFFFFF
|
|
bits as set : 000000000000003000002001000000FD00000004
|
|
values : 01 02 03 04 fffffffd
|
|
align/size : 4 20
|
|
|
|
|
|
|
|
---- TEST 1 - MS-BITFIELDS - PACKED ----
|
|
bits in use : 0000001FFFFFFFFF7F00000FFF
|
|
bits as set : 00000007605555554400000333
|
|
values : 333 44 555555 06 07
|
|
align/size : 1 13
|
|
|
|
---- TEST 2 - MS-BITFIELDS - PACKED ----
|
|
bits in use : 00000000000000030F7FFFFFFFFFFFFFFF3F00000FFF
|
|
bits as set : 000000000000000205123456789ABCDEF01E00000003
|
|
values : 03 1e 123456789abcdef0 05 fffffffffffffffe
|
|
align/size : 1 22
|
|
|
|
---- TEST 3 - MS-BITFIELDS - PACKED ----
|
|
bits in use : 001F1F0000001F000003FF
|
|
bits as set : 000E0600000019000002F5
|
|
values : 15 17 19 06 0e
|
|
align/size : 1 11
|
|
|
|
---- TEST 4 - MS-BITFIELDS - PACKED ----
|
|
bits in use : 0007FFFF00000027
|
|
bits as set : 00078F0F00000023
|
|
values : 03 ffffffff 0f fffffff8 78
|
|
align/size : 1 8
|
|
|
|
---- TEST 5 - MS-BITFIELDS - PACKED ----
|
|
bits in use : FFFFFF0000003FFFFFFFFF000000003FFFFFFF00001FFFFFFFFFFF
|
|
bits as set : 007744000000000000007800000000300000000000000123456789
|
|
values : 0000000123456789 fffffffff0000000 0000000000000078 44 77
|
|
align/size : 1 27
|
|
|
|
---- TEST 6 - MS-BITFIELDS - PACKED ----
|
|
bits in use : 00000000700000FFFFFFFFFFFFFF
|
|
bits as set : 000000003000002001FD00000004
|
|
values : 01 02 03 04 fffffffd
|
|
align/size : 1 14
|
|
|
|
|
|
|
|
---- TEST 1 - MS-BITFIELDS - WITH ALIGN ----
|
|
bits in use : 0000001FFFFFFFFF0000007F00000FFF
|
|
bits as set : 00000007605555550000004400000333
|
|
values : 333 44 555555 06 07
|
|
align/size : 16 16
|
|
|
|
---- TEST 2 - MS-BITFIELDS - WITH ALIGN ----
|
|
bits in use : 0000000000000003000000000000000F7FFFFFFFFFFFFFFF0000003F00000FFF
|
|
bits as set : 00000000000000020000000000000005123456789ABCDEF00000001E00000003
|
|
values : 03 1e 123456789abcdef0 05 fffffffffffffffe
|
|
align/size : 16 32
|
|
|
|
---- TEST 3 - MS-BITFIELDS - WITH ALIGN ----
|
|
bits in use : 0000000000000000000000000000001F000000000000001F0000001F000003FF
|
|
bits as set : 0000000000000000000000000000000E000000000000000600000019000002F5
|
|
values : 15 17 19 06 0e
|
|
align/size : 16 32
|
|
|
|
---- TEST 4 - MS-BITFIELDS - WITH ALIGN ----
|
|
bits in use : 0007FFFF00000027
|
|
bits as set : 00078F0F00000023
|
|
values : 03 ffffffff 0f fffffff8 78
|
|
align/size : 4 8
|
|
|
|
---- TEST 5 - MS-BITFIELDS - WITH ALIGN ----
|
|
bits in use : 00000000FFFF00FF0000003FFFFFFFFF000000003FFFFFFF00001FFFFFFFFFFF
|
|
bits as set : 0000000000770044000000000000007800000000300000000000000123456789
|
|
values : 0000000123456789 fffffffff0000000 0000000000000078 44 77
|
|
align/size : 8 32
|
|
|
|
---- TEST 6 - MS-BITFIELDS - WITH ALIGN ----
|
|
bits in use : 00000000000000700000FFFF000000FFFFFFFFFF
|
|
bits as set : 000000000000003000002001000000FD00000004
|
|
values : 01 02 03 04 fffffffd
|
|
align/size : 4 20
|
|
|
|
|
|
|
|
---- TEST 1 - MS-BITFIELDS - PACKED - WITH ALIGN ----
|
|
bits in use : 0000000000001FFFFFFFFF7F00000FFF
|
|
bits as set : 00000000000007605555554400000333
|
|
values : 333 44 555555 06 07
|
|
align/size : 16 16
|
|
|
|
---- TEST 2 - MS-BITFIELDS - PACKED - WITH ALIGN ----
|
|
bits in use : 00000000000000030F0000007FFFFFFFFFFFFFFF3F00000FFF
|
|
bits as set : 000000000000000205000000123456789ABCDEF01E00000003
|
|
values : 03 1e 123456789abcdef0 05 fffffffffffffffe
|
|
align/size : 16 25
|
|
|
|
---- TEST 3 - MS-BITFIELDS - PACKED - WITH ALIGN ----
|
|
bits in use : 001F000000000000001F0000001F000003FF
|
|
bits as set : 000E000000000000000600000019000002F5
|
|
values : 15 17 19 06 0e
|
|
align/size : 16 18
|
|
|
|
---- TEST 4 - MS-BITFIELDS - PACKED - WITH ALIGN ----
|
|
bits in use : 0007FFFF00000027
|
|
bits as set : 00078F0F00000023
|
|
values : 03 ffffffff 0f fffffff8 78
|
|
align/size : 1 8
|
|
|
|
---- TEST 5 - MS-BITFIELDS - PACKED - WITH ALIGN ----
|
|
bits in use : FFFFFF0000003FFFFFFFFF000000003FFFFFFF00001FFFFFFFFFFF
|
|
bits as set : 007744000000000000007800000000300000000000000123456789
|
|
values : 0000000123456789 fffffffff0000000 0000000000000078 44 77
|
|
align/size : 1 27
|
|
|
|
---- TEST 6 - MS-BITFIELDS - PACKED - WITH ALIGN ----
|
|
bits in use : 00000000700000FFFFFFFFFFFFFF
|
|
bits as set : 000000003000002001FD00000004
|
|
values : 01 02 03 04 fffffffd
|
|
align/size : 1 14
|
|
|
|
|
|
|