* gas/cris/rd-pcplus.s, gas/cris/rd-pcplus.d: New test.
authorHans-Peter Nilsson <hp@axis.com>
Mon, 5 Dec 2005 23:26:23 +0000 (23:26 +0000)
committerHans-Peter Nilsson <hp@axis.com>
Mon, 5 Dec 2005 23:26:23 +0000 (23:26 +0000)
gas/testsuite/ChangeLog
gas/testsuite/gas/cris/rd-pcplus.d [new file with mode: 0644]
gas/testsuite/gas/cris/rd-pcplus.s [new file with mode: 0644]

index 44eb5235b3c9c6e671cbffd81e5b615ac7171d71..849c8853ffcde547e37f83e8178aca781eb20c28 100644 (file)
@@ -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 (file)
index 0000000..7cbd2ae
--- /dev/null
@@ -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 (file)
index 0000000..b4a2661
--- /dev/null
@@ -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