aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2004-11-24 12:03:30 +0000
committerNick Clifton <nickc@redhat.com>2004-11-24 12:03:30 +0000
commitd8b2b7a5532059be58d58163b75c9f1d260c1b8f (patch)
treea7cb428f2f67c09a2dc17b82a9baebae4d113024 /gas
parent3eda52aa3223324cb9a77b0245dbcd5bead619bd (diff)
downloadgdb-d8b2b7a5532059be58d58163b75c9f1d260c1b8f.zip
gdb-d8b2b7a5532059be58d58163b75c9f1d260c1b8f.tar.gz
gdb-d8b2b7a5532059be58d58163b75c9f1d260c1b8f.tar.bz2
Add checks for other variants of the sr and st instruction.
Diffstat (limited to 'gas')
-rw-r--r--gas/testsuite/ChangeLog6
-rw-r--r--gas/testsuite/gas/arc/st.d9
-rw-r--r--gas/testsuite/gas/arc/st.s5
3 files changed, 20 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index da1423f..98cdcbd 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2004-11-24 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
+
+ * gas/arc/st.s: Add checks for other variants of the sr and st
+ instruction.
+ * gas/arc/st.d: Update the expected disassembly.
+
2004-11-23 Nick Clifton <nickc@redhat.com>
* gas/mn10300/relax.s: Add further tests of the relaxing of branch
diff --git a/gas/testsuite/gas/arc/st.d b/gas/testsuite/gas/arc/st.d
index 65ee840..813f1aa 100644
--- a/gas/testsuite/gas/arc/st.d
+++ b/gas/testsuite/gas/arc/st.d
@@ -31,3 +31,12 @@ Disassembly of section .text:
4c: R_ARC_B26 .text
50: 00 02 01 12 12010200 sr r1,\[r2\]
54: 0e 82 1f 12 121f820e sr r1,\[0xe\]
+ 58: 00 fc 00 12 1200fc00 sr 0x3e8,\[r1\]
+ 5c: e8 03 00 00
+ 60: 64 7e 01 12 12017e64 sr 100,\[r2\]
+ 64: 00 02 1f 12 121f0200 sr r1,\[0x2710\]
+ 68: 10 27 00 00
+ 6c: 64 7e 1f 12 121f7e64 sr 100,\[0x2710\]
+ 70: 10 27 00 00
+ 74: 64 fc 1f 12 121ffc64 sr 0x2710,\[0x64\]
+ 78: 10 27 00 00
diff --git a/gas/testsuite/gas/arc/st.s b/gas/testsuite/gas/arc/st.s
index 38ba009..9acd9f5 100644
--- a/gas/testsuite/gas/arc/st.s
+++ b/gas/testsuite/gas/arc/st.s
@@ -20,3 +20,8 @@
sr r1,[r2]
sr r1,[14]
+ sr 1000, [r1]
+ sr 100, [r2]
+ sr r1,[10000]
+ sr 100,[10000]
+ sr 10000,[100]