aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2001-06-07 00:57:40 +0000
committerH.J. Lu <hjl.tools@gmail.com>2001-06-07 00:57:40 +0000
commita90335ee821578fe00a727de873d5b2764dc3443 (patch)
tree939c919f811b23fb6209cbf5d456d35362830d6a /gas/testsuite
parentc5f5341b0ef0938029b2336eb65fa02d04cb290f (diff)
downloadgdb-a90335ee821578fe00a727de873d5b2764dc3443.zip
gdb-a90335ee821578fe00a727de873d5b2764dc3443.tar.gz
gdb-a90335ee821578fe00a727de873d5b2764dc3443.tar.bz2
2001-06-06 H.J. Lu <hjl@gnu.org>
* gas/mips/elf-rel3.s: New file. * gas/mips/elf-rel3.d: Likewise. * gas/mips/elfel-rel3.s: Likewise. * gas/mips/elfel-rel3.d: Likewise. * gas/mips/mips.exp: Run elf-rel3/elfel-rel3.
Diffstat (limited to 'gas/testsuite')
-rw-r--r--gas/testsuite/ChangeLog9
-rw-r--r--gas/testsuite/gas/mips/elf-rel3.d13
-rw-r--r--gas/testsuite/gas/mips/elf-rel3.s11
-rw-r--r--gas/testsuite/gas/mips/elfel-rel3.d13
-rw-r--r--gas/testsuite/gas/mips/elfel-rel3.s11
-rw-r--r--gas/testsuite/gas/mips/mips.exp6
6 files changed, 63 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index af3b106..4655e2a 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,5 +1,14 @@
2001-06-06 H.J. Lu <hjl@gnu.org>
+ * gas/mips/elf-rel3.s: New file.
+ * gas/mips/elf-rel3.d: Likewise.
+ * gas/mips/elfel-rel3.s: Likewise.
+ * gas/mips/elfel-rel3.d: Likewise.
+
+ * gas/mips/mips.exp: Run elf-rel3/elfel-rel3.
+
+2001-06-06 H.J. Lu <hjl@gnu.org>
+
* gas/elf/elf.exp (run_list_test): New.
Run section2 with run_list_test.
diff --git a/gas/testsuite/gas/mips/elf-rel3.d b/gas/testsuite/gas/mips/elf-rel3.d
new file mode 100644
index 0000000..1d1014b
--- /dev/null
+++ b/gas/testsuite/gas/mips/elf-rel3.d
@@ -0,0 +1,13 @@
+#objdump: -sr -j .data
+#name: MIPS ELF reloc 3
+
+.*: file format elf.*mips
+
+RELOCATION RECORDS FOR \[\.data\]:
+OFFSET TYPE VALUE
+0+0000004 R_MIPS_32 b
+0+0000008 R_MIPS_32 .data
+
+
+Contents of section .data:
+ 0000 12121212 fffffffc 00000000 00000000 ................
diff --git a/gas/testsuite/gas/mips/elf-rel3.s b/gas/testsuite/gas/mips/elf-rel3.s
new file mode 100644
index 0000000..46c8046
--- /dev/null
+++ b/gas/testsuite/gas/mips/elf-rel3.s
@@ -0,0 +1,11 @@
+ .data
+ .type x,@object
+ .size x,4
+x:
+ .word 0x12121212
+ .globl b
+ .type b,@object
+ .size b,8
+b:
+ .word b-4
+ .word x
diff --git a/gas/testsuite/gas/mips/elfel-rel3.d b/gas/testsuite/gas/mips/elfel-rel3.d
new file mode 100644
index 0000000..c0a08b1
--- /dev/null
+++ b/gas/testsuite/gas/mips/elfel-rel3.d
@@ -0,0 +1,13 @@
+#objdump: -sr -j .data
+#name: MIPS ELF reloc 3
+
+.*: file format elf.*mips
+
+RELOCATION RECORDS FOR \[\.data\]:
+OFFSET TYPE VALUE
+0+0000004 R_MIPS_32 b
+0+0000008 R_MIPS_32 .data
+
+
+Contents of section .data:
+ 0000 12121212 04000000 00000000 00000000 ................
diff --git a/gas/testsuite/gas/mips/elfel-rel3.s b/gas/testsuite/gas/mips/elfel-rel3.s
new file mode 100644
index 0000000..ddf2bef
--- /dev/null
+++ b/gas/testsuite/gas/mips/elfel-rel3.s
@@ -0,0 +1,11 @@
+ .data
+ .type x,@object
+ .size x,4
+x:
+ .word 0x12121212
+ .globl b
+ .type b,@object
+ .size b,8
+b:
+ .word b+4
+ .word x
diff --git a/gas/testsuite/gas/mips/mips.exp b/gas/testsuite/gas/mips/mips.exp
index cfc7690..5720f62 100644
--- a/gas/testsuite/gas/mips/mips.exp
+++ b/gas/testsuite/gas/mips/mips.exp
@@ -126,6 +126,12 @@ if { [istarget mips*-*-*] } then {
}
if [istarget mips*el-*-*] {
+ run_dump_test "elfel-rel3"
+ } {
+ run_dump_test "elf-rel3"
+ }
+
+ if [istarget mips*el-*-*] {
run_dump_test "${tmips}elempic"
} {
run_dump_test "${tmips}empic"