aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorStephane Carrez <stcarrez@nerim.fr>2002-08-13 22:45:22 +0000
committerStephane Carrez <stcarrez@nerim.fr>2002-08-13 22:45:22 +0000
commitcd2b29395d7881d7e8e8e8f07eeb52c380d1bb98 (patch)
tree0d91d31890bf85be8e8b5b797b22d02616aedd8e /gas
parente371935fea357fda4aff68fadadf3f7ecbb9672a (diff)
downloadgdb-cd2b29395d7881d7e8e8e8f07eeb52c380d1bb98.zip
gdb-cd2b29395d7881d7e8e8e8f07eeb52c380d1bb98.tar.gz
gdb-cd2b29395d7881d7e8e8e8f07eeb52c380d1bb98.tar.bz2
* gas/m68hc11/all.exp: Run the new test.
* gas/m68hc11/insns12.s: New file to test specific 68HC12 insns. * gas/m68hc11/insns12.d: New file. * gas/m68hc11/branchs12.s: New test. * gas/m68hc11/branchs12.d: New test. * gas/m68hc11/all_insns.d: Dump the relocs to verify that they are against symbols and not sections (for linker relaxation). * gas/m68hc11/insns-dwarf2.d: Likewise. * gas/m68hc11/insns.d: Likewise. * gas/m68hc11/lbranch.d: Likewise. * gas/m68hc11/lbranch-dwarf2.d: Likewise. * gas/m68hc11/opers12.d: Likewise. * gas/m68hc11/opers12-dwarf2.d: Likewise.
Diffstat (limited to 'gas')
-rw-r--r--gas/testsuite/ChangeLog17
-rw-r--r--gas/testsuite/gas/m68hc11/all.exp4
-rw-r--r--gas/testsuite/gas/m68hc11/all_insns.d834
-rw-r--r--gas/testsuite/gas/m68hc11/branchs12.d225
-rw-r--r--gas/testsuite/gas/m68hc11/branchs12.s111
-rw-r--r--gas/testsuite/gas/m68hc11/insns-dwarf2.d16
-rw-r--r--gas/testsuite/gas/m68hc11/insns.d93
-rw-r--r--gas/testsuite/gas/m68hc11/insns12.d85
-rw-r--r--gas/testsuite/gas/m68hc11/insns12.s71
-rw-r--r--gas/testsuite/gas/m68hc11/lbranch-dwarf2.d36
-rw-r--r--gas/testsuite/gas/m68hc11/lbranch.d73
-rw-r--r--gas/testsuite/gas/m68hc11/opers12-dwarf2.d36
-rw-r--r--gas/testsuite/gas/m68hc11/opers12.d200
13 files changed, 1265 insertions, 536 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index 9248656..0c8718c 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,20 @@
+2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
+
+ * gas/m68hc11/all.exp: Run the new test.
+ * gas/m68hc11/insns12.s: New file to test specific 68HC12 insns.
+ * gas/m68hc11/insns12.d: New file.
+ * gas/m68hc11/branchs12.s: New test.
+ * gas/m68hc11/branchs12.d: New test.
+
+ * gas/m68hc11/all_insns.d: Dump the relocs to verify that they
+ are against symbols and not sections (for linker relaxation).
+ * gas/m68hc11/insns-dwarf2.d: Likewise.
+ * gas/m68hc11/insns.d: Likewise.
+ * gas/m68hc11/lbranch.d: Likewise.
+ * gas/m68hc11/lbranch-dwarf2.d: Likewise.
+ * gas/m68hc11/opers12.d: Likewise.
+ * gas/m68hc11/opers12-dwarf2.d: Likewise.
+
2002-08-12 Richard Sandiford <rsandifo@redhat.com>
* gas/mips/elf-consthilo.[sd]: New test.
diff --git a/gas/testsuite/gas/m68hc11/all.exp b/gas/testsuite/gas/m68hc11/all.exp
index 9fe5bf4..a31ec91 100644
--- a/gas/testsuite/gas/m68hc11/all.exp
+++ b/gas/testsuite/gas/m68hc11/all.exp
@@ -21,4 +21,6 @@ run_dump_test malis
# Some 68HC12 tests
run_dump_test opers12
-run_dump_test opers12-dwarf2 \ No newline at end of file
+run_dump_test opers12-dwarf2
+run_dump_test branchs12
+run_dump_test insns12
diff --git a/gas/testsuite/gas/m68hc11/all_insns.d b/gas/testsuite/gas/m68hc11/all_insns.d
index adb516c..3531b3a 100644
--- a/gas/testsuite/gas/m68hc11/all_insns.d
+++ b/gas/testsuite/gas/m68hc11/all_insns.d
@@ -1,4 +1,4 @@
-#objdump: -d --prefix-addresses
+#objdump: -d --prefix-addresses --reloc
#as: -m68hc11
#name: all_insns
@@ -7,346 +7,494 @@
.*: +file format elf32\-m68hc11
Disassembly of section .text:
-0+000 <L0> aba
-0+001 <L1> abx
-0+002 <L2> aby
-0+004 <L3> adca #103
-0+006 <L4> adca \*0+000 <L0>
-0+008 <L5> adca 105,x
-0+00a <L6> adca 0+000 <L0>
-0+00d <L7> adca 81,x
-0+00f <L8> adcb #255
-0+011 <L9> adcb \*0+000 <L0>
-0+013 <L10> adcb 236,x
-0+015 <L11> adcb 0+000 <L0>
-0+018 <L12> adcb 205,x
-0+01a <L13> adda #186
-0+01c <L14> adda \*0+000 <L0>
-0+01e <L15> adda 242,x
-0+020 <L16> adda 0+000 <L0>
-0+023 <L17> adda 227,x
-0+025 <L18> addb #70
-0+027 <L19> addb \*0+000 <L0>
-0+029 <L20> addb 194,x
-0+02b <L21> addb 0+000 <L0>
-0+02e <L22> addb 248,x
-0+030 <L23> addd #0000231b <L330\+0x2034>
-0+033 <L24> addd \*0+000 <L0>
-0+035 <L25> addd 231,x
-0+037 <L26> addd 0+000 <L0>
-0+03a <L27> addd 118,x
-0+03c <L28> anda #90
-0+03e <L29> anda \*0+000 <L0>
-0+040 <L30> anda 99,x
-0+042 <L31> anda 0+000 <L0>
-0+045 <L32> anda 159,x
-0+047 <L33> andb #201
-0+049 <L34> andb \*0+000 <L0>
-0+04b <L35> andb 102,x
-0+04d <L36> andb 0+000 <L0>
-0+050 <L37> andb 13,x
-0+052 <L38> asl 183,x
-0+054 <L39> asl 0+000 <L0>
-0+057 <L40> asl 88,x
-0+059 <L41> asla
-0+05a <L42> aslb
-0+05b <L43> asld
-0+05c <L44> asr 163,x
-0+05e <L45> asr 0+000 <L0>
-0+061 <L46> asr 37,x
-0+063 <L47> asra
-0+064 <L48> asrb
-0+065 <L49> bcs 0+06a <L50>
-0+067 <L49\+0x2> jmp 0+0f3 <L93>
-0+06a <L50> bclr \*0+000 <L0> #\$00
-0+06d <L51> bclr 88,x #\$00
-0+070 <L52> bclr 94,x #\$00
-0+073 <L53> bcc 0+078 <L54>
-0+075 <L53\+0x2> jmp 0+1a8 <L171>
-0+078 <L54> bne 0+07d <L55>
-0+07a <L54\+0x2> jmp 0+1b6 <L178>
-0+07d <L55> blt 0+082 <L56>
-0+07f <L55\+0x2> jmp 0+1f5 <L205>
-0+082 <L56> ble 0+087 <L57>
-0+084 <L56\+0x2> jmp 0+1e4 <L198>
-0+087 <L57> bls 0+08c <L58>
-0+089 <L57\+0x2> jmp 0+18a <L155>
-0+08c <L58> bcs 0+091 <L59>
-0+08e <L58\+0x2> jmp 0+1bb <L180>
-0+091 <L59> bita #84
-0+093 <L60> bita \*0+000 <L0>
-0+095 <L61> bita 14,x
-0+097 <L62> bita 0+000 <L0>
-0+09a <L63> bita 116,x
-0+09c <L64> bitb #65
-0+09e <L65> bitb \*0+000 <L0>
-0+0a0 <L66> bitb 61,x
-0+0a2 <L67> bitb 0+000 <L0>
-0+0a5 <L68> bitb 135,x
-0+0a7 <L69> ble 0+11d <L112>
-0+0a9 <L70> bcc 0+0ae <L71>
-0+0ab <L70\+0x2> jmp 0+22e <L233>
-0+0ae <L71> bls 0+097 <L62>
-0+0b0 <L72> bge 0+0b5 <L73>
-0+0b2 <L72\+0x2> jmp 0+197 <L161>
-0+0b5 <L73> bmi 0+09e <L65>
-0+0b7 <L74> beq 0+0bc <L75>
-0+0b9 <L74\+0x2> jmp 0+220 <L225>
-0+0bc <L75> bmi 0+0c1 <L76>
-0+0be <L75\+0x2> jmp 0+24e <L252>
-0+0c1 <L76> bra 0+106 <L103>
-0+0c3 <L77> brclr \*0+000 <L0> #\$00 0+145 <L125\+0x2>
-0+0c7 <L78> brclr 151,x #\$00 0+127 <L115>
-0+0cb <L79> brclr 107,x #\$00 0+0de <L84\+0x1>
-0+0cf <L80> brn 0+082 <L56>
-0+0d1 <L81> brset \*0+000 <L0> #\$00 0+141 <L124>
-0+0d5 <L82> brset 176,x #\$00 0+154 <L132>
-0+0d9 <L83> brset 50,x #\$00 0+119 <L110\+0x2>
-0+0dd <L84> bset \*0+000 <L0> #\$00
-0+0e0 <L85> bset 24,x #\$00
-0+0e3 <L86> bset 92,x #\$00
-0+0e6 <L87> jsr 0+037 <L26>
-0+0e9 <L88> bvs 0+0ee <L89>
-0+0eb <L88\+0x2> jmp 0+253 <L254>
-0+0ee <L89> bvs 0+0a2 <L67>
-0+0f0 <L90> cba
-0+0f1 <L91> clc
-0+0f2 <L92> cli
-0+0f3 <L93> clr 251,x
-0+0f5 <L94> clr 0+000 <L0>
-0+0f8 <L95> clr 170,x
-0+0fa <L96> clra
-0+0fb <L97> clrb
-0+0fc <L98> clv
-0+0fd <L99> cmpa #58
-0+0ff <L100> cmpa \*0+000 <L0>
-0+101 <L101> cmpa 41,x
-0+103 <L102> cmpa 0+000 <L0>
-0+106 <L103> cmpa 230,x
-0+108 <L104> cmpb #5
-0+10a <L105> cmpb \*0+000 <L0>
-0+10c <L106> cmpb 124,x
-0+10e <L107> cmpb 0+000 <L0>
-0+111 <L108> cmpb 117,x
-0+113 <L109> cpd #0+fd8 <L330\+0xcf1>
-0+117 <L110> cpd \*0+000 <L0>
-0+11a <L111> cpd 97,x
-0+11d <L112> cpd 0+000 <L0>
-0+121 <L113> cpd 249,x
-0+124 <L114> cpx #0000af5c <L330\+0xac75>
-0+127 <L115> cpx \*0+000 <L0>
-0+129 <L116> cpx 168,x
-0+12b <L117> cpx 0+000 <L0>
-0+12e <L118> cpx 15,x
-0+130 <L119> cpy #00004095 <L330\+0x3dae>
-0+134 <L120> cpy \*0+000 <L0>
-0+137 <L121> cpy 235,x
-0+13a <L122> cpy 0+000 <L0>
-0+13e <L123> cpy 179,x
-0+141 <L124> com 5,x
-0+143 <L125> com 0+000 <L0>
-0+146 <L126> com 247,x
-0+148 <L127> coma
-0+149 <L128> comb
-0+14a <L129> cpd #0000bf00 <L330\+0xbc19>
-0+14e <L130> cpd \*0+000 <L0>
-0+151 <L131> cpd 161,x
-0+154 <L132> cpd 0+000 <L0>
-0+158 <L133> cpd 229,x
-0+15b <L134> cpx #00008fca <L330\+0x8ce3>
-0+15e <L135> cpx \*0+000 <L0>
-0+160 <L136> cpx 203,x
-0+162 <L137> cpx 0+000 <L0>
-0+165 <L138> cpx 72,x
-0+167 <L139> cpy #0+247 <L248>
-0+16b <L140> cpy \*0+000 <L0>
-0+16e <L141> cpy 189,x
-0+171 <L142> cpy 0+000 <L0>
-0+175 <L143> cpy 35,x
-0+178 <L144> daa
-0+179 <L145> dec 30,x
-0+17b <L146> dec 0+000 <L0>
-0+17e <L147> dec 28,x
-0+180 <L148> deca
-0+181 <L149> decb
-0+182 <L150> des
-0+183 <L151> dex
-0+184 <L152> dey
-0+186 <L153> eora #123
-0+188 <L154> eora \*0+000 <L0>
-0+18a <L155> eora 197,x
-0+18c <L156> eora 0+000 <L0>
-0+18f <L157> eora 115,x
-0+191 <L158> eorb #90
-0+193 <L159> eorb \*0+000 <L0>
-0+195 <L160> eorb 94,x
-0+197 <L161> eorb 0+000 <L0>
-0+19a <L162> eorb 121,x
-0+19c <L163> fdiv
-0+19d <L164> idiv
-0+19e <L165> inc 99,x
-0+1a0 <L166> inc 0+000 <L0>
-0+1a3 <L167> inc 112,x
-0+1a5 <L168> inca
-0+1a6 <L169> incb
-0+1a7 <L170> ins
-0+1a8 <L171> inx
-0+1a9 <L172> iny
-0+1ab <L173> jmp 100,x
-0+1ad <L174> jmp 0+000 <L0>
-0+1b0 <L175> jmp 17,x
-0+1b2 <L176> jsr \*0+000 <L0>
-0+1b4 <L177> jsr 9,x
-0+1b6 <L178> jsr 0+000 <L0>
-0+1b9 <L179> jsr 170,x
-0+1bb <L180> ldaa #212
-0+1bd <L181> ldaa \*0+000 <L0>
-0+1bf <L182> ldaa 242,x
-0+1c1 <L183> ldaa 0+000 <L0>
-0+1c4 <L184> ldaa 16,x
-0+1c6 <L185> ldab #175
-0+1c8 <L186> ldab \*0+000 <L0>
-0+1ca <L187> ldab 51,x
-0+1cc <L188> ldab 0+000 <L0>
-0+1cf <L189> ldab 227,x
-0+1d1 <L190> ldd #0000c550 <L330\+0xc269>
-0+1d4 <L191> ldd \*0+000 <L0>
-0+1d6 <L192> ldd 71,x
-0+1d8 <L193> ldd 0+000 <L0>
-0+1db <L194> ldd 92,x
-0+1dd <L195> lds #00004fbb <L330\+0x4cd4>
-0+1e0 <L196> lds \*0+000 <L0>
-0+1e2 <L197> lds 34,x
-0+1e4 <L198> lds 0+000 <L0>
-0+1e7 <L199> lds 186,x
-0+1e9 <L200> ldx #0000579b <L330\+0x54b4>
-0+1ec <L201> ldx \*0+000 <L0>
-0+1ee <L202> ldx 245,x
-0+1f0 <L203> ldx 0+000 <L0>
-0+1f3 <L204> ldx 225,x
-0+1f5 <L205> ldy #0000ac1a <L330\+0xa933>
-0+1f9 <L206> ldy \*0+000 <L0>
-0+1fc <L207> ldy 127,x
-0+1ff <L208> ldy 0+000 <L0>
-0+203 <L209> ldy 248,x
-0+206 <L210> asl 41,x
-0+208 <L211> asl 0+000 <L0>
-0+20b <L212> asl 164,x
-0+20d <L213> asla
-0+20e <L214> aslb
-0+20f <L215> asld
-0+210 <L216> lsr 27,x
-0+212 <L217> lsr 0+000 <L0>
-0+215 <L218> lsr 181,x
-0+217 <L219> lsra
-0+218 <L220> lsrb
-0+219 <L221> lsrd
-0+21a <L222> mul
-0+21b <L223> neg 202,x
-0+21d <L224> neg 0+000 <L0>
-0+220 <L225> neg 232,x
-0+222 <L226> nega
-0+223 <L227> negb
-0+224 <L228> nop
-0+225 <L229> oraa #152
-0+227 <L230> oraa \*0+000 <L0>
-0+229 <L231> oraa 56,x
-0+22b <L232> oraa 0+000 <L0>
-0+22e <L233> oraa 121,x
-0+230 <L234> orab #77
-0+232 <L235> orab \*0+000 <L0>
-0+234 <L236> orab 52,x
-0+236 <L237> orab 0+000 <L0>
-0+239 <L238> orab 95,x
-0+23b <L239> psha
-0+23c <L240> pshb
-0+23d <L241> pshx
-0+23e <L242> pshy
-0+240 <L243> pula
-0+241 <L244> pulb
-0+242 <L245> pulx
-0+243 <L246> puly
-0+245 <L247> rol 78,x
-0+247 <L248> rol 0+000 <L0>
-0+24a <L249> rol 250,x
-0+24c <L250> rola
-0+24d <L251> rolb
-0+24e <L252> ror 203,x
-0+250 <L253> ror 0+000 <L0>
-0+253 <L254> ror 5,x
-0+255 <L255> rora
-0+256 <L256> rorb
-0+257 <L257> rti
-0+258 <L258> rts
-0+259 <L259> sba
-0+25a <L260> sbca #172
-0+25c <L261> sbca \*0+000 <L0>
-0+25e <L262> sbca 33,x
-0+260 <L263> sbca 0+000 <L0>
-0+263 <L264> sbca 170,x
-0+265 <L265> sbcb #26
-0+267 <L266> sbcb \*0+000 <L0>
-0+269 <L267> sbcb 162,x
-0+26b <L268> sbcb 0+000 <L0>
-0+26e <L269> sbcb 112,x
-0+270 <L270> sec
-0+271 <L271> sei
-0+272 <L272> sev
-0+273 <L273> staa \*0+000 <L0>
-0+275 <L274> staa 115,x
-0+277 <L275> staa 0+000 <L0>
-0+27a <L276> staa 4,x
-0+27c <L277> stab \*0+000 <L0>
-0+27e <L278> stab 211,x
-0+280 <L279> stab 0+000 <L0>
-0+283 <L280> stab 148,x
-0+285 <L281> std \*0+000 <L0>
-0+287 <L282> std 175,x
-0+289 <L283> std 0+000 <L0>
-0+28c <L284> std 240,x
-0+28e <L285> stop
-0+28f <L286> sts \*0+000 <L0>
-0+291 <L287> sts 158,x
-0+293 <L288> sts 0+000 <L0>
-0+296 <L289> sts 50,x
-0+298 <L290> stx \*0+000 <L0>
-0+29a <L291> stx 73,x
-0+29c <L292> stx 0+000 <L0>
-0+29f <L293> stx 130,x
-0+2a1 <L294> sty \*0+000 <L0>
-0+2a4 <L295> sty 169,x
-0+2a7 <L296> sty 0+000 <L0>
-0+2ab <L297> sty 112,x
-0+2ae <L298> suba #212
-0+2b0 <L299> suba \*0+000 <L0>
-0+2b2 <L300> suba 138,x
-0+2b4 <L301> suba 0+000 <L0>
-0+2b7 <L302> suba 84,x
-0+2b9 <L303> subb #72
-0+2bb <L304> subb \*0+000 <L0>
-0+2bd <L305> subb 10,x
-0+2bf <L306> subb 0+000 <L0>
-0+2c2 <L307> subb 213,x
-0+2c4 <L308> subd #0000f10e <L330\+0xee27>
-0+2c7 <L309> subd \*0+000 <L0>
-0+2c9 <L310> subd 168,x
-0+2cb <L311> subd 0+000 <L0>
-0+2ce <L312> subd 172,x
-0+2d0 <L313> swi
-0+2d1 <L314> tab
-0+2d2 <L315> tap
-0+2d3 <L316> tba
+0+0+ <L0> aba
+0+0001 <L1> abx
+0+0002 <L2> aby
+0+0004 <L3> adca #103
+0+0006 <L4> adca \*0+0+ <L0>
+ 7: R_M68HC11_8 Z198
+0+0008 <L5> adca 105,x
+0+000a <L6> adca 0+0+ <L0>
+ b: R_M68HC11_16 symbol115
+0+000d <L7> adca 81,x
+0+000f <L8> adcb #255
+0+0011 <L9> adcb \*0+0+ <L0>
+ 12: R_M68HC11_8 Z74
+0+0013 <L10> adcb 236,x
+0+0015 <L11> adcb 0+0+ <L0>
+ 16: R_M68HC11_16 symbol41
+0+0018 <L12> adcb 205,x
+0+001a <L13> adda #186
+0+001c <L14> adda \*0+0+ <L0>
+ 1d: R_M68HC11_8 Z171
+0+001e <L15> adda 242,x
+0+0020 <L16> adda 0+0+ <L0>
+ 21: R_M68HC11_16 symbol251
+0+0023 <L17> adda 227,x
+0+0025 <L18> addb #70
+0+0027 <L19> addb \*0+0+ <L0>
+ 28: R_M68HC11_8 Z124
+0+0029 <L20> addb 194,x
+0+002b <L21> addb 0+0+ <L0>
+ 2c: R_M68HC11_16 symbol84
+0+002e <L22> addb 248,x
+0+0030 <L23> addd #0+231b <L330\+0x2034>
+0+0033 <L24> addd \*0+0+ <L0>
+ 34: R_M68HC11_8 Z232
+0+0035 <L25> addd 231,x
+0+0037 <L26> addd 0+0+ <L0>
+ 38: R_M68HC11_16 symbol141
+0+003a <L27> addd 118,x
+0+003c <L28> anda #90
+0+003e <L29> anda \*0+0+ <L0>
+ 3f: R_M68HC11_8 Z46
+0+0040 <L30> anda 99,x
+0+0042 <L31> anda 0+0+ <L0>
+ 43: R_M68HC11_16 symbol51
+0+0045 <L32> anda 159,x
+0+0047 <L33> andb #201
+0+0049 <L34> andb \*0+0+ <L0>
+ 4a: R_M68HC11_8 Z154
+0+004b <L35> andb 102,x
+0+004d <L36> andb 0+0+ <L0>
+ 4e: R_M68HC11_16 symbol50
+0+0050 <L37> andb 13,x
+0+0052 <L38> asl 183,x
+0+0054 <L39> asl 0+0+ <L0>
+ 55: R_M68HC11_16 symbol49
+0+0057 <L40> asl 88,x
+0+0059 <L41> asla
+0+005a <L42> aslb
+0+005b <L43> asld
+0+005c <L44> asr 163,x
+0+005e <L45> asr 0+0+ <L0>
+ 5f: R_M68HC11_16 symbol90
+0+0061 <L46> asr 37,x
+0+0063 <L47> asra
+0+0064 <L48> asrb
+0+0065 <L49> bcs 0+006a <L50>
+ 65: R_M68HC11_RL_JUMP \*ABS\*
+0+0067 <L49\+0x2> jmp 0+0+ <L0>
+ 68: R_M68HC11_16 L93
+0+006a <L50> bclr \*0+0+ <L0> #\$00
+ 6b: R_M68HC11_8 Z5
+ 6c: R_M68HC11_8 \$17
+0+006d <L51> bclr 88,x #\$00
+ 6f: R_M68HC11_8 \$e9
+0+0070 <L52> bclr 94,x #\$00
+ 72: R_M68HC11_8 \$d4
+0+0073 <L53> bcc 0+0078 <L54>
+ 73: R_M68HC11_RL_JUMP \*ABS\*
+0+0075 <L53\+0x2> jmp 0+0+ <L0>
+ 76: R_M68HC11_16 L171
+0+0078 <L54> bne 0+007d <L55>
+ 78: R_M68HC11_RL_JUMP \*ABS\*
+0+007a <L54\+0x2> jmp 0+0+ <L0>
+ 7b: R_M68HC11_16 L178
+0+007d <L55> blt 0+0082 <L56>
+ 7d: R_M68HC11_RL_JUMP \*ABS\*
+0+007f <L55\+0x2> jmp 0+0+ <L0>
+ 80: R_M68HC11_16 L205
+0+0082 <L56> ble 0+0087 <L57>
+ 82: R_M68HC11_RL_JUMP \*ABS\*
+0+0084 <L56\+0x2> jmp 0+0+ <L0>
+ 85: R_M68HC11_16 L198
+0+0087 <L57> bls 0+008c <L58>
+ 87: R_M68HC11_RL_JUMP \*ABS\*
+0+0089 <L57\+0x2> jmp 0+0+ <L0>
+ 8a: R_M68HC11_16 L155
+0+008c <L58> bcs 0+0091 <L59>
+ 8c: R_M68HC11_RL_JUMP \*ABS\*
+0+008e <L58\+0x2> jmp 0+0+ <L0>
+ 8f: R_M68HC11_16 L180
+0+0091 <L59> bita #84
+0+0093 <L60> bita \*0+0+ <L0>
+ 94: R_M68HC11_8 Z17
+0+0095 <L61> bita 14,x
+0+0097 <L62> bita 0+0+ <L0>
+ 98: R_M68HC11_16 symbol130
+0+009a <L63> bita 116,x
+0+009c <L64> bitb #65
+0+009e <L65> bitb \*0+0+ <L0>
+ 9f: R_M68HC11_8 Z33
+0+00a0 <L66> bitb 61,x
+0+00a2 <L67> bitb 0+0+ <L0>
+ a3: R_M68HC11_16 symbol220
+0+00a5 <L68> bitb 135,x
+0+00a7 <L69> ble 0+011d <L112>
+ a7: R_M68HC11_RL_JUMP \*ABS\*
+0+00a9 <L70> bcc 0+00ae <L71>
+ a9: R_M68HC11_RL_JUMP \*ABS\*
+0+00ab <L70\+0x2> jmp 0+0+ <L0>
+ ac: R_M68HC11_16 L233
+0+00ae <L71> bls 0+0097 <L62>
+ ae: R_M68HC11_RL_JUMP \*ABS\*
+0+00b0 <L72> bge 0+00b5 <L73>
+ b0: R_M68HC11_RL_JUMP \*ABS\*
+0+00b2 <L72\+0x2> jmp 0+0+ <L0>
+ b3: R_M68HC11_16 L161
+0+00b5 <L73> bmi 0+009e <L65>
+ b5: R_M68HC11_RL_JUMP \*ABS\*
+0+00b7 <L74> beq 0+00bc <L75>
+ b7: R_M68HC11_RL_JUMP \*ABS\*
+0+00b9 <L74\+0x2> jmp 0+0+ <L0>
+ ba: R_M68HC11_16 L225
+0+00bc <L75> bmi 0+00c1 <L76>
+ bc: R_M68HC11_RL_JUMP \*ABS\*
+0+00be <L75\+0x2> jmp 0+0+ <L0>
+ bf: R_M68HC11_16 L252
+0+00c1 <L76> bra 0+0106 <L103>
+ c1: R_M68HC11_RL_JUMP \*ABS\*
+0+00c3 <L77> brclr \*0+0+ <L0> #\$00 0+0145 <L125\+0x2>
+ c3: R_M68HC11_RL_JUMP \*ABS\*
+ c4: R_M68HC11_8 Z62
+ c5: R_M68HC11_8 \$01
+0+00c7 <L78> brclr 151,x #\$00 0+0127 <L115>
+ c7: R_M68HC11_RL_JUMP \*ABS\*
+ c9: R_M68HC11_8 \$ea
+0+00cb <L79> brclr 107,x #\$00 0+00de <L84\+0x1>
+ cb: R_M68HC11_RL_JUMP \*ABS\*
+ cd: R_M68HC11_8 \$96
+0+00cf <L80> brn 0+0082 <L56>
+ cf: R_M68HC11_RL_JUMP \*ABS\*
+0+00d1 <L81> brset \*0+0+ <L0> #\$00 0+0141 <L124>
+ d1: R_M68HC11_RL_JUMP \*ABS\*
+ d2: R_M68HC11_8 Z92
+ d3: R_M68HC11_8 \$2a
+0+00d5 <L82> brset 176,x #\$00 0+0154 <L132>
+ d5: R_M68HC11_RL_JUMP \*ABS\*
+ d7: R_M68HC11_8 \$3b
+0+00d9 <L83> brset 50,x #\$00 0+0119 <L110\+0x2>
+ d9: R_M68HC11_RL_JUMP \*ABS\*
+ db: R_M68HC11_8 \$af
+0+00dd <L84> bset \*0+0+ <L0> #\$00
+ de: R_M68HC11_8 Z84
+ df: R_M68HC11_8 \$ec
+0+00e0 <L85> bset 24,x #\$00
+ e2: R_M68HC11_8 \$db
+0+00e3 <L86> bset 92,x #\$00
+ e5: R_M68HC11_8 \$02
+0+00e6 <L87> jsr 0+0+ <L0>
+ e6: R_M68HC11_RL_JUMP \*ABS\*
+ e7: R_M68HC11_16 L26
+0+00e9 <L88> bvs 0+00ee <L89>
+ e9: R_M68HC11_RL_JUMP \*ABS\*
+0+00eb <L88\+0x2> jmp 0+0+ <L0>
+ ec: R_M68HC11_16 L254
+0+00ee <L89> bvs 0+00a2 <L67>
+ ee: R_M68HC11_RL_JUMP \*ABS\*
+0+00f0 <L90> cba
+0+00f1 <L91> clc
+0+00f2 <L92> cli
+0+00f3 <L93> clr 251,x
+0+00f5 <L94> clr 0+0+ <L0>
+ f6: R_M68HC11_16 symbol250
+0+00f8 <L95> clr 170,x
+0+00fa <L96> clra
+0+00fb <L97> clrb
+0+00fc <L98> clv
+0+00fd <L99> cmpa #58
+0+00ff <L100> cmpa \*0+0+ <L0>
+ 100: R_M68HC11_8 Z251
+0+0101 <L101> cmpa 41,x
+0+0103 <L102> cmpa 0+0+ <L0>
+ 104: R_M68HC11_16 symbol209
+0+0106 <L103> cmpa 230,x
+0+0108 <L104> cmpb #5
+0+010a <L105> cmpb \*0+0+ <L0>
+ 10b: R_M68HC11_8 Z60
+0+010c <L106> cmpb 124,x
+0+010e <L107> cmpb 0+0+ <L0>
+ 10f: R_M68HC11_16 symbol148
+0+0111 <L108> cmpb 117,x
+0+0113 <L109> cpd #0+0fd8 <L330\+0xcf1>
+0+0117 <L110> cpd \*0+0+ <L0>
+ 119: R_M68HC11_8 Z190
+0+011a <L111> cpd 97,x
+0+011d <L112> cpd 0+0+ <L0>
+ 11f: R_M68HC11_16 symbol137
+0+0121 <L113> cpd 249,x
+0+0124 <L114> cpx #0+af5c <L330\+0xac75>
+0+0127 <L115> cpx \*0+0+ <L0>
+ 128: R_M68HC11_8 Z187
+0+0129 <L116> cpx 168,x
+0+012b <L117> cpx 0+0+ <L0>
+ 12c: R_M68HC11_16 symbol153
+0+012e <L118> cpx 15,x
+0+0130 <L119> cpy #0+4095 <L330\+0x3dae>
+0+0134 <L120> cpy \*0+0+ <L0>
+ 136: R_M68HC11_8 Z177
+0+0137 <L121> cpy 235,x
+0+013a <L122> cpy 0+0+ <L0>
+ 13c: R_M68HC11_16 symbol241
+0+013e <L123> cpy 179,x
+0+0141 <L124> com 5,x
+0+0143 <L125> com 0+0+ <L0>
+ 144: R_M68HC11_16 symbol239
+0+0146 <L126> com 247,x
+0+0148 <L127> coma
+0+0149 <L128> comb
+0+014a <L129> cpd #0+bf00 <L330\+0xbc19>
+0+014e <L130> cpd \*0+0+ <L0>
+ 150: R_M68HC11_8 Z233
+0+0151 <L131> cpd 161,x
+0+0154 <L132> cpd 0+0+ <L0>
+ 156: R_M68HC11_16 symbol58
+0+0158 <L133> cpd 229,x
+0+015b <L134> cpx #0+8fca <L330\+0x8ce3>
+0+015e <L135> cpx \*0+0+ <L0>
+ 15f: R_M68HC11_8 Z11
+0+0160 <L136> cpx 203,x
+0+0162 <L137> cpx 0+0+ <L0>
+ 163: R_M68HC11_16 symbol208
+0+0165 <L138> cpx 72,x
+0+0167 <L139> cpy #0+0247 <L248>
+0+016b <L140> cpy \*0+0+ <L0>
+ 16d: R_M68HC11_8 Z100
+0+016e <L141> cpy 189,x
+0+0171 <L142> cpy 0+0+ <L0>
+ 173: R_M68HC11_16 symbol31
+0+0175 <L143> cpy 35,x
+0+0178 <L144> daa
+0+0179 <L145> dec 30,x
+0+017b <L146> dec 0+0+ <L0>
+ 17c: R_M68HC11_16 symbol168
+0+017e <L147> dec 28,x
+0+0180 <L148> deca
+0+0181 <L149> decb
+0+0182 <L150> des
+0+0183 <L151> dex
+0+0184 <L152> dey
+0+0186 <L153> eora #123
+0+0188 <L154> eora \*0+0+ <L0>
+ 189: R_M68HC11_8 Z100
+0+018a <L155> eora 197,x
+0+018c <L156> eora 0+0+ <L0>
+ 18d: R_M68HC11_16 symbol20
+0+018f <L157> eora 115,x
+0+0191 <L158> eorb #90
+0+0193 <L159> eorb \*0+0+ <L0>
+ 194: R_M68HC11_8 Z197
+0+0195 <L160> eorb 94,x
+0+0197 <L161> eorb 0+0+ <L0>
+ 198: R_M68HC11_16 symbol75
+0+019a <L162> eorb 121,x
+0+019c <L163> fdiv
+0+019d <L164> idiv
+0+019e <L165> inc 99,x
+0+01a0 <L166> inc 0+0+ <L0>
+ 1a1: R_M68HC11_16 symbol59
+0+01a3 <L167> inc 112,x
+0+01a5 <L168> inca
+0+01a6 <L169> incb
+0+01a7 <L170> ins
+0+01a8 <L171> inx
+0+01a9 <L172> iny
+0+01ab <L173> jmp 100,x
+0+01ad <L174> jmp 0+0+ <L0>
+ 1ad: R_M68HC11_RL_JUMP \*ABS\*
+ 1ae: R_M68HC11_16 symbol36
+0+01b0 <L175> jmp 17,x
+0+01b2 <L176> jsr \*0+0+ <L0>
+ 1b2: R_M68HC11_RL_JUMP \*ABS\*
+ 1b3: R_M68HC11_8 Z158
+0+01b4 <L177> jsr 9,x
+0+01b6 <L178> jsr 0+0+ <L0>
+ 1b6: R_M68HC11_RL_JUMP \*ABS\*
+ 1b7: R_M68HC11_16 symbol220
+0+01b9 <L179> jsr 170,x
+0+01bb <L180> ldaa #212
+0+01bd <L181> ldaa \*0+0+ <L0>
+ 1be: R_M68HC11_8 Z172
+0+01bf <L182> ldaa 242,x
+0+01c1 <L183> ldaa 0+0+ <L0>
+ 1c2: R_M68HC11_16 symbol27
+0+01c4 <L184> ldaa 16,x
+0+01c6 <L185> ldab #175
+0+01c8 <L186> ldab \*0+0+ <L0>
+ 1c9: R_M68HC11_8 Z59
+0+01ca <L187> ldab 51,x
+0+01cc <L188> ldab 0+0+ <L0>
+ 1cd: R_M68HC11_16 symbol205
+0+01cf <L189> ldab 227,x
+0+01d1 <L190> ldd #0+c550 <L330\+0xc269>
+0+01d4 <L191> ldd \*0+0+ <L0>
+ 1d5: R_M68HC11_8 Z72
+0+01d6 <L192> ldd 71,x
+0+01d8 <L193> ldd 0+0+ <L0>
+ 1d9: R_M68HC11_16 symbol21
+0+01db <L194> ldd 92,x
+0+01dd <L195> lds #0+4fbb <L330\+0x4cd4>
+0+01e0 <L196> lds \*0+0+ <L0>
+ 1e1: R_M68HC11_8 Z111
+0+01e2 <L197> lds 34,x
+0+01e4 <L198> lds 0+0+ <L0>
+ 1e5: R_M68HC11_16 symbol25
+0+01e7 <L199> lds 186,x
+0+01e9 <L200> ldx #0+579b <L330\+0x54b4>
+0+01ec <L201> ldx \*0+0+ <L0>
+ 1ed: R_M68HC11_8 Z125
+0+01ee <L202> ldx 245,x
+0+01f0 <L203> ldx 0+0+ <L0>
+ 1f1: R_M68HC11_16 symbol11
+0+01f3 <L204> ldx 225,x
+0+01f5 <L205> ldy #0+ac1a <L330\+0xa933>
+0+01f9 <L206> ldy \*0+0+ <L0>
+ 1fb: R_M68HC11_8 Z28
+0+01fc <L207> ldy 127,x
+0+01ff <L208> ldy 0+0+ <L0>
+ 201: R_M68HC11_16 symbol35
+0+0203 <L209> ldy 248,x
+0+0206 <L210> asl 41,x
+0+0208 <L211> asl 0+0+ <L0>
+ 209: R_M68HC11_16 symbol248
+0+020b <L212> asl 164,x
+0+020d <L213> asla
+0+020e <L214> aslb
+0+020f <L215> asld
+0+0210 <L216> lsr 27,x
+0+0212 <L217> lsr 0+0+ <L0>
+ 213: R_M68HC11_16 symbol19
+0+0215 <L218> lsr 181,x
+0+0217 <L219> lsra
+0+0218 <L220> lsrb
+0+0219 <L221> lsrd
+0+021a <L222> mul
+0+021b <L223> neg 202,x
+0+021d <L224> neg 0+0+ <L0>
+ 21e: R_M68HC11_16 symbol78
+0+0220 <L225> neg 232,x
+0+0222 <L226> nega
+0+0223 <L227> negb
+0+0224 <L228> nop
+0+0225 <L229> oraa #152
+0+0227 <L230> oraa \*0+0+ <L0>
+ 228: R_M68HC11_8 Z50
+0+0229 <L231> oraa 56,x
+0+022b <L232> oraa 0+0+ <L0>
+ 22c: R_M68HC11_16 symbol224
+0+022e <L233> oraa 121,x
+0+0230 <L234> orab #77
+0+0232 <L235> orab \*0+0+ <L0>
+ 233: R_M68HC11_8 Z61
+0+0234 <L236> orab 52,x
+0+0236 <L237> orab 0+0+ <L0>
+ 237: R_M68HC11_16 symbol188
+0+0239 <L238> orab 95,x
+0+023b <L239> psha
+0+023c <L240> pshb
+0+023d <L241> pshx
+0+023e <L242> pshy
+0+0240 <L243> pula
+0+0241 <L244> pulb
+0+0242 <L245> pulx
+0+0243 <L246> puly
+0+0245 <L247> rol 78,x
+0+0247 <L248> rol 0+0+ <L0>
+ 248: R_M68HC11_16 symbol119
+0+024a <L249> rol 250,x
+0+024c <L250> rola
+0+024d <L251> rolb
+0+024e <L252> ror 203,x
+0+0250 <L253> ror 0+0+ <L0>
+ 251: R_M68HC11_16 symbol108
+0+0253 <L254> ror 5,x
+0+0255 <L255> rora
+0+0256 <L256> rorb
+0+0257 <L257> rti
+0+0258 <L258> rts
+0+0259 <L259> sba
+0+025a <L260> sbca #172
+0+025c <L261> sbca \*0+0+ <L0>
+ 25d: R_M68HC11_8 Z134
+0+025e <L262> sbca 33,x
+0+0260 <L263> sbca 0+0+ <L0>
+ 261: R_M68HC11_16 symbol43
+0+0263 <L264> sbca 170,x
+0+0265 <L265> sbcb #26
+0+0267 <L266> sbcb \*0+0+ <L0>
+ 268: R_M68HC11_8 Z85
+0+0269 <L267> sbcb 162,x
+0+026b <L268> sbcb 0+0+ <L0>
+ 26c: R_M68HC11_16 symbol190
+0+026e <L269> sbcb 112,x
+0+0270 <L270> sec
+0+0271 <L271> sei
+0+0272 <L272> sev
+0+0273 <L273> staa \*0+0+ <L0>
+ 274: R_M68HC11_8 Z181
+0+0275 <L274> staa 115,x
+0+0277 <L275> staa 0+0+ <L0>
+ 278: R_M68HC11_16 symbol59
+0+027a <L276> staa 4,x
+0+027c <L277> stab \*0+0+ <L0>
+ 27d: R_M68HC11_8 Z92
+0+027e <L278> stab 211,x
+0+0280 <L279> stab 0+0+ <L0>
+ 281: R_M68HC11_16 symbol54
+0+0283 <L280> stab 148,x
+0+0285 <L281> std \*0+0+ <L0>
+ 286: R_M68HC11_8 Z179
+0+0287 <L282> std 175,x
+0+0289 <L283> std 0+0+ <L0>
+ 28a: R_M68HC11_16 symbol226
+0+028c <L284> std 240,x
+0+028e <L285> stop
+0+028f <L286> sts \*0+0+ <L0>
+ 290: R_M68HC11_8 Z228
+0+0291 <L287> sts 158,x
+0+0293 <L288> sts 0+0+ <L0>
+ 294: R_M68HC11_16 symbol79
+0+0296 <L289> sts 50,x
+0+0298 <L290> stx \*0+0+ <L0>
+ 299: R_M68HC11_8 Z21
+0+029a <L291> stx 73,x
+0+029c <L292> stx 0+0+ <L0>
+ 29d: R_M68HC11_16 symbol253
+0+029f <L293> stx 130,x
+0+02a1 <L294> sty \*0+0+ <L0>
+ 2a3: R_M68HC11_8 Z78
+0+02a4 <L295> sty 169,x
+0+02a7 <L296> sty 0+0+ <L0>
+ 2a9: R_M68HC11_16 symbol8
+0+02ab <L297> sty 112,x
+0+02ae <L298> suba #212
+0+02b0 <L299> suba \*0+0+ <L0>
+ 2b1: R_M68HC11_8 Z178
+0+02b2 <L300> suba 138,x
+0+02b4 <L301> suba 0+0+ <L0>
+ 2b5: R_M68HC11_16 symbol41
+0+02b7 <L302> suba 84,x
+0+02b9 <L303> subb #72
+0+02bb <L304> subb \*0+0+ <L0>
+ 2bc: R_M68HC11_8 Z154
+0+02bd <L305> subb 10,x
+0+02bf <L306> subb 0+0+ <L0>
+ 2c0: R_M68HC11_16 symbol188
+0+02c2 <L307> subb 213,x
+0+02c4 <L308> subd #0+f10e <L330\+0xee27>
+0+02c7 <L309> subd \*0+0+ <L0>
+ 2c8: R_M68HC11_8 Z24
+0+02c9 <L310> subd 168,x
+0+02cb <L311> subd 0+0+ <L0>
+ 2cc: R_M68HC11_16 symbol68
+0+02ce <L312> subd 172,x
+0+02d0 <L313> swi
+0+02d1 <L314> tab
+0+02d2 <L315> tap
+0+02d3 <L316> tba
...
-0+2d5 <L318> tpa
-0+2d6 <L319> tst 91,x
-0+2d8 <L320> tst 0+000 <L0>
-0+2db <L321> tst 142,x
-0+2dd <L322> tsta
-0+2de <L323> tstb
-0+2df <L324> tsx
-0+2e0 <L325> tsy
-0+2e2 <L326> txs
-0+2e3 <L327> tys
-0+2e5 <L328> wai
-0+2e6 <L329> xgdx
-0+2e7 <L330> xgdy
+0+02d5 <L318> tpa
+0+02d6 <L319> tst 91,x
+0+02d8 <L320> tst 0+0+ <L0>
+ 2d9: R_M68HC11_16 symbol243
+0+02db <L321> tst 142,x
+0+02dd <L322> tsta
+0+02de <L323> tstb
+0+02df <L324> tsx
+0+02e0 <L325> tsy
+0+02e2 <L326> txs
+0+02e3 <L327> tys
+0+02e5 <L328> wai
+0+02e6 <L329> xgdx
+0+02e7 <L330> xgdy
diff --git a/gas/testsuite/gas/m68hc11/branchs12.d b/gas/testsuite/gas/m68hc11/branchs12.d
new file mode 100644
index 0000000..682b1cc
--- /dev/null
+++ b/gas/testsuite/gas/m68hc11/branchs12.d
@@ -0,0 +1,225 @@
+#objdump: -d --prefix-addresses --reloc
+#as: -m68hc12
+#name: 68HC12 branchs
+
+.*: +file format elf32\-m68hc12
+
+Disassembly of section .text:
+0+00 <start> bgt 0+48 <L1>
+[ ]+0: R_M68HC12_RL_JUMP \*ABS\*
+0+02 <start\+0x2> bge 0+48 <L1>
+[ ]+2: R_M68HC12_RL_JUMP \*ABS\*
+0+04 <start\+0x4> ble 0+48 <L1>
+[ ]+4: R_M68HC12_RL_JUMP \*ABS\*
+0+06 <start\+0x6> blt 0+48 <L1>
+[ ]+6: R_M68HC12_RL_JUMP \*ABS\*
+0+08 <start\+0x8> bhi 0+48 <L1>
+[ ]+8: R_M68HC12_RL_JUMP \*ABS\*
+0+0a <start\+0xa> bcc 0+48 <L1>
+[ ]+a: R_M68HC12_RL_JUMP \*ABS\*
+0+0c <start\+0xc> bcc 0+48 <L1>
+[ ]+c: R_M68HC12_RL_JUMP \*ABS\*
+0+0e <start\+0xe> beq 0+48 <L1>
+[ ]+e: R_M68HC12_RL_JUMP \*ABS\*
+0+10 <start\+0x10> bls 0+48 <L1>
+[ ]+10: R_M68HC12_RL_JUMP \*ABS\*
+0+12 <start\+0x12> bcs 0+48 <L1>
+[ ]+12: R_M68HC12_RL_JUMP \*ABS\*
+0+14 <start\+0x14> bcs 0+48 <L1>
+[ ]+14: R_M68HC12_RL_JUMP \*ABS\*
+0+16 <start\+0x16> bmi 0+48 <L1>
+[ ]+16: R_M68HC12_RL_JUMP \*ABS\*
+0+18 <start\+0x18> bvs 0+48 <L1>
+[ ]+18: R_M68HC12_RL_JUMP \*ABS\*
+0+1a <start\+0x1a> bra 0+48 <L1>
+[ ]+1a: R_M68HC12_RL_JUMP \*ABS\*
+0+1c <start\+0x1c> bvc 0+48 <L1>
+[ ]+1c: R_M68HC12_RL_JUMP \*ABS\*
+0+1e <start\+0x1e> bne 0+48 <L1>
+[ ]+1e: R_M68HC12_RL_JUMP \*ABS\*
+0+20 <start\+0x20> bpl 0+48 <L1>
+[ ]+20: R_M68HC12_RL_JUMP \*ABS\*
+0+22 <start\+0x22> brn 0+48 <L1>
+[ ]+22: R_M68HC12_RL_JUMP \*ABS\*
+0+24 <start\+0x24> bgt 0+00 <start>
+[ ]+24: R_M68HC12_RL_JUMP \*ABS\*
+0+26 <start\+0x26> bge 0+00 <start>
+[ ]+26: R_M68HC12_RL_JUMP \*ABS\*
+0+28 <start\+0x28> ble 0+00 <start>
+[ ]+28: R_M68HC12_RL_JUMP \*ABS\*
+0+2a <start\+0x2a> blt 0+00 <start>
+[ ]+2a: R_M68HC12_RL_JUMP \*ABS\*
+0+2c <start\+0x2c> bhi 0+00 <start>
+[ ]+2c: R_M68HC12_RL_JUMP \*ABS\*
+0+2e <start\+0x2e> bcc 0+00 <start>
+[ ]+2e: R_M68HC12_RL_JUMP \*ABS\*
+0+30 <start\+0x30> bcc 0+00 <start>
+[ ]+30: R_M68HC12_RL_JUMP \*ABS\*
+0+32 <start\+0x32> beq 0+00 <start>
+[ ]+32: R_M68HC12_RL_JUMP \*ABS\*
+0+34 <start\+0x34> bls 0+00 <start>
+[ ]+34: R_M68HC12_RL_JUMP \*ABS\*
+0+36 <start\+0x36> bcs 0+00 <start>
+[ ]+36: R_M68HC12_RL_JUMP \*ABS\*
+0+38 <start\+0x38> bcs 0+00 <start>
+[ ]+38: R_M68HC12_RL_JUMP \*ABS\*
+0+3a <start\+0x3a> bmi 0+00 <start>
+[ ]+3a: R_M68HC12_RL_JUMP \*ABS\*
+0+3c <start\+0x3c> bvs 0+00 <start>
+[ ]+3c: R_M68HC12_RL_JUMP \*ABS\*
+0+3e <start\+0x3e> bra 0+00 <start>
+[ ]+3e: R_M68HC12_RL_JUMP \*ABS\*
+0+40 <start\+0x40> bvc 0+00 <start>
+[ ]+40: R_M68HC12_RL_JUMP \*ABS\*
+0+42 <start\+0x42> bne 0+00 <start>
+[ ]+42: R_M68HC12_RL_JUMP \*ABS\*
+0+44 <start\+0x44> bpl 0+00 <start>
+[ ]+44: R_M68HC12_RL_JUMP \*ABS\*
+0+46 <start\+0x46> brn 0+00 <start>
+[ ]+46: R_M68HC12_RL_JUMP \*ABS\*
+0+48 <L1> lbgt 0+1e7 <L2>
+[ ]+48: R_M68HC12_RL_JUMP \*ABS\*
+0+4c <L1\+0x4> lbge 0+1e7 <L2>
+[ ]+4c: R_M68HC12_RL_JUMP \*ABS\*
+0+50 <L1\+0x8> lble 0+1e7 <L2>
+[ ]+50: R_M68HC12_RL_JUMP \*ABS\*
+0+54 <L1\+0xc> lblt 0+1e7 <L2>
+[ ]+54: R_M68HC12_RL_JUMP \*ABS\*
+0+58 <L1\+0x10> lbhi 0+1e7 <L2>
+[ ]+58: R_M68HC12_RL_JUMP \*ABS\*
+0+5c <L1\+0x14> lbcc 0+1e7 <L2>
+[ ]+5c: R_M68HC12_RL_JUMP \*ABS\*
+0+60 <L1\+0x18> lbcc 0+1e7 <L2>
+[ ]+60: R_M68HC12_RL_JUMP \*ABS\*
+0+64 <L1\+0x1c> lbeq 0+1e7 <L2>
+[ ]+64: R_M68HC12_RL_JUMP \*ABS\*
+0+68 <L1\+0x20> lbls 0+1e7 <L2>
+[ ]+68: R_M68HC12_RL_JUMP \*ABS\*
+0+6c <L1\+0x24> lbcs 0+1e7 <L2>
+[ ]+6c: R_M68HC12_RL_JUMP \*ABS\*
+0+70 <L1\+0x28> lbcs 0+1e7 <L2>
+[ ]+70: R_M68HC12_RL_JUMP \*ABS\*
+0+74 <L1\+0x2c> lbmi 0+1e7 <L2>
+[ ]+74: R_M68HC12_RL_JUMP \*ABS\*
+0+78 <L1\+0x30> lbvs 0+1e7 <L2>
+[ ]+78: R_M68HC12_RL_JUMP \*ABS\*
+0+7c <L1\+0x34> lbra 0+1e7 <L2>
+[ ]+7c: R_M68HC12_RL_JUMP \*ABS\*
+0+80 <L1\+0x38> lbvc 0+1e7 <L2>
+[ ]+80: R_M68HC12_RL_JUMP \*ABS\*
+0+84 <L1\+0x3c> lbne 0+1e7 <L2>
+[ ]+84: R_M68HC12_RL_JUMP \*ABS\*
+0+88 <L1\+0x40> lbpl 0+1e7 <L2>
+[ ]+88: R_M68HC12_RL_JUMP \*ABS\*
+0+8c <L1\+0x44> lbrn 0+1e7 <L2>
+[ ]+8c: R_M68HC12_RL_JUMP \*ABS\*
+0+90 <L1\+0x48> lbgt 0+00 <start>
+[ ]+90: R_M68HC12_RL_JUMP \*ABS\*
+[ ]+92: R_M68HC12_PCREL_16 undefined
+0+94 <L1\+0x4c> lbge 0+00 <start>
+[ ]+94: R_M68HC12_RL_JUMP \*ABS\*
+[ ]+96: R_M68HC12_PCREL_16 undefined
+0+98 <L1\+0x50> lble 0+00 <start>
+[ ]+98: R_M68HC12_RL_JUMP \*ABS\*
+[ ]+9a: R_M68HC12_PCREL_16 undefined
+0+9c <L1\+0x54> lblt 0+00 <start>
+[ ]+9c: R_M68HC12_RL_JUMP \*ABS\*
+[ ]+9e: R_M68HC12_PCREL_16 undefined
+0+a0 <L1\+0x58> lbhi 0+00 <start>
+[ ]+a0: R_M68HC12_RL_JUMP \*ABS\*
+[ ]+a2: R_M68HC12_PCREL_16 undefined
+0+a4 <L1\+0x5c> lbcc 0+00 <start>
+[ ]+a4: R_M68HC12_RL_JUMP \*ABS\*
+[ ]+a6: R_M68HC12_PCREL_16 undefined
+0+a8 <L1\+0x60> lbcc 0+00 <start>
+[ ]+a8: R_M68HC12_RL_JUMP \*ABS\*
+[ ]+aa: R_M68HC12_PCREL_16 undefined
+0+ac <L1\+0x64> lbeq 0+00 <start>
+[ ]+ac: R_M68HC12_RL_JUMP \*ABS\*
+[ ]+ae: R_M68HC12_PCREL_16 undefined
+0+b0 <L1\+0x68> lbls 0+00 <start>
+[ ]+b0: R_M68HC12_RL_JUMP \*ABS\*
+[ ]+b2: R_M68HC12_PCREL_16 undefined
+0+b4 <L1\+0x6c> lbcs 0+00 <start>
+[ ]+b4: R_M68HC12_RL_JUMP \*ABS\*
+[ ]+b6: R_M68HC12_PCREL_16 undefined
+0+b8 <L1\+0x70> lbcs 0+00 <start>
+[ ]+b8: R_M68HC12_RL_JUMP \*ABS\*
+[ ]+ba: R_M68HC12_PCREL_16 undefined
+0+bc <L1\+0x74> lbmi 0+00 <start>
+[ ]+bc: R_M68HC12_RL_JUMP \*ABS\*
+[ ]+be: R_M68HC12_PCREL_16 undefined
+0+c0 <L1\+0x78> lbvs 0+00 <start>
+[ ]+c0: R_M68HC12_RL_JUMP \*ABS\*
+[ ]+c2: R_M68HC12_PCREL_16 undefined
+0+c4 <L1\+0x7c> jmp 0+00 <start>
+[ ]+c4: R_M68HC12_RL_JUMP \*ABS\*
+[ ]+c5: R_M68HC12_16 undefined
+0+c7 <L1\+0x7f> lbvc 0+00 <start>
+[ ]+c7: R_M68HC12_RL_JUMP \*ABS\*
+[ ]+c9: R_M68HC12_PCREL_16 undefined
+0+cb <L1\+0x83> lbne 0+00 <start>
+[ ]+cb: R_M68HC12_RL_JUMP \*ABS\*
+[ ]+cd: R_M68HC12_PCREL_16 undefined
+0+cf <L1\+0x87> lbpl 0+00 <start>
+[ ]+cf: R_M68HC12_RL_JUMP \*ABS\*
+[ ]+d1: R_M68HC12_PCREL_16 undefined
+0+d3 <L1\+0x8b> lbrn 0+00 <start>
+[ ]+d3: R_M68HC12_RL_JUMP \*ABS\*
+[ ]+d5: R_M68HC12_PCREL_16 undefined
+0+d7 <L1\+0x8f> lbgt 0+10 <start\+0x10>
+[ ]+d7: R_M68HC12_RL_JUMP \*ABS\*
+[ ]+d9: R_M68HC12_PCREL_16 undefined
+0+db <L1\+0x93> lbge 0+10 <start\+0x10>
+[ ]+db: R_M68HC12_RL_JUMP \*ABS\*
+[ ]+dd: R_M68HC12_PCREL_16 undefined
+0+df <L1\+0x97> lble 0+10 <start\+0x10>
+[ ]+df: R_M68HC12_RL_JUMP \*ABS\*
+[ ]+e1: R_M68HC12_PCREL_16 undefined
+0+e3 <L1\+0x9b> lblt 0+10 <start\+0x10>
+[ ]+e3: R_M68HC12_RL_JUMP \*ABS\*
+[ ]+e5: R_M68HC12_PCREL_16 undefined
+0+e7 <L1\+0x9f> lbhi 0+10 <start\+0x10>
+[ ]+e7: R_M68HC12_RL_JUMP \*ABS\*
+[ ]+e9: R_M68HC12_PCREL_16 undefined
+0+eb <L1\+0xa3> lbcc 0+10 <start\+0x10>
+[ ]+eb: R_M68HC12_RL_JUMP \*ABS\*
+[ ]+ed: R_M68HC12_PCREL_16 undefined
+0+ef <L1\+0xa7> lbcc 0+10 <start\+0x10>
+[ ]+ef: R_M68HC12_RL_JUMP \*ABS\*
+[ ]+f1: R_M68HC12_PCREL_16 undefined
+0+f3 <L1\+0xab> lbeq 0+10 <start\+0x10>
+[ ]+f3: R_M68HC12_RL_JUMP \*ABS\*
+[ ]+f5: R_M68HC12_PCREL_16 undefined
+0+f7 <L1\+0xaf> lbls 0+10 <start\+0x10>
+[ ]+f7: R_M68HC12_RL_JUMP \*ABS\*
+[ ]+f9: R_M68HC12_PCREL_16 undefined
+0+fb <L1\+0xb3> lbcs 0+10 <start\+0x10>
+[ ]+fb: R_M68HC12_RL_JUMP \*ABS\*
+[ ]+fd: R_M68HC12_PCREL_16 undefined
+0+ff <L1\+0xb7> lbcs 0+10 <start\+0x10>
+[ ]+ff: R_M68HC12_RL_JUMP \*ABS\*
+[ ]+101: R_M68HC12_PCREL_16 undefined
+0+103 <L1\+0xbb> lbmi 0+10 <start\+0x10>
+[ ]+103: R_M68HC12_RL_JUMP \*ABS\*
+[ ]+105: R_M68HC12_PCREL_16 undefined
+0+107 <L1\+0xbf> lbvs 0+10 <start\+0x10>
+[ ]+107: R_M68HC12_RL_JUMP \*ABS\*
+[ ]+109: R_M68HC12_PCREL_16 undefined
+0+10b <L1\+0xc3> lbra 0+10 <start\+0x10>
+[ ]+10b: R_M68HC12_RL_JUMP \*ABS\*
+[ ]+10d: R_M68HC12_PCREL_16 undefined
+0+10f <L1\+0xc7> lbvc 0+10 <start\+0x10>
+[ ]+10f: R_M68HC12_RL_JUMP \*ABS\*
+[ ]+111: R_M68HC12_PCREL_16 undefined
+0+113 <L1\+0xcb> lbne 0+10 <start\+0x10>
+[ ]+113: R_M68HC12_RL_JUMP \*ABS\*
+[ ]+115: R_M68HC12_PCREL_16 undefined
+0+117 <L1\+0xcf> lbpl 0+10 <start\+0x10>
+[ ]+117: R_M68HC12_RL_JUMP \*ABS\*
+[ ]+119: R_M68HC12_PCREL_16 undefined
+0+11b <L1\+0xd3> lbrn 0+10 <start\+0x10>
+[ ]+11b: R_M68HC12_RL_JUMP \*ABS\*
+[ ]+11d: R_M68HC12_PCREL_16 undefined
+ ...
+0+1e7 <L2> rts
diff --git a/gas/testsuite/gas/m68hc11/branchs12.s b/gas/testsuite/gas/m68hc11/branchs12.s
new file mode 100644
index 0000000..6aa9b62
--- /dev/null
+++ b/gas/testsuite/gas/m68hc11/branchs12.s
@@ -0,0 +1,111 @@
+#
+# Try to verify all branchs for 68HC12
+# Ensures that PC-relative relocations are correct.
+#
+ sect .text
+ globl start
+
+start:
+L0:
+ ;; Branchs to defined symbols, positive offset < 128
+ bgt L1
+ bge L1
+ ble L1
+ blt L1
+ bhi L1
+ bhs L1
+ bcc L1
+ beq L1
+ bls L1
+ blo L1
+ bcs L1
+ bmi L1
+ bvs L1
+ bra L1
+ bvc L1
+ bne L1
+ bpl L1
+ brn L1
+
+ ;; Branchs to defined symbols, negative offset > -128
+ bgt L0
+ bge L0
+ ble L0
+ blt L0
+ bhi L0
+ bhs L0
+ bcc L0
+ beq L0
+ bls L0
+ blo L0
+ bcs L0
+ bmi L0
+ bvs L0
+ bra L0
+ bvc L0
+ bne L0
+ bpl L0
+ brn L0
+L1:
+ ;; Branchs to defined symbols, positive offset > -128
+ lbgt L2
+ lbge L2
+ lble L2
+ lblt L2
+ lbhi L2
+ lbhs L2
+ lbcc L2
+ lbeq L2
+ lbls L2
+ lblo L2
+ lbcs L2
+ lbmi L2
+ lbvs L2
+ lbra L2
+ lbvc L2
+ lbne L2
+ lbpl L2
+ lbrn L2
+
+ ;; Branchs to undefined symbols, translated into lbcc
+ bgt undefined
+ bge undefined
+ ble undefined
+ blt undefined
+ bhi undefined
+ bhs undefined
+ bcc undefined
+ beq undefined
+ bls undefined
+ blo undefined
+ bcs undefined
+ bmi undefined
+ bvs undefined
+ bra undefined
+ bvc undefined
+ bne undefined
+ bpl undefined
+ brn undefined
+
+ ;; Far branchs to undefined symbols
+ lbgt undefined+16
+ lbge undefined+16
+ lble undefined+16
+ lblt undefined+16
+ lbhi undefined+16
+ lbhs undefined+16
+ lbcc undefined+16
+ lbeq undefined+16
+ lbls undefined+16
+ lblo undefined+16
+ lbcs undefined+16
+ lbmi undefined+16
+ lbvs undefined+16
+ lbra undefined+16
+ lbvc undefined+16
+ lbne undefined+16
+ lbpl undefined+16
+ lbrn undefined+16
+ .skip 200
+L2:
+ rts
diff --git a/gas/testsuite/gas/m68hc11/insns-dwarf2.d b/gas/testsuite/gas/m68hc11/insns-dwarf2.d
index 419d69b..0ecea96 100644
--- a/gas/testsuite/gas/m68hc11/insns-dwarf2.d
+++ b/gas/testsuite/gas/m68hc11/insns-dwarf2.d
@@ -9,20 +9,20 @@
Disassembly of section .text:
-0+0 <_start>:
+00000000 <_start>:
.globl _start
.sect .text
_start:
lds #stack\+1024
- 0: 8e 04 00 lds #400 <L1\+0x3a9>
+ 0: 8e 04 00 lds #400 <.L0\+0x3a4>
ldx #1
3: ce 00 01 ldx #1 <_start\+0x1>
-00000006 <Loop>:
+0+06 <Loop>:
Loop:
jsr test
- 6: bd 00 10 jsr 10 <test>
+ 6: bd 00 00 jsr 0 <_start>
dex
9: 09 dex
bne Loop
@@ -43,7 +43,7 @@ test:
ldd #2
10: cc 00 02 ldd #2 <_start\+0x2>
jsr test2
- 13: bd 00 17 jsr 17 <test2>
+ 13: bd 00 00 jsr 0 <_start>
rts
16: 39 rts
@@ -87,7 +87,7 @@ test2:
brclr \*ZD2\+2, #40, test2
3d: 13 02 28 d6 brclr \*2 <_start\+0x2> #\$28 17 <test2>
ldy #24\+_start-44
- 41: 18 ce ff ec ldy #ffec <L1\+0xff95>
+ 41: 18 ce ff ec ldy #ffec <.L0\+0xff90>
ldd B_low,y
45: 18 ec 0c ldd 12,y
addd A_low,y
@@ -99,9 +99,9 @@ test2:
subd #A_low
51: 83 00 2c subd #2c <test2\+0x15>
jmp Stop
- 54: 7e 00 0c jmp c <Stop>
+ 54: 7e 00 00 jmp 0 <_start>
-0+057 <L1>:
+00000057 <L1>:
L1:
anda #%lo\(test2\)
57: 84 17 anda #23
diff --git a/gas/testsuite/gas/m68hc11/insns.d b/gas/testsuite/gas/m68hc11/insns.d
index fe09680..520b2e1 100644
--- a/gas/testsuite/gas/m68hc11/insns.d
+++ b/gas/testsuite/gas/m68hc11/insns.d
@@ -1,4 +1,4 @@
-#objdump: -d --prefix-addresses
+#objdump: -d --prefix-addresses --reloc
#as: -m68hc11
#name: insns
@@ -7,38 +7,59 @@
.*: +file format elf32\-m68hc11
Disassembly of section .text:
-0+000 <_start> lds #0+0400 <L1\+0x3a9>
-0+003 <_start\+0x3> ldx #0+0001 <_start\+0x1>
-0+006 <Loop> jsr 0+0010 <test>
-0+009 <Loop\+0x3> dex
-0+00a <Loop\+0x4> bne 0+0006 <Loop>
-0+00c <Stop> .byte 0xcd, 0x03
-0+00e <Stop\+0x2> bra 0+0000 <_start>
-0+010 <test> ldd #0+0002 <_start\+0x2>
-0+013 <test\+0x3> jsr 0+0017 <test2>
-0+016 <test\+0x6> rts
-0+017 <test2> ldx 23,y
-0+01a <test2\+0x3> std 23,x
-0+01c <test2\+0x5> ldd 0,x
-0+01e <test2\+0x7> sty 0,y
-0+021 <test2\+0xa> stx 0,y
-0+024 <test2\+0xd> brclr 6,x #\$04 00000017 <test2>
-0+028 <test2\+0x11> brclr 12,x #\$08 00000017 <test2>
-0+02c <test2\+0x15> ldd \*0+0 <_start>
-0+02e <test2\+0x17> ldx \*0+2 <_start\+0x2>
-0+030 <test2\+0x19> clr 0+0 <_start>
-0+033 <test2\+0x1c> clr 0+1 <_start\+0x1>
-0+036 <test2\+0x1f> bne 0+34 <test2\+0x1d>
-0+038 <test2\+0x21> beq 0+3c <test2\+0x25>
-0+03a <test2\+0x23> bclr \*0+1 <_start\+0x1> #\$20
-0+03d <test2\+0x26> brclr \*0+2 <_start\+0x2> #\$28 0+017 <test2>
-0+041 <test2\+0x2a> ldy #0+ffec <L1\+0xff95>
-0+045 <test2\+0x2e> ldd 12,y
-0+048 <test2\+0x31> addd 44,y
-0+04b <test2\+0x34> addd 50,y
-0+04e <test2\+0x37> subd 0+02c <test2\+0x15>
-0+051 <test2\+0x3a> subd #0+02c <test2\+0x15>
-0+054 <test2\+0x3d> jmp 0000000c <Stop>
-0+057 <L1> anda #23
-0+059 <L1\+0x2> andb #0
-0+05b <L1\+0x4> rts \ No newline at end of file
+0+0+ <_start> lds #0+0400 <L1\+0x3a9>
+[ ]+1: R_M68HC11_16 stack
+0+0003 <_start\+0x3> ldx #0+0001 <_start\+0x1>
+0+0006 <Loop> jsr 0+0+ <_start>
+[ ]+6: R_M68HC11_RL_JUMP \*ABS\*
+[ ]+7: R_M68HC11_16 test
+0+0009 <Loop\+0x3> dex
+0+000a <Loop\+0x4> bne 0+0006 <Loop>
+[ ]+a: R_M68HC11_RL_JUMP \*ABS\*
+0+000c <Stop> .byte 0xcd, 0x03
+0+000e <Stop\+0x2> bra 0+0+ <_start>
+[ ]+e: R_M68HC11_RL_JUMP \*ABS\*
+0+0010 <test> ldd #0+0002 <_start\+0x2>
+0+0013 <test\+0x3> jsr 0+0+ <_start>
+[ ]+13: R_M68HC11_RL_JUMP \*ABS\*
+[ ]+14: R_M68HC11_16 test2
+0+0016 <test\+0x6> rts
+0+0017 <test2> ldx 23,y
+0+001a <test2\+0x3> std 23,x
+0+001c <test2\+0x5> ldd 0,x
+0+001e <test2\+0x7> sty 0,y
+0+0021 <test2\+0xa> stx 0,y
+0+0024 <test2\+0xd> brclr 6,x #\$04 0+0017 <test2>
+[ ]+24: R_M68HC11_RL_JUMP \*ABS\*
+0+0028 <test2\+0x11> brclr 12,x #\$08 0+0017 <test2>
+[ ]+28: R_M68HC11_RL_JUMP \*ABS\*
+0+002c <test2\+0x15> ldd \*0+0+ <_start>
+[ ]+2d: R_M68HC11_8 ZD1
+0+002e <test2\+0x17> ldx \*0+0002 <_start\+0x2>
+[ ]+2f: R_M68HC11_8 ZD1
+0+0030 <test2\+0x19> clr 0+0+ <_start>
+[ ]+31: R_M68HC11_16 ZD2
+0+0033 <test2\+0x1c> clr 0+0001 <_start\+0x1>
+[ ]+34: R_M68HC11_16 ZD2
+0+0036 <test2\+0x1f> bne 0+0034 <test2\+0x1d>
+0+0038 <test2\+0x21> beq 0+003c <test2\+0x25>
+0+003a <test2\+0x23> bclr \*0+0001 <_start\+0x1> #\$20
+[ ]+3b: R_M68HC11_8 ZD1
+0+003d <test2\+0x26> brclr \*0+0002 <_start\+0x2> #\$28 0+0017 <test2>
+[ ]+3d: R_M68HC11_RL_JUMP \*ABS\*
+[ ]+3e: R_M68HC11_8 ZD2
+0+0041 <test2\+0x2a> ldy #0+ffec <L1\+0xff95>
+[ ]+43: R_M68HC11_16 _start
+0+0045 <test2\+0x2e> ldd 12,y
+0+0048 <test2\+0x31> addd 44,y
+0+004b <test2\+0x34> addd 50,y
+0+004e <test2\+0x37> subd 0+002c <test2\+0x15>
+0+0051 <test2\+0x3a> subd #0+002c <test2\+0x15>
+0+0054 <test2\+0x3d> jmp 0+0+ <_start>
+[ ]+54: R_M68HC11_RL_JUMP \*ABS\*
+[ ]+55: R_M68HC11_16 Stop
+0+0057 <L1> anda #23
+[ ]+58: R_M68HC11_LO8 .text
+0+0059 <L1\+0x2> andb #0
+[ ]+5a: R_M68HC11_HI8 .text
+0+005b <L1\+0x4> rts
diff --git a/gas/testsuite/gas/m68hc11/insns12.d b/gas/testsuite/gas/m68hc11/insns12.d
new file mode 100644
index 0000000..57ed84b
--- /dev/null
+++ b/gas/testsuite/gas/m68hc11/insns12.d
@@ -0,0 +1,85 @@
+#objdump: -d --prefix-addresses --reloc
+#as: -m68hc12
+#name: insns12
+
+.*: +file format elf32-m68hc12
+
+Disassembly of section .text:
+0+ <call_test> call 0+ <call_test> \{0+ <call_test>, 0\}
+ 0: R_M68HC12_RL_JUMP \*ABS\*
+ 1: R_M68HC12_24 _foo
+0+4 <call_test\+0x4> call 0+ <call_test> \{0+ <call_test>, 1\}
+ 4: R_M68HC12_RL_JUMP \*ABS\*
+ 5: R_M68HC12_LO16 _foo
+0+8 <call_test\+0x8> call 0+ <call_test> \{0+ <call_test>, 0\}
+ 8: R_M68HC12_RL_JUMP \*ABS\*
+ 9: R_M68HC12_LO16 _foo
+ b: R_M68HC12_PAGE foo_page
+0+c <call_test\+0xc> call 0,X, 3
+ c: R_M68HC12_RL_JUMP \*ABS\*
+0+f <call_test\+0xf> call 4,Y, 12
+ f: R_M68HC12_RL_JUMP \*ABS\*
+0+12 <call_test\+0x12> call 7,SP, 13
+ 12: R_M68HC12_RL_JUMP \*ABS\*
+0+15 <call_test\+0x15> call 12,X, 0
+ 15: R_M68HC12_RL_JUMP \*ABS\*
+ 17: R_M68HC12_PAGE foo_page
+0+18 <call_test\+0x18> call 4,Y, 0
+ 18: R_M68HC12_RL_JUMP \*ABS\*
+ 1a: R_M68HC12_PAGE foo_page
+0+1b <call_test\+0x1b> call 7,SP, 0
+ 1b: R_M68HC12_RL_JUMP \*ABS\*
+ 1d: R_M68HC12_PAGE foo_page
+0+1e <call_test\+0x1e> call \[D,X\]
+ 1e: R_M68HC12_RL_JUMP \*ABS\*
+0+20 <call_test\+0x20> ldab \[32767,SP\]
+0+24 <call_test\+0x24> call \[2048,SP\]
+ 24: R_M68HC12_RL_JUMP \*ABS\*
+0+28 <call_test\+0x28> call \[0,X\]
+ 28: R_M68HC12_RL_JUMP \*ABS\*
+ 2a: R_M68HC12_16 _foo
+0+2c <call_test\+0x2c> rtc
+0+2d <special_test> emacs 0+ <call_test>
+ 2f: R_M68HC12_16 _foo
+0+31 <special_test\+0x4> maxa 0,X
+0+34 <special_test\+0x7> maxa 819,Y
+0+39 <special_test\+0xc> maxa \[D,X\]
+0+3c <special_test\+0xf> maxa \[0,X\]
+ 3f: R_M68HC12_16 _foo
+0+41 <special_test\+0x14> maxm 0,X
+0+44 <special_test\+0x17> maxm 819,Y
+0+49 <special_test\+0x1c> maxm \[D,X\]
+0+4c <special_test\+0x1f> maxm \[0,X\]
+ 4f: R_M68HC12_16 _foo
+0+51 <special_test\+0x24> emaxd 0,X
+0+54 <special_test\+0x27> emaxd 819,Y
+0+59 <special_test\+0x2c> emaxd \[D,X\]
+0+5c <special_test\+0x2f> emaxd \[0,X\]
+ 5f: R_M68HC12_16 _foo
+0+61 <special_test\+0x34> emaxm 0,X
+0+64 <special_test\+0x37> emaxm 819,Y
+0+69 <special_test\+0x3c> emaxm \[D,X\]
+0+6c <special_test\+0x3f> emaxm \[0,X\]
+ 6f: R_M68HC12_16 _foo
+0+71 <special_test\+0x44> mina 0,X
+0+74 <special_test\+0x47> mina 819,Y
+0+79 <special_test\+0x4c> mina \[D,X\]
+0+7c <special_test\+0x4f> mina \[0,X\]
+ 7f: R_M68HC12_16 _foo
+0+81 <special_test\+0x54> minm 0,X
+0+84 <special_test\+0x57> minm 819,Y
+0+89 <special_test\+0x5c> minm \[D,X\]
+0+8c <special_test\+0x5f> minm \[0,X\]
+ 8f: R_M68HC12_16 _foo
+0+91 <special_test\+0x64> emind 0,X
+0+94 <special_test\+0x67> emind 819,Y
+0+99 <special_test\+0x6c> emind \[D,X\]
+0+9c <special_test\+0x6f> emind \[0,X\]
+ 9f: R_M68HC12_16 _foo
+0+a1 <special_test\+0x74> emul
+0+a2 <special_test\+0x75> emuls
+0+a4 <special_test\+0x77> etbl 3,X
+0+a7 <special_test\+0x7a> etbl 4,PC
+0+aa <special_test\+0x7d> rev
+0+ac <special_test\+0x7f> revw
+0+ae <special_test\+0x81> wav
diff --git a/gas/testsuite/gas/m68hc11/insns12.s b/gas/testsuite/gas/m68hc11/insns12.s
new file mode 100644
index 0000000..34364fd
--- /dev/null
+++ b/gas/testsuite/gas/m68hc11/insns12.s
@@ -0,0 +1,71 @@
+# Test for correct generation of 68HC12 specific insns.
+
+ .sect .text
+
+;; Test the call insns
+call_test:
+ call _foo ; 24-bit reloc
+ call _foo,1 ; 16-bit reloc, immediate page specification
+ call _foo,foo_page ; 16-bit reloc and 8-bit page reloc
+ call 0,x,3 ; 8-bit page reloc
+ call 4,y,12
+ call 7,sp,13
+ call 12,x,foo_page ; 8-bit page reloc
+ call 4,y,foo_page
+ call 7,sp,foo_page
+ call [d,x] ; No reloc
+ ldab [32767,sp]
+ call [2048,sp] ; No reloc
+ call [_foo,x] ; 16-bit reloc
+ rtc
+;; Test special insn
+special_test:
+ emacs _foo ; Wonderful, Emacs as a single instruction!
+
+;; Min instruction
+ maxa 0,x
+ maxa 819,y
+ maxa [d,x]
+ maxa [_foo,x]
+
+ maxm 0,x
+ maxm 819,y
+ maxm [d,x]
+ maxm [_foo,x]
+
+ emaxd 0,x
+ emaxd 819,y
+ emaxd [d,x]
+ emaxd [_foo,x]
+
+ emaxm 0,x
+ emaxm 819,y
+ emaxm [d,x]
+ emaxm [_foo,x]
+
+;; Min instruction
+ mina 0,x
+ mina 819,y
+ mina [d,x]
+ mina [_foo,x]
+
+ minm 0,x
+ minm 819,y
+ minm [d,x]
+ minm [_foo,x]
+
+ emind 0,x
+ emind 819,y
+ emind [d,x]
+ emind [_foo,x]
+;; Mul
+ emul
+ emuls
+ etbl 3,x
+ etbl 4,pc
+
+;;
+ rev
+ revw
+ wav
+;;
diff --git a/gas/testsuite/gas/m68hc11/lbranch-dwarf2.d b/gas/testsuite/gas/m68hc11/lbranch-dwarf2.d
index 1f896b5..1122680 100644
--- a/gas/testsuite/gas/m68hc11/lbranch-dwarf2.d
+++ b/gas/testsuite/gas/m68hc11/lbranch-dwarf2.d
@@ -9,56 +9,56 @@
Disassembly of section .text:
-0+0 <_rcall>:
+0+00 <_rcall>:
.globl _rcall
.globl _start
_start:
_rcall:
- ldaa \#0x10 ;86 10
- 0: 86 10 ldaa \#16
+ ldaa #0x10 ;86 10
+ 0: 86 10 ldaa #16
jbra Lend ; Must be switched to a jmp
- 2: 7e 01 0b jmp 10b <Lend>
- jbsr toto ; \-> to a jsr
- 5: bd 01 1b jsr 11b <toto>
- jbne toto ; \-> to a beq\+jmp
+ 2: 7e 00 00 jmp 0 <_rcall>
+ jbsr toto ; -> to a jsr
+ 5: bd 00 00 jsr 0 <_rcall>
+ jbne toto ; -> to a beq\+jmp
8: 27 03 beq d <_rcall\+0xd>
- a: 7e 01 1b jmp 11b <toto>
+ a: 7e 00 00 jmp 0 <_rcall>
jbeq toto ; -> to a bne\+jmp
d: 26 03 bne 12 <_rcall\+0x12>
- f: 7e 01 1b jmp 11b <toto>
+ f: 7e 00 00 jmp 0 <_rcall>
jbcs toto ; -> to a bcc\+jmp
12: 24 03 bcc 17 <_rcall\+0x17>
- 14: 7e 01 1b jmp 11b <toto>
+ 14: 7e 00 00 jmp 0 <_rcall>
jbcc toto ; -> to a bcs\+jmp
17: 25 03 bcs 1c <_rcall\+0x1c>
- 19: 7e 01 1b jmp 11b <toto>
+ 19: 7e 00 00 jmp 0 <_rcall>
xgdx
1c: 8f xgdx
xgdx
1d: 8f xgdx
beq bidule ; -> to a bne\+jmp
1e: 26 03 bne 23 <_rcall\+0x23>
- 20: 7e 01 80 jmp 180 <bidule>
+ 20: 7e 00 00 jmp 0 <_rcall>
bcs bidule ; -> to a bcc\+jmp
23: 24 03 bcc 28 <_rcall\+0x28>
- 25: 7e 01 80 jmp 180 <bidule>
+ 25: 7e 00 00 jmp 0 <_rcall>
bcc bidule ; -> to a bcs\+jmp
28: 25 03 bcs 2d <_rcall\+0x2d>
- 2a: 7e 01 80 jmp 180 <bidule>
+ 2a: 7e 00 00 jmp 0 <_rcall>
xgdx
2d: 8f xgdx
jbra 200
2e: 7e 00 c8 jmp c8 <_rcall\+0xc8>
jbsr 1923
- 31: bd 07 83 jsr 783 <bidule\+0x603>
+ 31: bd 07 83 jsr 783 <.L0\+0x602>
bne Lend ; -> to a beq\+jmp
34: 27 03 beq 39 <_rcall\+0x39>
- 36: 7e 01 0b jmp 10b <Lend>
+ 36: 7e 00 00 jmp 0 <_rcall>
jbsr toto
- 39: bd 01 1b jsr 11b <toto>
+ 39: bd 00 00 jsr 0 <_rcall>
jbeq toto
3c: 26 03 bne 41 <_rcall\+0x41>
- 3e: 7e 01 1b jmp 11b <toto>
+ 3e: 7e 00 00 jmp 0 <_rcall>
...
.skip 200
ldaa \*dir ;96 33
diff --git a/gas/testsuite/gas/m68hc11/lbranch.d b/gas/testsuite/gas/m68hc11/lbranch.d
index 74cda03..4770a4a 100644
--- a/gas/testsuite/gas/m68hc11/lbranch.d
+++ b/gas/testsuite/gas/m68hc11/lbranch.d
@@ -1,4 +1,4 @@
-#objdump: -d --prefix-addresses
+#objdump: -d --prefix-addresses --reloc
#as: -m68hc11
#name: lbranch
@@ -7,41 +7,74 @@
.*: +file format elf32\-m68hc11
Disassembly of section .text:
-0+0000 <_rcall> ldaa #16
-0+0002 <_rcall\+0x2> jmp 0+010b <Lend>
-0+0005 <_rcall\+0x5> jsr 0+011b <toto>
+0+0+ <_rcall> ldaa #16
+0+0002 <_rcall\+0x2> jmp 0+0+ <_rcall>
+[ ]+2: R_M68HC11_RL_JUMP \*ABS\*
+[ ]+3: R_M68HC11_16 Lend
+0+0005 <_rcall\+0x5> jsr 0+0+ <_rcall>
+[ ]+5: R_M68HC11_RL_JUMP \*ABS\*
+[ ]+6: R_M68HC11_16 toto
0+0008 <_rcall\+0x8> beq 0+000d <_rcall\+0xd>
-0+000a <_rcall\+0xa> jmp 0+011b <toto>
+[ ]+8: R_M68HC11_RL_JUMP \*ABS\*
+0+000a <_rcall\+0xa> jmp 0+0+ <_rcall>
+[ ]+b: R_M68HC11_16 toto
0+000d <_rcall\+0xd> bne 0+0012 <_rcall\+0x12>
-0+000f <_rcall\+0xf> jmp 0+011b <toto>
+[ ]+d: R_M68HC11_RL_JUMP \*ABS\*
+0+000f <_rcall\+0xf> jmp 0+0+ <_rcall>
+[ ]+10: R_M68HC11_16 toto
0+0012 <_rcall\+0x12> bcc 0+0017 <_rcall\+0x17>
-0+0014 <_rcall\+0x14> jmp 0+011b <toto>
+[ ]+12: R_M68HC11_RL_JUMP \*ABS\*
+0+0014 <_rcall\+0x14> jmp 0+0+ <_rcall>
+[ ]+15: R_M68HC11_16 toto
0+0017 <_rcall\+0x17> bcs 0+001c <_rcall\+0x1c>
-0+0019 <_rcall\+0x19> jmp 0+011b <toto>
+[ ]+17: R_M68HC11_RL_JUMP \*ABS\*
+0+0019 <_rcall\+0x19> jmp 0+0+ <_rcall>
+[ ]+1a: R_M68HC11_16 toto
0+001c <_rcall\+0x1c> xgdx
0+001d <_rcall\+0x1d> xgdx
0+001e <_rcall\+0x1e> bne 0+0023 <_rcall\+0x23>
-0+0020 <_rcall\+0x20> jmp 0+0180 <bidule>
+[ ]+1e: R_M68HC11_RL_JUMP \*ABS\*
+0+0020 <_rcall\+0x20> jmp 0+0+ <_rcall>
+[ ]+21: R_M68HC11_16 bidule
0+0023 <_rcall\+0x23> bcc 0+0028 <_rcall\+0x28>
-0+0025 <_rcall\+0x25> jmp 0+0180 <bidule>
+[ ]+23: R_M68HC11_RL_JUMP \*ABS\*
+0+0025 <_rcall\+0x25> jmp 0+0+ <_rcall>
+[ ]+26: R_M68HC11_16 bidule
0+0028 <_rcall\+0x28> bcs 0+002d <_rcall\+0x2d>
-0+002a <_rcall\+0x2a> jmp 0+0180 <bidule>
+[ ]+28: R_M68HC11_RL_JUMP \*ABS\*
+0+002a <_rcall\+0x2a> jmp 0+0+ <_rcall>
+[ ]+2b: R_M68HC11_16 bidule
0+002d <_rcall\+0x2d> xgdx
0+002e <_rcall\+0x2e> jmp 0+00c8 <_rcall\+0xc8>
+[ ]+2e: R_M68HC11_RL_JUMP \*ABS\*
0+0031 <_rcall\+0x31> jsr 0+0783 <bidule\+0x603>
+[ ]+31: R_M68HC11_RL_JUMP \*ABS\*
0+0034 <_rcall\+0x34> beq 0+0039 <_rcall\+0x39>
-0+0036 <_rcall\+0x36> jmp 0+010b <Lend>
-0+0039 <_rcall\+0x39> jsr 0+011b <toto>
+[ ]+34: R_M68HC11_RL_JUMP \*ABS\*
+0+0036 <_rcall\+0x36> jmp 0+0+ <_rcall>
+[ ]+37: R_M68HC11_16 Lend
+0+0039 <_rcall\+0x39> jsr 0+0+ <_rcall>
+[ ]+39: R_M68HC11_RL_JUMP \*ABS\*
+[ ]+3a: R_M68HC11_16 toto
0+003c <_rcall\+0x3c> bne 0+0041 <_rcall\+0x41>
-0+003e <_rcall\+0x3e> jmp 0+011b <toto>
-[ ]*\.\.\.
-0+0109 <_rcall\+0x109> ldaa \*0+0000 <_rcall>
+[ ]+3c: R_M68HC11_RL_JUMP \*ABS\*
+0+003e <_rcall\+0x3e> jmp 0+0+ <_rcall>
+[ ]+3f: R_M68HC11_16 toto
+ ...
+0+0109 <_rcall\+0x109> ldaa \*0+0+ <_rcall>
+[ ]+10a: R_M68HC11_8 .page0
0+010b <Lend> bls 0+0110 <Lend\+0x5>
-0+010d <Lend\+0x2> jmp 0+0000 <_rcall>
+[ ]+10b: R_M68HC11_RL_JUMP \*ABS\*
+0+010d <Lend\+0x2> jmp 0+0+ <_rcall>
+[ ]+10e: R_M68HC11_16 external_op
0+0110 <Lend\+0x5> bhi 0+0115 <Lend\+0xa>
-0+0112 <Lend\+0x7> jmp 0+0000 <_rcall>
-0+0115 <Lend\+0xa> jsr 0+0000 <_rcall>
+[ ]+110: R_M68HC11_RL_JUMP \*ABS\*
+0+0112 <Lend\+0x7> jmp 0+0+ <_rcall>
+[ ]+113: R_M68HC11_16 external_op
+0+0115 <Lend\+0xa> jsr 0+0+ <_rcall>
+[ ]+115: R_M68HC11_RL_JUMP \*ABS\*
+[ ]+116: R_M68HC11_16 out
0+0118 <Lend\+0xd> ldx #0+000c <_rcall\+0xc>
0+011b <toto> rts
-[ ]*\.\.\.
+ ...
0+0180 <bidule> rts
diff --git a/gas/testsuite/gas/m68hc11/opers12-dwarf2.d b/gas/testsuite/gas/m68hc11/opers12-dwarf2.d
index e8944af..04cc835 100644
--- a/gas/testsuite/gas/m68hc11/opers12-dwarf2.d
+++ b/gas/testsuite/gas/m68hc11/opers12-dwarf2.d
@@ -7,7 +7,7 @@
Disassembly of section .text:
-0+0 <start>:
+0+00 <start>:
sect .text
globl start
@@ -17,9 +17,9 @@ start:
ldaa #10
4: 86 0a ldaa #10
ldx L1
- 6: fe 00 09 ldx 9 <L1>
+ 6: fe 00 00 ldx 0 <start>
-00000009 <L1>:
+0+09 <L1>:
L1: ldy ,x
9: ed 00 ldy 0,X
addd 1,y ; Offset from register
@@ -118,24 +118,24 @@ L1: ldy ,x
movb #23, 1,\-sp
84: 18 08 af 17 movb #23, 1,\-SP
movb L1, L2
- 88: 18 0c 00 09 movb 9 <L1>, bc <L2>
- 8c: 00 bc
+ 88: 18 0c 00 00 movb 0 <start>, 0 <start>
+ 8c: 00 00
movb L1, a,x
- 8e: 18 09 e4 00 movb 9 <L1>, A,X
- 92: 09
+ 8e: 18 09 e4 00 movb 0 <start>, A,X
+ 92: 00
movw L1, b,x
- 93: 18 01 e5 00 movw 9 <L1>, B,X
- 97: 09
+ 93: 18 01 e5 00 movw 0 <start>, B,X
+ 97: 00
movw L1, d,x
- 98: 18 01 e6 00 movw 9 <L1>, D,X
- 9c: 09
+ 98: 18 01 e6 00 movw 0 <start>, D,X
+ 9c: 00
movw d,x, a,x
9d: 18 02 e6 e4 movw D,X, A,X
movw b,sp, d,pc
a1: 18 02 f5 fe movw B,SP, D,PC
movw b,sp, L1
- a5: 18 05 f5 00 movw B,SP, 9 <L1>
- a9: 09
+ a5: 18 05 f5 00 movw B,SP, 0 <start>
+ a9: 00
movw b,sp, 1,x
aa: 18 02 f5 01 movw B,SP, 1,X
movw d,x, a,y
@@ -151,7 +151,7 @@ L1: ldy ,x
trap #255
ba: 18 ff trap #255
-000000bc <L2>:
+0+bc <L2>:
L2:
movw 1,x,2,x
bc: 18 02 01 02 movw 1,X, 2,X
@@ -185,7 +185,7 @@ L2:
rts
f0: 3d rts
-000000f1 <post_indexed_pb>:
+0+f1 <post_indexed_pb>:
;;
;; Post\-index byte with relocation
;;
@@ -194,7 +194,7 @@ t1:
leas abort,x
f1: 1b e2 00 00 leas 0,X
-000000f5 <t2>:
+0+f5 <t2>:
t2:
leax t2\-t1,y
f5: 1a 44 leax 4,Y
@@ -219,7 +219,7 @@ t2:
;; Disassembler bug with movb
;;
movb #23,0x2345
- 117: 18 0b 17 23 movb #23, 2345 <max9b\+0x2246>
+ 117: 18 0b 17 23 movb #23, 2345 <.L0\+0x2208>
11b: 45
movb #40,12,sp
11c: 18 08 8c 28 movb #40, 12,SP
@@ -237,5 +237,5 @@ t2:
133: 18 00 a2 39 movw #3900 <bb\+0x1100>, 3,\+SP
137: 00
movw #0x2000,14,sp
- 138: 18 00 8e 20 movw #2000 <max9b\+0x1f01>, 14,SP
+ 138: 18 00 8e 20 movw #2000 <.L0\+0x1ec3>, 14,SP
13c: 00
diff --git a/gas/testsuite/gas/m68hc11/opers12.d b/gas/testsuite/gas/m68hc11/opers12.d
index 645a5fe..c38c0b1 100644
--- a/gas/testsuite/gas/m68hc11/opers12.d
+++ b/gas/testsuite/gas/m68hc11/opers12.d
@@ -1,98 +1,114 @@
-#objdump: -d --prefix-addresses
+#objdump: -d --prefix-addresses --reloc
#as: -m68hc12
#name: opers
.*: +file format elf32\-m68hc12
Disassembly of section .text:
-0+000 <start> anda \[12,X\]
-0+004 <start\+0x4> ldaa #10
-0+006 <start\+0x6> ldx 0+009 <L1>
-0+009 <L1> ldy 0,X
-0+00b <L1\+0x2> addd 1,Y
-0+00d <L1\+0x4> subd -1,Y
-0+00f <L1\+0x6> eora 15,Y
-0+011 <L1\+0x8> eora -16,Y
-0+013 <L1\+0xa> eorb 16,Y
-0+016 <L1\+0xd> eorb -17,Y
-0+019 <L1\+0x10> oraa 128,SP
-0+01c <L1\+0x13> orab -128,SP
-0+01f <L1\+0x16> orab 255,X
-0+022 <L1\+0x19> orab -256,X
-0+025 <L1\+0x1c> anda 256,X
-0+029 <L1\+0x20> andb -257,X
-0+02d <L1\+0x24> anda \[12,X\]
-0+031 <L1\+0x28> ldaa \[257,Y\]
-0+035 <L1\+0x2c> ldab \[32767,SP\]
-0+039 <L1\+0x30> ldd \[32768,PC\]
-0+03d <L1\+0x34> ldd 9,PC
-0+040 <L1\+0x37> std A,X
-0+042 <L1\+0x39> ldx B,X
-0+044 <L1\+0x3b> stx D,Y
-0+046 <L1\+0x3d> addd 1,\+X
-0+048 <L1\+0x3f> addd 2,\+X
-0+04a <L1\+0x41> addd 8,\+X
-0+04c <L1\+0x43> addd 1,SP\+
-0+04e <L1\+0x45> addd 2,SP\+
-0+050 <L1\+0x47> addd 8,SP\+
-0+052 <L1\+0x49> subd 1,\-Y
-0+054 <L1\+0x4b> subd 2,\-Y
-0+056 <L1\+0x4d> subd 8,\-Y
-0+058 <L1\+0x4f> addd 1,Y\-
-0+05a <L1\+0x51> addd 2,Y\-
-0+05c <L1\+0x53> addd 8,Y\-
-0+05e <L1\+0x55> std \[D,X\]
-0+060 <L1\+0x57> std \[D,Y\]
-0+062 <L1\+0x59> std \[D,SP\]
-0+064 <L1\+0x5b> std \[D,PC\]
-0+066 <L1\+0x5d> beq 0+009 <L1>
-0+068 <L1\+0x5f> lbeq 0+000 <start>
-0+06c <L1\+0x63> lbcc 0+0bc <L2>
-0+070 <L1\+0x67> movb 0+000 <start>, 1,X
-0+075 <L1\+0x6c> movw 1,X, 0+000 <start>
-0+07a <L1\+0x71> movb 0+000 <start>, 1,\+X
-0+07f <L1\+0x76> movb 0+000 <start>, 1,\-X
-0+084 <L1\+0x7b> movb #23, 1,\-SP
-0+088 <L1\+0x7f> movb 0+009 <L1>, 0+0bc <L2>
-0+08e <L1\+0x85> movb 0+009 <L1>, A,X
-0+093 <L1\+0x8a> movw 0+009 <L1>, B,X
-0+098 <L1\+0x8f> movw 0+009 <L1>, D,X
-0+09d <L1\+0x94> movw D,X, A,X
-0+0a1 <L1\+0x98> movw B,SP, D,PC
-0+0a5 <L1\+0x9c> movw B,SP, 0+009 <L1>
-0+0aa <L1\+0xa1> movw B,SP, 1,X
-0+0ae <L1\+0xa5> movw D,X, A,Y
-0+0b2 <L1\+0xa9> trap #48
-0+0b4 <L1\+0xab> trap #57
-0+0b6 <L1\+0xad> trap #64
-0+0b8 <L1\+0xaf> trap #128
-0+0ba <L1\+0xb1> trap #255
-0+0bc <L2> movw 1,X, 2,X
-0+0c0 <L2\+0x4> movw 0+0ffff <bb\+0xd7ff>, 0000ffff <bb\+0xd7ff>
-0+0c6 <L2\+0xa> movw 0+0ffff <bb\+0xd7ff>, 1,X
-0+0cb <L2\+0xf> movw #0+0ffff <bb\+0xd7ff>, 1,X
-0+0d0 <L2\+0x14> movw 0+03 <start\+0x3>, 0+08 <start\+0x8>
-0+0d6 <L2\+0x1a> movw #0+03 <start\+0x3>, 0+03 <start\+0x3>
-0+0dc <L2\+0x20> movw #0+03 <start\+0x3>, 1,X
-0+0e1 <L2\+0x25> movw 0+03 <start\+0x3>, 1,X
-0+0e6 <L2\+0x2a> movw 0+03 <start\+0x3>, 2,X
-0+0eb <L2\+0x2f> movw 0+04 <start\+0x4>, -2,X
-0+0f0 <L2\+0x34> rts
-0+0f1 <post_indexed_pb> leas 0,X
-0+0f5 <t2> leax 4,Y
-0+0f7 <t2\+0x2> leax 100,X
-0+0fb <t2\+0x6> leas 110,SP
-0+0ff <t2\+0xa> leay 10,X
-0+103 <t2\+0xe> leas 10240,Y
-0+107 <t2\+0x12> leas 255,PC
-0+10b <t2\+0x16> leas 0,PC
-0+10f <t2\+0x1a> leas 255,PC
-0+113 <t2\+0x1e> leas 0,PC
-0+117 <t2\+0x22> movb #23, 0+2345 <max9b\+0x2246>
-0+11c <t2\+0x27> movb #40, 12,SP
-0+120 <t2\+0x2b> movb #39, 3,\+SP
-0+124 <t2\+0x2f> movb #20, 14,SP
-0+128 <t2\+0x33> movw #0+3210 <bb\+0xa10>, 0+3456 <bb\+0xc56>
-0+12e <t2\+0x39> movw #0+4040 <bb\+0x1840>, 12,SP
-0+133 <t2\+0x3e> movw #0+3900 <bb\+0x1100>, 3,\+SP
-0+138 <t2\+0x43> movw #0+2000 <max9b\+0x1f01>, 14,SP
+0+0+ <start> anda \[12,X\]
+0+0004 <start\+0x4> ldaa #10
+0+0006 <start\+0x6> ldx 0+0+ <start>
+[ ]+7: R_M68HC12_16 L1
+0+0009 <L1> ldy 0,X
+0+000b <L1\+0x2> addd 1,Y
+0+000d <L1\+0x4> subd \-1,Y
+0+000f <L1\+0x6> eora 15,Y
+0+0011 <L1\+0x8> eora \-16,Y
+0+0013 <L1\+0xa> eorb 16,Y
+0+0016 <L1\+0xd> eorb \-17,Y
+0+0019 <L1\+0x10> oraa 128,SP
+0+001c <L1\+0x13> orab \-128,SP
+0+001f <L1\+0x16> orab 255,X
+0+0022 <L1\+0x19> orab \-256,X
+0+0025 <L1\+0x1c> anda 256,X
+0+0029 <L1\+0x20> andb \-257,X
+0+002d <L1\+0x24> anda \[12,X\]
+0+0031 <L1\+0x28> ldaa \[257,Y\]
+0+0035 <L1\+0x2c> ldab \[32767,SP\]
+0+0039 <L1\+0x30> ldd \[32768,PC\]
+0+003d <L1\+0x34> ldd 9,PC
+[ ]+3f: R_M68HC12_8 .text
+0+0040 <L1\+0x37> std A,X
+0+0042 <L1\+0x39> ldx B,X
+0+0044 <L1\+0x3b> stx D,Y
+0+0046 <L1\+0x3d> addd 1,\+X
+0+0048 <L1\+0x3f> addd 2,\+X
+0+004a <L1\+0x41> addd 8,\+X
+0+004c <L1\+0x43> addd 1,SP\+
+0+004e <L1\+0x45> addd 2,SP\+
+0+0050 <L1\+0x47> addd 8,SP\+
+0+0052 <L1\+0x49> subd 1,\-Y
+0+0054 <L1\+0x4b> subd 2,\-Y
+0+0056 <L1\+0x4d> subd 8,\-Y
+0+0058 <L1\+0x4f> addd 1,Y\-
+0+005a <L1\+0x51> addd 2,Y\-
+0+005c <L1\+0x53> addd 8,Y\-
+0+005e <L1\+0x55> std \[D,X\]
+0+0060 <L1\+0x57> std \[D,Y\]
+0+0062 <L1\+0x59> std \[D,SP\]
+0+0064 <L1\+0x5b> std \[D,PC\]
+0+0066 <L1\+0x5d> beq 0+0009 <L1>
+[ ]+66: R_M68HC12_RL_JUMP \*ABS\*
+0+0068 <L1\+0x5f> lbeq 0+0+ <start>
+[ ]+68: R_M68HC12_RL_JUMP \*ABS\*
+0+006c <L1\+0x63> lbcc 0+00bc <L2>
+[ ]+6c: R_M68HC12_RL_JUMP \*ABS\*
+0+0070 <L1\+0x67> movb 0+0+ <start>, 1,X
+[ ]+73: R_M68HC12_16 start
+0+0075 <L1\+0x6c> movw 1,X, 0+0+ <start>
+[ ]+78: R_M68HC12_16 start
+0+007a <L1\+0x71> movb 0+0+ <start>, 1,\+X
+[ ]+7d: R_M68HC12_16 start
+0+007f <L1\+0x76> movb 0+0+ <start>, 1,\-X
+[ ]+82: R_M68HC12_16 start
+0+0084 <L1\+0x7b> movb #23, 1,\-SP
+0+0088 <L1\+0x7f> movb 0+0+ <start>, 0+0+ <start>
+[ ]+8a: R_M68HC12_16 L1
+[ ]+8c: R_M68HC12_16 L2
+0+008e <L1\+0x85> movb 0+0+ <start>, A,X
+[ ]+91: R_M68HC12_16 L1
+0+0093 <L1\+0x8a> movw 0+0+ <start>, B,X
+[ ]+96: R_M68HC12_16 L1
+0+0098 <L1\+0x8f> movw 0+0+ <start>, D,X
+[ ]+9b: R_M68HC12_16 L1
+0+009d <L1\+0x94> movw D,X, A,X
+0+00a1 <L1\+0x98> movw B,SP, D,PC
+0+00a5 <L1\+0x9c> movw B,SP, 0+0+ <start>
+[ ]+a8: R_M68HC12_16 L1
+0+00aa <L1\+0xa1> movw B,SP, 1,X
+0+00ae <L1\+0xa5> movw D,X, A,Y
+0+00b2 <L1\+0xa9> trap #48
+0+00b4 <L1\+0xab> trap #57
+0+00b6 <L1\+0xad> trap #64
+0+00b8 <L1\+0xaf> trap #128
+0+00ba <L1\+0xb1> trap #255
+0+00bc <L2> movw 1,X, 2,X
+0+00c0 <L2\+0x4> movw 0+ffff <bb\+0xd7ff>, 0+ffff <bb\+0xd7ff>
+0+00c6 <L2\+0xa> movw 0+ffff <bb\+0xd7ff>, 1,X
+0+00cb <L2\+0xf> movw #0+ffff <bb\+0xd7ff>, 1,X
+0+00d0 <L2\+0x14> movw 0+0003 <start\+0x3>, 0+0008 <start\+0x8>
+0+00d6 <L2\+0x1a> movw #0+0003 <start\+0x3>, 0+0003 <start\+0x3>
+0+00dc <L2\+0x20> movw #0+0003 <start\+0x3>, 1,X
+0+00e1 <L2\+0x25> movw 0+0003 <start\+0x3>, 1,X
+0+00e6 <L2\+0x2a> movw 0+0003 <start\+0x3>, 2,X
+0+00eb <L2\+0x2f> movw 0+0004 <start\+0x4>, \-2,X
+0+00f0 <L2\+0x34> rts
+0+00f1 <post_indexed_pb> leas 0,X
+[ ]+f3: R_M68HC12_16 abort
+0+00f5 <t2> leax 4,Y
+0+00f7 <t2\+0x2> leax 100,X
+0+00fb <t2\+0x6> leas 110,SP
+0+00ff <t2\+0xa> leay 10,X
+0+0103 <t2\+0xe> leas 10240,Y
+0+0107 <t2\+0x12> leas 255,PC
+0+010b <t2\+0x16> leas 0,PC
+0+010f <t2\+0x1a> leas 255,PC
+0+0113 <t2\+0x1e> leas 0,PC
+0+0117 <t2\+0x22> movb #23, 0+2345 <max9b\+0x2246>
+0+011c <t2\+0x27> movb #40, 12,SP
+0+0120 <t2\+0x2b> movb #39, 3,\+SP
+0+0124 <t2\+0x2f> movb #20, 14,SP
+0+0128 <t2\+0x33> movw #0+3210 <bb\+0xa10>, 0+3456 <bb\+0xc56>
+0+012e <t2\+0x39> movw #0+4040 <bb\+0x1840>, 12,SP
+0+0133 <t2\+0x3e> movw #0+3900 <bb\+0x1100>, 3,\+SP
+0+0138 <t2\+0x43> movw #0+2000 <max9b\+0x1f01>, 14,SP