* gas/m68hc11/m68hc11.exp: Execute the new tests.
[deliverable/binutils-gdb.git] / gas / testsuite / gas / m68hc11 / bug-1825.d
CommitLineData
27bdea3d
SC
1#objdump: -S -r
2#as: -m68hc12 -gdwarf2
3#name: 68HC12 PC-relative addressing modes (bug-1825)
4
5.*: file format elf32\-m68hc12
6
7Disassembly of section \.text:
8
90+ <_main>:
10;;;
11 \.sect \.text
12 \.globl _main
13_main:
14 nop
15 0: a7 nop
5da0c277 16 ldx L1,pc ; Assemble to 5\-bit > 0 offset
27bdea3d
SC
17 1: ee c2 ldx 2,PC \{5 <L1>\}
18 bra L2
19 3: 20 02 bra 7 <L2>
20 3: R_M68HC12_RL_JUMP \*ABS\*
21
220+5 <L1>:
23 5: aa bb oraa 5,SP\-
24
250+7 <L2>:
26L1:
27 .dc.w 0xaabb
28L2:
5da0c277 29 subd L1,pc ; Assemble to 5\-bit < 0 offset
27bdea3d
SC
30 7: a3 dc subd \-4,PC \{5 <L1>\}
31
320+9 <L3>:
33 9: a7 nop
34 a: a7 nop
35 b: a7 nop
36 c: a7 nop
37 d: a7 nop
38 e: a7 nop
39 f: a7 nop
40 10: a7 nop
41 11: a7 nop
42 12: a7 nop
43 13: a7 nop
44 14: a7 nop
45 15: a7 nop
46 16: a7 nop
47L3:
48 .ds.b 14, 0xA7
5da0c277 49 ldab L3,pc ; 5\-bit < 0 offset
27bdea3d 50 17: e6 d0 ldab \-16,PC \{9 <L3>\}
5da0c277
SC
51 ldab L4,pc ; 5\-bit > 0 offset
52 19: e6 cf ldab 15,PC \{2a <L4>\}
27bdea3d
SC
53 ...
54
5da0c277 550+2a <L4>:
27bdea3d 56 ...
5da0c277 57 .skip 15
27bdea3d
SC
58L4:
59 .skip 128
5da0c277
SC
60 subd L4,pc ; 9\-bit < 0 offset
61 aa: a3 f9 7d subd \-131,PC \{2a <L4>\}
62 addd L5,pc ; 9\-bit > 0 offset
63 ad: e3 f8 80 addd 128,PC \{130 <L5>\}
27bdea3d
SC
64 ...
65
5da0c277 660+130 <L5>:
27bdea3d 67 ...
5da0c277 68 22c: 00 bgnd
27bdea3d
SC
69 .skip 128
70L5:
5da0c277
SC
71 .skip 256\-3
72 orab L5,pc ; 9 bit < 0 offset \(min value\)
73 22d: ea f9 00 orab \-256,PC \{130 <L5>\}
74 oraa L6,pc ; 9 bit > 0 offset \(max value\)
75 230: aa f8 ff oraa 255,PC \{332 <L6>\}
27bdea3d
SC
76 ...
77
5da0c277
SC
780+332 <L6>:
79 ...
80 42e: 00 bgnd
81 42f: 00 bgnd
27bdea3d
SC
82 .skip 255
83L6:
5da0c277
SC
84 .skip 256\-2
85 orab L6,pc ; 16 bit < 0 offset
86 430: ea fa fe fe orab \-258,PC \{332 <L6>\}
27bdea3d 87 anda _main,pc ; 16 bit < 0 offset
5da0c277 88 434: a4 fa fb c8 anda \-1080,PC \{0 <_main>\}
27bdea3d 89 andb L7,pc
5da0c277 90 438: e4 fa 01 00 andb 256,PC \{53c <L7>\}
27bdea3d
SC
91 ...
92
5da0c277 930+53c <L7>:
27bdea3d
SC
94 .skip 256
95L7:
96 stab external,pc ; External 16\-bit PCREL
5da0c277
SC
97 53c: 6b fa fa c0 stab \-1344,PC \{0 <_main>\}
98 53e: R_M68HC12_PCREL_16 external
27bdea3d 99 ldd _table,pc
5da0c277 100 540: ec cf ldd 15,PC \{551 <_table>\}
27bdea3d 101 addd _table\+2,pc
5da0c277 102 542: e3 cf addd 15,PC \{553 <_table\+0x2>\}
27bdea3d 103 subd _table\+4,pc
5da0c277 104 544: a3 cf subd 15,PC \{555 <_table\+0x4>\}
27bdea3d 105 addd _table\+8,pc
5da0c277 106 546: e3 f8 10 addd 16,PC \{559 <_table\+0x8>\}
27bdea3d 107 addd _table\+12,pc
5da0c277 108 549: e3 f8 11 addd 17,PC \{55d <_table\+0xc>\}
27bdea3d 109 addd _table\+16,pc
abdf8f87 110 54c: e3 f8 12 addd 18,PC \{561 <_table\+0x10>\}
27bdea3d 111 rts
5da0c277 112 54f: 3d rts
27bdea3d 113 nop
5da0c277 114 550: a7 nop
27bdea3d 115
5da0c277
SC
1160+551 <_table>:
117 ...
abdf8f87
SC
118_table:
119 .ds.b 16,0
120 leax _table,sp ; 16\-bit absolute reloc
121 561: 1a f2 00 00 leax 0,SP
122 563: R_M68HC12_16 _table
123 leay _table,x
124 565: 19 e2 00 00 leay 0,X
125 567: R_M68HC12_16 _table
126 leax _table,y
127 569: 1a ea 00 00 leax 0,Y
128 56b: R_M68HC12_16 _table
This page took 0.057836 seconds and 4 git commands to generate.