diff options
author | Stephane Carrez <stcarrez@nerim.fr> | 2003-04-05 13:09:36 +0000 |
---|---|---|
committer | Stephane Carrez <stcarrez@nerim.fr> | 2003-04-05 13:09:36 +0000 |
commit | abdf8f8704a10cfe0734cdfac60af29340a0b3d2 (patch) | |
tree | 8dd0fd120d6ef3d2fb6318476afff61a168802e7 | |
parent | ab53523a33a3ffc4b894375f26fd22018248890d (diff) | |
download | gdb-abdf8f8704a10cfe0734cdfac60af29340a0b3d2.zip gdb-abdf8f8704a10cfe0734cdfac60af29340a0b3d2.tar.gz gdb-abdf8f8704a10cfe0734cdfac60af29340a0b3d2.tar.bz2 |
* gas/m68hc11/bug-1825.d (_table): Update.
* gas/m68hc11/bug-1825.s (_table): Add tests for 16-bit absolute relocs
-rw-r--r-- | gas/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gas/testsuite/gas/m68hc11/bug-1825.d | 13 | ||||
-rw-r--r-- | gas/testsuite/gas/m68hc11/bug-1825.s | 3 |
3 files changed, 20 insertions, 1 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 592a916..c73f6c6 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,5 +1,10 @@ 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. * gas/m68hc11/insns12.s: Likewise. * gas/m68hc11/insns-dwarf2.d: Update. diff --git a/gas/testsuite/gas/m68hc11/bug-1825.d b/gas/testsuite/gas/m68hc11/bug-1825.d index 62c65b9..0e0aa11 100644 --- a/gas/testsuite/gas/m68hc11/bug-1825.d +++ b/gas/testsuite/gas/m68hc11/bug-1825.d @@ -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>\} + 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 diff --git a/gas/testsuite/gas/m68hc11/bug-1825.s b/gas/testsuite/gas/m68hc11/bug-1825.s index 69fbe14..0f6b729 100644 --- a/gas/testsuite/gas/m68hc11/bug-1825.s +++ b/gas/testsuite/gas/m68hc11/bug-1825.s @@ -44,3 +44,6 @@ L7: nop _table: .ds.b 16,0 + leax _table,sp ; 16-bit absolute reloc + leay _table,x + leax _table,y |