* gas/m68hc11/bug-1825.d (_table): Update.
authorStephane Carrez <stcarrez@nerim.fr>
Sat, 5 Apr 2003 13:09:36 +0000 (13:09 +0000)
committerStephane Carrez <stcarrez@nerim.fr>
Sat, 5 Apr 2003 13:09:36 +0000 (13:09 +0000)
* gas/m68hc11/bug-1825.s (_table): Add tests for 16-bit absolute relocs

gas/testsuite/ChangeLog
gas/testsuite/gas/m68hc11/bug-1825.d
gas/testsuite/gas/m68hc11/bug-1825.s

index 592a916cca073c323fa933a3ffed1c0bb2457eb7..c73f6c63a7da4b30c06a10c6377e1a812432aa2e 100644 (file)
@@ -1,3 +1,8 @@
+2003-04-05  Stephane Carrez  <stcarrez@nerim.fr>
+
+       * gas/m68hc11/bug-1825.d (_table): Update.
+       * gas/m68hc11/bug-1825.s (_table): Add tests for 16-bit absolute relocs
+
 2003-04-05  Stephane Carrez  <stcarrez@nerim.fr>
 
        * gas/m68hc11/insns.s: Add %page and %addr checks.
index 62c65b9b09ae894768d93cca92a19776e266a13c..0e0aa1168b49624b3e0ccb3eefee1a0b89f326ac 100644 (file)
@@ -107,7 +107,7 @@ L7:
        addd    _table\+12,pc
  549:  e3 f8 11        addd    17,PC \{55d <_table\+0xc>\}
        addd    _table\+16,pc
- 54c:  e3 f8 12        addd    18,PC \{561 <.L0\ 1>\}
+ 54c:  e3 f8 12        addd    18,PC \{561 <_table\+0x10>\}
        rts
  54f:  3d              rts
        nop
@@ -115,3 +115,14 @@ L7:
 
 0+551 <_table>:
        ...
+_table:
+       .ds.b   16,0
+       leax    _table,sp       ; 16\-bit absolute reloc
+ 561:  1a f2 00 00     leax    0,SP
+                       563: R_M68HC12_16       _table
+       leay    _table,x
+ 565:  19 e2 00 00     leay    0,X
+                       567: R_M68HC12_16       _table
+       leax    _table,y
+ 569:  1a ea 00 00     leax    0,Y
+                       56b: R_M68HC12_16       _table
index 69fbe149e9ab5e6b514b801733ce6e945da85a94..0f6b7295d367954af5d5d3ea1a87ad0fbf564b9a 100644 (file)
@@ -44,3 +44,6 @@ L7:
        nop
 _table:
        .ds.b   16,0
+       leax    _table,sp       ; 16-bit absolute reloc
+       leay    _table,x
+       leax    _table,y
This page took 0.027916 seconds and 4 git commands to generate.