aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChao-ying Fu <fu@mips.com>2013-09-12 21:45:04 +0000
committerChao-ying Fu <fu@mips.com>2013-09-12 21:45:04 +0000
commit6f72df77108f3accd01c98d40fa4342e6f650188 (patch)
tree1c7efd17fda1af59f5ca503894be024118750d2a
parent2013-09-12 Chao-ying Fu <Chao-ying.Fu@imgtec.com> (diff)
downloadbinutils-gdb-6f72df77108f3accd01c98d40fa4342e6f650188.tar.gz
binutils-gdb-6f72df77108f3accd01c98d40fa4342e6f650188.tar.bz2
binutils-gdb-6f72df77108f3accd01c98d40fa4342e6f650188.zip
2013-09-12 Chao-ying Fu <Chao-ying.Fu@imgtec.com>
* gas/mips/bltzal.s: New file. * gas/mips/bltzal.l: New file. * gas/mips/mips.exp: Run the bltzal test.
-rw-r--r--gas/testsuite/ChangeLog6
-rw-r--r--gas/testsuite/gas/mips/bltzal.l7
-rw-r--r--gas/testsuite/gas/mips/bltzal.s10
-rw-r--r--gas/testsuite/gas/mips/mips.exp1
4 files changed, 24 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index d960d7af444..ac33815b333 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2013-09-12 Chao-ying Fu <Chao-ying.Fu@imgtec.com>
+
+ * gas/mips/bltzal.s: New file.
+ * gas/mips/bltzal.l: New file.
+ * gas/mips/mips.exp: Run the bltzal test.
+
2013-09-12 Nick Clifton <nickc@redhat.com>
* gas/cfi/cfi-alpha-1.d: Update expected output to allow for
diff --git a/gas/testsuite/gas/mips/bltzal.l b/gas/testsuite/gas/mips/bltzal.l
new file mode 100644
index 00000000000..1237b6fcd85
--- /dev/null
+++ b/gas/testsuite/gas/mips/bltzal.l
@@ -0,0 +1,7 @@
+.*: Assembler messages:
+.*:3: Error: the source register must not be \$31.*
+.*:4: Error: the source register must not be \$31.*
+.*:6: Error: the source register must not be \$31.*
+.*:7: Error: the source register must not be \$31.*
+.*:9: Error: the source register must not be \$31.*
+.*:10: Error: the source register must not be \$31.*
diff --git a/gas/testsuite/gas/mips/bltzal.s b/gas/testsuite/gas/mips/bltzal.s
new file mode 100644
index 00000000000..b4b5cb2d73c
--- /dev/null
+++ b/gas/testsuite/gas/mips/bltzal.s
@@ -0,0 +1,10 @@
+ .set reorder
+test:
+ bltzal $31, test
+ bgezal $31, test
+ .set mips2
+ bltzall $31, test
+ bgezall $31, test
+ .set micromips
+ bltzals $31, test
+ bgezals $31, test
diff --git a/gas/testsuite/gas/mips/mips.exp b/gas/testsuite/gas/mips/mips.exp
index 4538aca94c3..28c30d6f394 100644
--- a/gas/testsuite/gas/mips/mips.exp
+++ b/gas/testsuite/gas/mips/mips.exp
@@ -1146,4 +1146,5 @@ if { [istarget mips*-*-vxworks*] } {
run_dump_test_arches "ulh-reloc" [mips_arch_list_matching mips2]
run_dump_test "l_d-reloc"
+ run_list_test "bltzal"
}