diff --git a/test/db/analysis/tms320.c55x+_32 b/test/db/analysis/tms320.c55x+_32 index cccc968b8d..679eb6e659 100644 --- a/test/db/analysis/tms320.c55x+_32 +++ b/test/db/analysis/tms320.c55x+_32 @@ -578,3 +578,49 @@ type: lea type: lea EOF RUN + +NAME=c55x+ analysis: pdf render - _c_strlen (loop, fwd+back bcc reflines) +FILE=bins/tms320/coff2/19_emulateme_nostd.obj +ARGS=-A +CMDS=< 0x00000059 copy *(ar0+t0b), t1 +| ,==< 0x0000005c bcc #0x000008, t1 == #0 +| |: 0x0000005f add #0x1, t0 +| |`=< 0x00000062 bcc #0x00fff2, t0 < #0x7f +\ `--> 0x00000067 ret +EOF +RUN + +NAME=c55x+ analysis: pdf render - _main (nested branches, two call refs) +FILE=bins/tms320/coff2/19_emulateme_nostd.obj +ARGS=-A +CMDS=< 0x000000dd mov #0x1, t0 +| 0x000000e0 pop t1 +\ 0x000000e2 ret +EOF +RUN diff --git a/test/db/analysis/tms320.c55x_32 b/test/db/analysis/tms320.c55x_32 index ce61080329..073abc7a70 100644 --- a/test/db/analysis/tms320.c55x_32 +++ b/test/db/analysis/tms320.c55x_32 @@ -783,3 +783,71 @@ type: mov refptr: 2 EOF RUN + +NAME=c55x analysis: pdf render - _uart_write_hex (branch + call reflines) +FILE=bins/tms320/emulateme_nostd.ccsv5.c55x.ticoff2.dbg.coff +ARGS=-A +CMDS=<= ac1, tc1 +| ,=< 0x00000135 bcc 0x29, tc1 ; fcn.000000d4+0xc8 +| | ;-- $C$DW$L$_uart_write_text$2$B: +| | ;-- $C$L1: +| | 0x00000138 mov 0x0000 << #16, ac1 +| | 0x0000013c or 0x8004, ac1, ac1 +| | 0x00000140 add ac0, ac1 +| | 0x00000142 mov ac1, xar3 +| | 0x00000144 mov 0x0000 << #16, ac1 +| | 0x00000148 or 0x8004, ac1, ac1 +| | 0x0000014c xor *ar3, ar1, ar2 +| | 0x0000014f || add ac0, ac1 +| | 0x00000151 mov ac1, xar3 +| | 0x00000153 mov ar2, *ar3 +| | 0x00000155 mov 0x0010, ac1 +| | 0x00000159 add 0x1, ac0 +| | 0x0000015b cmpu ac0 < ac1, tc1 +| ,==< 0x0000015e bcc 0xD7, tc1 +| || 0x00000161 mov 0x1, t0 + || ; CODE XREF from fcn.000000d4 @ 0x12e +.. + || ;-- $C$L2: + || ;-- $C$DW$L$_uart_write_text$2$E: +\ ||`--> 0x000001c5 || min ar0, ar6 +| || | ;-- (0x000001c9) $C$DW$L$_c_strlen$2$B: +| || | ;-- (0x000001c9) $C$L3: +| || | 0x000001c7 ~ rptcc 0x4E, t2 == 0 +| || | 0x000001ca mov 0x1, ac0 +| || | 0x000001cc call 0xFE61 ; fcn.00000030 +| || | 0x000001cf mov 0x0, t0 +| || | ;-- (0x000001d2) $C$L4: +| || | ;-- (0x000001d2) $C$DW$L$_c_strlen$2$E: +\ ||,==< 0x000001d1 ~ b 0x0D ; fcn.000000d4+0x10c +EOF +RUN