Commit | Line | Data |
---|---|---|
68a581b8 SC |
1 | #objdump: -S |
2 | #as: -m68hc11 -gdwarf2 | |
3 | #name: Dwarf2 test on lbranch.s | |
4 | #source: lbranch.s | |
5 | ||
6 | # Test handling of basic instructions. | |
7 | ||
8 | .*: +file format elf32\-m68hc11 | |
9 | ||
10 | Disassembly of section .text: | |
11 | ||
cd2b2939 | 12 | 0+00 <_rcall>: |
68a581b8 SC |
13 | .globl _rcall |
14 | .globl _start | |
15 | _start: | |
16 | _rcall: | |
cd2b2939 SC |
17 | ldaa #0x10 ;86 10 |
18 | 0: 86 10 ldaa #16 | |
68a581b8 | 19 | jbra Lend ; Must be switched to a jmp |
cd2b2939 SC |
20 | 2: 7e 00 00 jmp 0 <_rcall> |
21 | jbsr toto ; -> to a jsr | |
22 | 5: bd 00 00 jsr 0 <_rcall> | |
23 | jbne toto ; -> to a beq\+jmp | |
68a581b8 | 24 | 8: 27 03 beq d <_rcall\+0xd> |
cd2b2939 | 25 | a: 7e 00 00 jmp 0 <_rcall> |
68a581b8 SC |
26 | jbeq toto ; -> to a bne\+jmp |
27 | d: 26 03 bne 12 <_rcall\+0x12> | |
cd2b2939 | 28 | f: 7e 00 00 jmp 0 <_rcall> |
68a581b8 SC |
29 | jbcs toto ; -> to a bcc\+jmp |
30 | 12: 24 03 bcc 17 <_rcall\+0x17> | |
cd2b2939 | 31 | 14: 7e 00 00 jmp 0 <_rcall> |
68a581b8 SC |
32 | jbcc toto ; -> to a bcs\+jmp |
33 | 17: 25 03 bcs 1c <_rcall\+0x1c> | |
cd2b2939 | 34 | 19: 7e 00 00 jmp 0 <_rcall> |
68a581b8 SC |
35 | xgdx |
36 | 1c: 8f xgdx | |
37 | xgdx | |
38 | 1d: 8f xgdx | |
39 | beq bidule ; -> to a bne\+jmp | |
40 | 1e: 26 03 bne 23 <_rcall\+0x23> | |
cd2b2939 | 41 | 20: 7e 00 00 jmp 0 <_rcall> |
68a581b8 SC |
42 | bcs bidule ; -> to a bcc\+jmp |
43 | 23: 24 03 bcc 28 <_rcall\+0x28> | |
cd2b2939 | 44 | 25: 7e 00 00 jmp 0 <_rcall> |
68a581b8 SC |
45 | bcc bidule ; -> to a bcs\+jmp |
46 | 28: 25 03 bcs 2d <_rcall\+0x2d> | |
cd2b2939 | 47 | 2a: 7e 00 00 jmp 0 <_rcall> |
68a581b8 SC |
48 | xgdx |
49 | 2d: 8f xgdx | |
50 | jbra 200 | |
51 | 2e: 7e 00 c8 jmp c8 <_rcall\+0xc8> | |
52 | jbsr 1923 | |
cd2b2939 | 53 | 31: bd 07 83 jsr 783 <.L0\ 1\+0x602> |
68a581b8 SC |
54 | bne Lend ; -> to a beq\+jmp |
55 | 34: 27 03 beq 39 <_rcall\+0x39> | |
cd2b2939 | 56 | 36: 7e 00 00 jmp 0 <_rcall> |
68a581b8 | 57 | jbsr toto |
cd2b2939 | 58 | 39: bd 00 00 jsr 0 <_rcall> |
68a581b8 SC |
59 | jbeq toto |
60 | 3c: 26 03 bne 41 <_rcall\+0x41> | |
cd2b2939 | 61 | 3e: 7e 00 00 jmp 0 <_rcall> |
68a581b8 SC |
62 | ... |
63 | .skip 200 | |
64 | ldaa \*dir ;96 33 | |
65 | 109: 96 00 ldaa \*0 <_rcall> | |
66 | ||
67 | 0000010b <Lend>: | |
68 | Lend: | |
69 | bhi external_op | |
70 | 10b: 23 03 bls 110 <Lend\+0x5> | |
71 | 10d: 7e 00 00 jmp 0 <_rcall> | |
72 | bls external_op | |
73 | 110: 22 03 bhi 115 <Lend\+0xa> | |
74 | 112: 7e 00 00 jmp 0 <_rcall> | |
75 | bsr out | |
76 | 115: bd 00 00 jsr 0 <_rcall> | |
77 | ldx #12 | |
78 | 118: ce 00 0c ldx #c <_rcall\+0xc> | |
79 | ||
80 | 0000011b <toto>: | |
81 | toto: | |
82 | rts | |
83 | 11b: 39 rts | |
84 | ... | |
85 | ||
86 | 00000180 <bidule>: | |
87 | .skip 100 | |
88 | bidule: | |
89 | rts | |
90 | 180: 39 rts |