* gas/s390/reloc.d: Add tests for the new gotoff, gotplt and pltoff
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 20 Jan 2003 11:50:38 +0000 (11:50 +0000)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 20 Jan 2003 11:50:38 +0000 (11:50 +0000)
relocations.
* gas/s390/reloc.s: Likewise.
* gas/s390/reloc64.d: Likewise.
* gas/s390/reloc64.s: Likewise.

gas/testsuite/ChangeLog
gas/testsuite/gas/s390/reloc.d
gas/testsuite/gas/s390/reloc.s
gas/testsuite/gas/s390/reloc64.d
gas/testsuite/gas/s390/reloc64.s

index 4d6704655165388c90d87a91b3a7cb65c7fe17a4..9ff86093148c080e36ec6acd9a26d522d3e04283 100644 (file)
@@ -1,3 +1,11 @@
+2003-01-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
+
+       * gas/s390/reloc.d: Add tests for the new gotoff, gotplt and pltoff
+       relocations.
+       * gas/s390/reloc.s: Likewise.
+       * gas/s390/reloc64.d: Likewise.
+       * gas/s390/reloc64.s: Likewise.
+
 2003-01-07  DJ Delorie  <dj@redhat.com>
 
        * gas/xstormy16/reloc-2.d: Adjust for fixed REL12 relocs.
index b1715f94b9524d154f338acf25267d7d84d2f0da..c30ad496ee4e935d4bfe0ebf74a5be3900f99f5a 100644 (file)
@@ -28,4 +28,18 @@ Disassembly of section .text:
 [      ]*2c: R_390_PC16DBL     test_R_390_PC16DBL\+0x2
   2e:  a7 e5 00 00 [   ]*bras  %r14,2e <foo\+0x2e>
 [      ]*30: R_390_PC16DBL     test_R_390_PLT16DBL\+0x2
-  32:  07 07 [         ]*bcr   0,%r7
+  32:  a7 08 00 00 [   ]*lhi   %r0,0
+[      ]*34: R_390_GOTOFF16    test_R_390_GOTOFF16
+  36:  00 00 00 00 [   ]*.long 0x00000000
+[      ]*36: R_390_GOTOFF32    test_R_390_GOTOFF32
+  3a:  a7 08 00 00 [   ]*lhi   %r0,0
+[      ]*3c: R_390_PLTOFF16    test_R_390_PLTOFF16
+  3e:  00 00 00 00 [   ]*.long 0x00000000
+[      ]*3e: R_390_PLTOFF32    test_R_390_PLTOFF32
+  42:  58 01 20 00 [   ]*l     %r0,0\(%r1,%r2\)
+[      ]*44: R_390_GOTPLT12    test_R_390_GOTPLT12
+  46:  a7 08 00 00 [   ]*lhi   %r0,0
+[      ]*48: R_390_GOTPLT16    test_R_390_GOTPLT16
+  4a:  00 00 00 00 [   ]*.long 0x00000000
+[      ]*4a: R_390_GOTPLT32    test_R_390_GOTPLT32
+  4e:  07 07 [         ]*bcr   0,%r7
index fa898cb9eb5670859cb86ff10117c7cbb0d6ed3a..05b0f179d14843653332af88b473ec9d865b681c 100644 (file)
@@ -12,3 +12,10 @@ foo:
        lhi     %r0,test_R_390_PC16-foo
        bras    %r14,test_R_390_PC16DBL
        bras    %r14,test_R_390_PLT16DBL
+       lhi     %r0,test_R_390_GOTOFF16@GOTOFF
+       .long   test_R_390_GOTOFF32@GOTOFF
+       lhi     %r0,test_R_390_PLTOFF16@PLTOFF
+       .long   test_R_390_PLTOFF32@PLTOFF
+       l       %r0,test_R_390_GOTPLT12@GOTPLT(%r1,%r2)
+       lhi     %r0,test_R_390_GOTPLT16@GOTPLT
+       .long   test_R_390_GOTPLT32@GOTPLT
index a1491036f2103bf786f10e2b8a08d6091551f7d4..a18a46870ccefbbb056260713cc8645dbfc816d0 100644 (file)
@@ -17,4 +17,10 @@ Disassembly of section .text:
 [      ]*24: R_390_PLT64       test_R_390_PLT64
   2c:  c0 10 00 00 00 00 [     ]*larl  %r1,2c <foo\+0x2c>
 [      ]*2e: R_390_GOTENT      test_R_390_GOTENT\+0x2
-  32:  07 07 [         ]*bcr   0,%r7
+[      ]*...
+[      ]*32: R_390_GOTOFF64    test_R_390_GOTOFF64
+[      ]*3a: R_390_PLTOFF64    test_R_390_PLTOFF64
+[      ]*42: R_390_GOTPLT64    test_R_390_GOTPLT64
+  4a:  c0 10 00 00 00 00 [     ]*larl  %r1,4a <foo\+0x4a>
+[      ]*4c: R_390_GOTPLTENT   test_R_390_GOTPLTENT\+0x2
+
index 334828820af15098e853305fef974e1b3791e7c8..528b8cd33bbeeb12fcfddf508c42082a8e452546 100644 (file)
@@ -7,3 +7,7 @@ foo:
        .quad   test_R_390_GOT64@GOT
        .quad   test_R_390_PLT64@PLT
        larl    %r1,test_R_390_GOTENT@GOT
+       .quad   test_R_390_GOTOFF64@GOTOFF
+       .quad   test_R_390_PLTOFF64@PLTOFF
+       .quad   test_R_390_GOTPLT64@GOTPLT
+       larl    %r1,test_R_390_GOTPLTENT@GOTPLT