aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2005-12-05 23:26:23 +0000
committerHans-Peter Nilsson <hp@axis.com>2005-12-05 23:26:23 +0000
commit63e199b91a5c7d3051ad0dbd41d5e8a28d8e0bcf (patch)
tree7bdbab698fc9e836f9d68777e089373f34f3cac0 /gas/testsuite
parentb25748f8ec25739ab733f6cbe375fdef5920e712 (diff)
downloadgdb-63e199b91a5c7d3051ad0dbd41d5e8a28d8e0bcf.zip
gdb-63e199b91a5c7d3051ad0dbd41d5e8a28d8e0bcf.tar.gz
gdb-63e199b91a5c7d3051ad0dbd41d5e8a28d8e0bcf.tar.bz2
* gas/cris/rd-pcplus.s, gas/cris/rd-pcplus.d: New test.
Diffstat (limited to 'gas/testsuite')
-rw-r--r--gas/testsuite/ChangeLog4
-rw-r--r--gas/testsuite/gas/cris/rd-pcplus.d16
-rw-r--r--gas/testsuite/gas/cris/rd-pcplus.s10
3 files changed, 30 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index 44eb523..849c885 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2005-12-06 Hans-Peter Nilsson <hp@axis.com>
+
+ * gas/cris/rd-pcplus.s, gas/cris/rd-pcplus.d: New test.
+
2005-11-24 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
* gas/macros/purge.l: Increment line numbers.
diff --git a/gas/testsuite/gas/cris/rd-pcplus.d b/gas/testsuite/gas/cris/rd-pcplus.d
new file mode 100644
index 0000000..7cbd2ae
--- /dev/null
+++ b/gas/testsuite/gas/cris/rd-pcplus.d
@@ -0,0 +1,16 @@
+#as: --em=criself --march=v10 --underscore
+#objdump: -dr
+
+.*: file format elf32-us-cris
+
+Disassembly of section \.text:
+
+00000000 <a>:
+[ ]+0:[ ]+4715 3fbe[ ]+move \[pc=r7\+r1\.b\],srp
+[ ]+4:[ ]+6ffd 0000 0100 3f0e[ ]+move \[pc=pc\+10000 <a\+0x10000>\],p0
+[ ]+c:[ ]+4385 6f5e[ ]+move\.d \[pc=r3\+r8\.b\],r5
+[ ]+10:[ ]+6ffd 0000 0100 6fbe[ ]+move\.d \[pc=pc\+10000 <a\+0x10000>\],r11
+[ ]+18:[ ]+6f5d 0000 0a00 3f1e[ ]+move \[pc=r5\+a0000 <a\+0xa0000>\],vr
+[ ]+20:[ ]+5f7d 8f02 6fde[ ]+move\.d \[pc=r7\+655\],r13
+[ ]+26:[ ]+4161 6fae[ ]+move\.d \[pc=r6\+65\],r10
+[ ]+2a:[ ]+0f05[ ]+nop
diff --git a/gas/testsuite/gas/cris/rd-pcplus.s b/gas/testsuite/gas/cris/rd-pcplus.s
new file mode 100644
index 0000000..b4a2661
--- /dev/null
+++ b/gas/testsuite/gas/cris/rd-pcplus.s
@@ -0,0 +1,10 @@
+ .text
+a:
+ move [$pc=$r7+$r1.b],$srp
+ move [$pc=$pc+65536],$p0
+ move.d [$pc=$r3+$r8.b],$r5
+ move.d [$pc=$pc+65536],$r11
+ move [$pc=$r5+655360],$p1
+ move.d [$pc=$r7+655],$r13
+ move.d [$pc=$r6+65],$r10
+ nop