aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite
diff options
context:
space:
mode:
authorCatherine Moore <clm@redhat.com>2008-01-02 20:59:47 +0000
committerCatherine Moore <clm@redhat.com>2008-01-02 20:59:47 +0000
commite7c604dd092bc0e3d8c632549ae8232b3c7f57bf (patch)
tree30efa2c9eb14464ace2bb9112ec1d8ee15ce39cd /gas/testsuite
parentef29ce1ab3161205aec793706eb411a7b2bdba8b (diff)
downloadgdb-e7c604dd092bc0e3d8c632549ae8232b3c7f57bf.zip
gdb-e7c604dd092bc0e3d8c632549ae8232b3c7f57bf.tar.gz
gdb-e7c604dd092bc0e3d8c632549ae8232b3c7f57bf.tar.bz2
* gas/mips/jalr.s: New test.
* gas/mips/jalr.l: New test output. * gas/mips/mips.exp: Run new test.
Diffstat (limited to 'gas/testsuite')
-rw-r--r--gas/testsuite/ChangeLog6
-rw-r--r--gas/testsuite/gas/mips/jalr.l5
-rw-r--r--gas/testsuite/gas/mips/jalr.s4
-rw-r--r--gas/testsuite/gas/mips/mips.exp1
4 files changed, 16 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index 9b4849d..74b0a18 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2008-01-02 Catherine Moore <clm@codesourcery.com>
+
+ * gas/mips/jalr.s: New test.
+ * gas/mips/jalr.l: New test output.
+ * gas/mips/mips.exp: Run new test.
+
2007-12-31 H.J. Lu <hongjiu.lu@intel.com>
* gas/i386/inval.s: Add test for cvtsi2ss/cvtsi2sd.
diff --git a/gas/testsuite/gas/mips/jalr.l b/gas/testsuite/gas/mips/jalr.l
new file mode 100644
index 0000000..fe4a5b9
--- /dev/null
+++ b/gas/testsuite/gas/mips/jalr.l
@@ -0,0 +1,5 @@
+.*: Assembler messages:
+.*:1: Error: illegal operands.*
+.*:2: Error: a destination register must be supplied.*
+.*:3: Error: source and destinationations must be different.*
+
diff --git a/gas/testsuite/gas/mips/jalr.s b/gas/testsuite/gas/mips/jalr.s
new file mode 100644
index 0000000..fa63e43
--- /dev/null
+++ b/gas/testsuite/gas/mips/jalr.s
@@ -0,0 +1,4 @@
+ jalr $32
+ jalr $31
+ jalr $7, $7
+ jalr $31, $2
diff --git a/gas/testsuite/gas/mips/mips.exp b/gas/testsuite/gas/mips/mips.exp
index dd2eaef..b9d7dd5 100644
--- a/gas/testsuite/gas/mips/mips.exp
+++ b/gas/testsuite/gas/mips/mips.exp
@@ -573,6 +573,7 @@ if { [istarget mips*-*-vxworks*] } {
run_list_test "illegal" "-32"
run_list_test "baddata1" "-32"
+ run_list_test "jalr" ""
# LOSE: As of 2002-02-08, the next 4 tests fail for target mips-ecoff.
# It's unknown whether they _should_ pass as-is, or whether different