summaryrefslogtreecommitdiff
path: root/gas
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
commitd730b6d18fedaadcf45fc5dea8a6f7d1eeff8bce (patch)
tree0ad64cc7ab14c4e86fc74037606e04be9bd5460b /gas
parent655f6413b72679d09f04e7ee3a7811403746fed7 (diff)
downloadbinutils-redhat-d730b6d18fedaadcf45fc5dea8a6f7d1eeff8bce.tar.gz
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.
Diffstat (limited to 'gas')
-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 d960d7af44..ac33815b33 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 0000000000..1237b6fcd8
--- /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 0000000000..b4b5cb2d73
--- /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 4538aca94c..28c30d6f39 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"
}