aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite
diff options
context:
space:
mode:
authorRichard Sandiford <rdsandiford@googlemail.com>2012-01-08 12:33:54 +0000
committerRichard Sandiford <rdsandiford@googlemail.com>2012-01-08 12:33:54 +0000
commitde64cffdf8df81f522d582d6a596803b351168df (patch)
tree1e7e41b690c31efcf0484e746d3e8148d7a591b8 /gas/testsuite
parent462427c4188dd69b535b4e5c4e058820bbb736d0 (diff)
downloadgdb-de64cffdf8df81f522d582d6a596803b351168df.zip
gdb-de64cffdf8df81f522d582d6a596803b351168df.tar.gz
gdb-de64cffdf8df81f522d582d6a596803b351168df.tar.bz2
gas/
* config/tc-mips.c (s_tls_rel_directive): Call mips_clear_insn_labels. gas/testsuite/ * gas/mips/tls-relw.s, gas/mips/tls-relw.d: New test. * gas/mips/mips.exp: Run it.
Diffstat (limited to 'gas/testsuite')
-rw-r--r--gas/testsuite/ChangeLog5
-rw-r--r--gas/testsuite/gas/mips/mips.exp1
-rw-r--r--gas/testsuite/gas/mips/tls-relw.d8
-rw-r--r--gas/testsuite/gas/mips/tls-relw.s12
4 files changed, 26 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index e8075e6..c638cdc 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,5 +1,10 @@
2012-01-08 Richard Sandiford <rdsandiford@googlemail.com>
+ * gas/mips/tls-relw.s, gas/mips/tls-relw.d: New test.
+ * gas/mips/mips.exp: Run it.
+
+2012-01-08 Richard Sandiford <rdsandiford@googlemail.com>
+
* gas/mips/align3.s, gas/mips/align3.d: New testcase.
* gas/mips/mips.exp: Run it.
diff --git a/gas/testsuite/gas/mips/mips.exp b/gas/testsuite/gas/mips/mips.exp
index 597c572..92de0fa 100644
--- a/gas/testsuite/gas/mips/mips.exp
+++ b/gas/testsuite/gas/mips/mips.exp
@@ -913,6 +913,7 @@ if { [istarget mips*-*-vxworks*] } {
run_list_test "tls-ill" "-32"
run_dump_test "tls-o32"
+ run_dump_test "tls-relw"
run_dump_test "jalr2"
run_dump_test_arches "aent" [mips_arch_list_matching mips1]
diff --git a/gas/testsuite/gas/mips/tls-relw.d b/gas/testsuite/gas/mips/tls-relw.d
new file mode 100644
index 0000000..bc13b43
--- /dev/null
+++ b/gas/testsuite/gas/mips/tls-relw.d
@@ -0,0 +1,8 @@
+# as: -EB
+# objdump: -sj.data
+
+.*
+
+Contents of section \.data:
+ 0000 00000001 00000000 00000002 00000004 ................
+ 0010 00000000 00000003 00000010 00000000 ................
diff --git a/gas/testsuite/gas/mips/tls-relw.s b/gas/testsuite/gas/mips/tls-relw.s
new file mode 100644
index 0000000..6890685
--- /dev/null
+++ b/gas/testsuite/gas/mips/tls-relw.s
@@ -0,0 +1,12 @@
+ .data
+start:
+ .word 1
+a:
+ .tprelword t1
+ .word 2
+ .word a-start
+b:
+ .dtprelword t2
+ .word 3
+ .word b-start
+ .word 0