]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* gas/mips/elf-rel6.d, gas/mips/elf-rel6.s: Extend testcase.
authorThiemo Seufer <ths@networkno.de>
Wed, 14 Jun 2006 18:04:44 +0000 (18:04 +0000)
committerThiemo Seufer <ths@networkno.de>
Wed, 14 Jun 2006 18:04:44 +0000 (18:04 +0000)
* gas/mips/elf-rel6.d-n32.d, gas/mips/elf-rel6-n64.d: New files.
* gas/mips/mips.exp: Run new testcases.

gas/testsuite/ChangeLog
gas/testsuite/gas/mips/elf-rel6-n32.d [new file with mode: 0644]
gas/testsuite/gas/mips/elf-rel6-n64.d [new file with mode: 0644]
gas/testsuite/gas/mips/elf-rel6.d
gas/testsuite/gas/mips/elf-rel6.s
gas/testsuite/gas/mips/mips.exp

index dc51d971144f35252ad7931e261505c1d3342f7a..c8f4a2fbf271d8bb8378912270cd81abb3259d2f 100644 (file)
@@ -1,3 +1,10 @@
+2006-06-14  Thiemo Seufer  <ths@mips.com>
+            Maciej W. Rozycki  <macro@mips.com>
+
+       * gas/mips/elf-rel6.d, gas/mips/elf-rel6.s: Extend testcase.
+       * gas/mips/elf-rel6.d-n32.d, gas/mips/elf-rel6-n64.d: New files.
+       * gas/mips/mips.exp: Run new testcases.
+
 2006-06-14  Thiemo Seufer  <ths@mips.com>
 
        * gas/mips/mips16e-jrc.d, gas/mips/mips16e-save.d,
diff --git a/gas/testsuite/gas/mips/elf-rel6-n32.d b/gas/testsuite/gas/mips/elf-rel6-n32.d
new file mode 100644 (file)
index 0000000..258fcf6
--- /dev/null
@@ -0,0 +1,16 @@
+#objdump: -dr --prefix-addresses
+#name: MIPS ELF reloc 6 n32
+#as: -mabi=n32 -march=mips64
+#source: elf-rel6.s
+
+.*: +file format elf.*mips.*
+
+Disassembly of section \.text:
+0+00 <.*> lb   v0,0\(v1\)
+                       0: R_MIPS16_GPREL       bar
+0+04 <.*> lb   v0,0\(v1\)
+                       4: R_MIPS16_GPREL       bar\+0x1
+0+08 <.*> lb   v0,0\(v1\)
+                       8: R_MIPS16_GPREL       bar\+0x1234
+0+0c <[^>]*> nop
+0+0e <[^>]*> nop
diff --git a/gas/testsuite/gas/mips/elf-rel6-n64.d b/gas/testsuite/gas/mips/elf-rel6-n64.d
new file mode 100644 (file)
index 0000000..d65b10a
--- /dev/null
@@ -0,0 +1,22 @@
+#objdump: -dr --prefix-addresses
+#name: MIPS ELF reloc 6 n64
+#as: -mabi=64 -march=mips64
+#source: elf-rel6.s
+
+.*: +file format elf.*mips.*
+
+Disassembly of section \.text:
+0+00 <.*> lb   v0,0\(v1\)
+                       0: R_MIPS16_GPREL       bar
+                       0: R_MIPS_NONE  \*ABS\*
+                       0: R_MIPS_NONE  \*ABS\*
+0+04 <.*> lb   v0,0\(v1\)
+                       4: R_MIPS16_GPREL       bar\+0x1
+                       4: R_MIPS_NONE  \*ABS\*\+0x1
+                       4: R_MIPS_NONE  \*ABS\*\+0x1
+0+08 <.*> lb   v0,0\(v1\)
+                       8: R_MIPS16_GPREL       bar\+0x1234
+                       8: R_MIPS_NONE  \*ABS\*\+0x1234
+                       8: R_MIPS_NONE  \*ABS\*\+0x1234
+0+0c <[^>]*> nop
+0+0e <[^>]*> nop
index 85efe9d0aed0b5462da25b2d044639d91f5c4d50..cea8d7fd81b978531e0c31d3fd22f6793fb9666e 100644 (file)
@@ -9,7 +9,7 @@ Disassembly of section \.text:
                        0: R_MIPS16_GPREL       bar
 0+04 <.*> lb   v0,1\(v1\)
                        4: R_MIPS16_GPREL       bar
-0+08 <[^>]*> nop
-0+0a <[^>]*> nop
+0+08 <.*> lb   v0,4660\(v1\)
+                       8: R_MIPS16_GPREL       bar
 0+0c <[^>]*> nop
 0+0e <[^>]*> nop
index 6735d7555fad0572d9edebf0312b693956f7b037..34c3a84b6ff8e8413704e9198be88cf5f75b7863 100644 (file)
@@ -13,6 +13,7 @@ bar:  .byte   3
 f:
        lb      $2,%gprel(bar)($3)
        lb      $2,%gprel(bar+1)($3)
+       lb      $2,%gprel(bar+0x1234)($3)
        .end    f
 
 # align section end to 16-byte boundary for easier testing on multiple targets
index 6141f009db2d96813f952e33bc88db797114dc99..538ef4d09fe36abcd9729e43865d878b84436bc5 100644 (file)
@@ -651,6 +651,10 @@ if { [istarget mips*-*-vxworks*] } {
        }
        run_dump_test "elf-rel5"
        run_dump_test "elf-rel6"
+       if $has_newabi {
+           run_dump_test "elf-rel6-n32"
+           run_dump_test "elf-rel6-n64"
+       }
        run_dump_test "elf-rel7"
        run_dump_test "elf-rel8"
        run_dump_test "elf-rel9"