aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite
diff options
context:
space:
mode:
authorDavid S. Miller <davem@redhat.com>2008-04-23 07:49:33 +0000
committerDavid S. Miller <davem@redhat.com>2008-04-23 07:49:33 +0000
commit1a6b486f7396aef713425cd01fb9861e53fb6227 (patch)
tree005659db874d5536f77947d6226f4b2c467abe4d /gas/testsuite
parentb863bf13fe4722ea0aa721043285e9011eb0ea30 (diff)
downloadgdb-1a6b486f7396aef713425cd01fb9861e53fb6227.zip
gdb-1a6b486f7396aef713425cd01fb9861e53fb6227.tar.gz
gdb-1a6b486f7396aef713425cd01fb9861e53fb6227.tar.bz2
opcodes/
* sparc-opc.c (asi_table): Add UltraSPARC and Niagara extended values. (prefetch_table): Add missing values. gas/ * config/tc-sparc.c (v9a_asr_table): Add missing 'stick' and 'stick_cmpr', and document ordering rules of table. (tc_gen_reloc): Accept BFD_RELOC_SPARC_PC22 and BFD_RELOC_SPARC_PC10. * doc/c-sparc.texi: New section on Sparc constants. Add documentation for %stick and %stick_cmpr. gas/testsuite/ * gas/sparc/pc2210.d: New file. * gas/sparc/pc2210.d: Likewise. * gas/sparc/sparc.exp: Run new %pc22/%pc10 relocation test.
Diffstat (limited to 'gas/testsuite')
-rw-r--r--gas/testsuite/ChangeLog6
-rw-r--r--gas/testsuite/gas/sparc/pc2210.d13
-rw-r--r--gas/testsuite/gas/sparc/pc2210.s6
-rw-r--r--gas/testsuite/gas/sparc/sparc.exp1
4 files changed, 26 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index d8cfbcf..a331751 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2008-04-23 David S. Miller <davem@davemloft.net>
+
+ * gas/sparc/pc2210.d: New file.
+ * gas/sparc/pc2210.d: Likewise.
+ * gas/sparc/sparc.exp: Run new %pc22/%pc10 relocation test.
+
2008-04-18 H.J. Lu <hongjiu.lu@intel.com>
* gas/i386/arch-10.d: Updated.
diff --git a/gas/testsuite/gas/sparc/pc2210.d b/gas/testsuite/gas/sparc/pc2210.d
new file mode 100644
index 0000000..974d3e5
--- /dev/null
+++ b/gas/testsuite/gas/sparc/pc2210.d
@@ -0,0 +1,13 @@
+#as: -Av7
+#objdump: -dr
+#name: pc2210
+
+.*: +file format .*sparc.*
+
+Disassembly of section .text:
+
+0+ <.text>:
+ 0: 13 00 00 00 sethi %hi\(0\), %o1
+ 0: R_SPARC_PC22 .data
+ 4: 92 12 60 00 mov %o1, %o1 ! 0 <.text>
+ 4: R_SPARC_PC10 .data
diff --git a/gas/testsuite/gas/sparc/pc2210.s b/gas/testsuite/gas/sparc/pc2210.s
new file mode 100644
index 0000000..9190234
--- /dev/null
+++ b/gas/testsuite/gas/sparc/pc2210.s
@@ -0,0 +1,6 @@
+ # Test R_SPARC_PC22 and R_SPARC_PC10 relocations
+ .data
+sym: .word 0
+ .text
+ sethi %pc22(sym), %o1
+ or %o1, %pc10(sym), %o1
diff --git a/gas/testsuite/gas/sparc/sparc.exp b/gas/testsuite/gas/sparc/sparc.exp
index d3eec93..dfb6249 100644
--- a/gas/testsuite/gas/sparc/sparc.exp
+++ b/gas/testsuite/gas/sparc/sparc.exp
@@ -55,6 +55,7 @@ if [istarget sparc*-*-*] {
run_dump_test "v9branch3"
run_dump_test "v9branch4"
run_dump_test "v9branch5"
+ run_dump_test "pc2210"
run_list_test "pr4587" ""
}